Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:11:12

0001 #ifndef ELIMINATEBACKGROUND_H
0002 #define ELIMINATEBACKGROUND_H
0003 
0004 #include <fun4all/SubsysReco.h>
0005 #include <string>
0006 #include <vector>
0007 #include <ostream>
0008 #include <iostream>
0009 // Forward declarations
0010 class PHCompositeNode;
0011 class TH1;
0012 class TH2;
0013 
0014 class EliminateBackground : public SubsysReco
0015 {
0016  public:
0017   //! constructor
0018   EliminateBackground(const std::string& name = "EliminateBackground");
0019 
0020   //! destructor
0021   ~EliminateBackground() override;
0022 
0023   //! full initialization
0024   int Init(PHCompositeNode*) override;
0025   int InitRun(PHCompositeNode*) override;
0026 
0027   //! event processing method
0028   int process_event(PHCompositeNode*) override;
0029 
0030   //! end of run method
0031   int End(PHCompositeNode*) override;
0032 
0033  private:
0034   TH2* hcal{nullptr};
0035   TH1* hcal_phi{nullptr};
0036   TH1* hcal_phi_consec{nullptr};
0037 
0038   float HCAL_TOWER_ENERGY_CUT{0.03};
0039   float CONSECUTIVE_ENERGY_CUT{0.03};
0040 
0041   float CONSECUTIVE_COUNT_CUT{6};
0042   float COUNT_CUT{8};
0043 };
0044 
0045 #endif