Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #ifndef CENTRALITY_VALIDATION_H
0002 #define CENTRALITY_VALIDATION_H
0003 
0004 #include <fun4all/SubsysReco.h>
0005 
0006 #include <limits>
0007 
0008 // Forward declarations
0009 class CentralityInfo;
0010 class MinimumBiasInfo;
0011 class Fun4AllHistoManager;
0012 class PHCompositeNode;
0013 class TH1;
0014 class TEfficiency;
0015 
0016 class CentralityValid : public SubsysReco
0017 {
0018  public:
0019   //! constructor
0020   explicit CentralityValid(const std::string &name = "CentralityValid", const std::string &hist_name = "QA_CentralityReco.root");
0021 
0022   //! destructor
0023   virtual ~CentralityValid();
0024 
0025   //! full initialization
0026   int Init(PHCompositeNode *);
0027   int InitRun(PHCompositeNode *);
0028 
0029   int process_event(PHCompositeNode *);
0030   
0031   //! end of run method
0032   int End(PHCompositeNode *);
0033 
0034  protected:
0035 
0036   Fun4AllHistoManager *hm = nullptr;
0037 
0038   CentralityInfo *_central = nullptr;
0039   MinimumBiasInfo *_minimumbiasinfo = nullptr;
0040 
0041   std::string _hist_filename;
0042 
0043   TH1 *_h_centrality_bin = nullptr;
0044  
0045   TH1 *_h_centrality_bin_mb = nullptr;
0046 
0047   TEfficiency *_he_min_bias = nullptr;
0048   
0049 };
0050 
0051 #endif