Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2026-04-04 08:08:21

0001 #ifndef __DST_PHOTON_MBD_SELECTION_H__
0002 #define __DST_PHOTON_MBD_SELECTION_H__
0003 
0004 #include <fun4all/SubsysReco.h>
0005 #include <ffarawobjects/Gl1Packet.h>
0006 
0007 #include <cmath>
0008 #include <cstdint>
0009 #include <algorithm>
0010 #include <vector>
0011 #include <map>
0012 
0013 // Forward declarations
0014 class PHCompositeNode;
0015 class TFile;
0016 class TTree;
0017 class TH1;
0018 class TH1F;
0019 class TH2F;
0020 class LorentzVector;
0021 
0022 class DstPhotonMBDSelection : public SubsysReco
0023 {
0024  public:
0025   //! constructor
0026   DstPhotonMBDSelection(const std::string &name = "DstPhotonMBDSelection",
0027                         const int runnb = 48746);
0028 
0029   //! destructor
0030   virtual ~DstPhotonMBDSelection();
0031 
0032   //! full initialization
0033   int Init(PHCompositeNode *);
0034 
0035   int InitRun(PHCompositeNode *);
0036 
0037   //! event processing method
0038   int process_event(PHCompositeNode *);
0039 
0040   //! end of run method
0041   int End(PHCompositeNode *);
0042  
0043  private:
0044   
0045   // run number
0046   int runnumber;
0047 
0048   // Global information in clusters' node
0049   uint64_t live_trigger;
0050   uint64_t scaled_trigger;
0051   
0052   // trigger selection
0053   bool trigger_mbd_any_vtx = false;
0054   bool trigger_mbd_vtx_10 = false;
0055   bool triggerSelection = false;
0056   bool trigger_mbd_photon_3 = false;
0057   bool trigger_mbd_photon_4 = false;
0058   bool trigger_mbd_photon_5 = false;
0059 
0060   // Global Level 1 info
0061   Gl1Packet *gl1packet = nullptr;
0062   
0063   // Scaledown list:
0064   int scaledown[64] = {0};
0065   
0066   // For the SQL access
0067   std::string db_name = "daq";
0068   std::string user_name = "phnxrc";
0069   std::string table_name = "gl1_scaledown";
0070 };
0071 
0072 #endif