Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Emcal_Tower_Masking.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Emcal_Tower_Masking.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef EMCAL_TOWER_MASKING_H
4 #define EMCAL_TOWER_MASKING_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <string>
9 #include <vector>
10 class PHCompositeNode;
11 
13 {
14  public:
15 
16  Emcal_Tower_Masking(const std::string &name = "Emcal_Tower_Masking");
17 
18  ~Emcal_Tower_Masking() override;
19 
20  int Init(PHCompositeNode *topNode) override;
21  int InitRun(PHCompositeNode *topNode) override;
22  int process_event(PHCompositeNode *topNode) override;
23  int ResetEvent(PHCompositeNode *topNode) override;
24  int EndRun(const int runnumber) override;
25  int End(PHCompositeNode *topNode) override;
26  int Reset(PHCompositeNode * /*topNode*/) override;
27  void Print(const std::string &what = "ALL") const override;
28  void CreateNodeTree(PHCompositeNode *topNode);
29 
30  void addhottower(int etabin, int phibin)
31  {
32  etamasklist.push_back(etabin);
33  phimasklist.push_back(phibin);
34  }
35  void addpacketmask(int packetnum)
36  {
37  packetmasklist.push_back(packetnum);
38  }
39  private:
40 
41  std::vector<unsigned int> etamasklist;
42  std::vector<unsigned int> phimasklist;
43  std::vector<unsigned int> packetmasklist;
44 };
45 
46 #endif // MOCKTOWERCALIB_H