Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:17:27

0001 #ifndef TRIGGER_TRIGGERRUNINFORECO_H
0002 #define TRIGGER_TRIGGERRUNINFORECO_H
0003 
0004 #include <fun4all/SubsysReco.h>
0005 
0006 #include <string>
0007 
0008 class TriggerRunInfo;
0009 
0010 class TriggerRunInfoReco : public SubsysReco
0011 {
0012  public:
0013   TriggerRunInfoReco(const std::string &name = "TriggerRunInfoReco");
0014   ~TriggerRunInfoReco() override = default;
0015   int Init(PHCompositeNode *topNode) override;
0016   int InitRun(PHCompositeNode *topNode) override;
0017 
0018   void UseEmulator(bool use) { m_useEmulator = use; }
0019 
0020  private:
0021   bool m_useEmulator{false};
0022 
0023   static void SetTriggerEmulator(TriggerRunInfo *triggerRunInfo);
0024 
0025   static int fetchTriggerPrescales(int runnumber, TriggerRunInfo *triggerRunInfo);
0026   static int fetchTriggerScalers(int runnumber, TriggerRunInfo *triggerRunInfo);
0027 };
0028 
0029 #endif /* TRIGGER_TRIGGERRUNINFORECO_H */