File indexing completed on 2025-08-06 08:13:10
0001
0002
0003 #ifndef EMCAL_TOWER_MASKING_H
0004 #define EMCAL_TOWER_MASKING_H
0005
0006 #include <fun4all/SubsysReco.h>
0007
0008 #include <string>
0009 #include <vector>
0010 class PHCompositeNode;
0011
0012 class Emcal_Tower_Masking : public SubsysReco
0013 {
0014 public:
0015
0016 Emcal_Tower_Masking(const std::string &name = "Emcal_Tower_Masking");
0017
0018 ~Emcal_Tower_Masking() override;
0019
0020 int Init(PHCompositeNode *topNode) override;
0021 int InitRun(PHCompositeNode *topNode) override;
0022 int process_event(PHCompositeNode *topNode) override;
0023 int ResetEvent(PHCompositeNode *topNode) override;
0024 int EndRun(const int runnumber) override;
0025 int End(PHCompositeNode *topNode) override;
0026 int Reset(PHCompositeNode * ) override;
0027 void Print(const std::string &what = "ALL") const override;
0028 void CreateNodeTree(PHCompositeNode *topNode);
0029
0030 void addhottower(int etabin, int phibin)
0031 {
0032 etamasklist.push_back(etabin);
0033 phimasklist.push_back(phibin);
0034 }
0035 void addpacketmask(int packetnum)
0036 {
0037 packetmasklist.push_back(packetnum);
0038 }
0039 private:
0040
0041 std::vector<unsigned int> etamasklist;
0042 std::vector<unsigned int> phimasklist;
0043 std::vector<unsigned int> packetmasklist;
0044 };
0045
0046 #endif