Class Reference for E1039 Core & Analysis Software
AnaTriggerHit.h
Go to the documentation of this file.
1 #ifndef _ANA_TRIGGER_HIT__H_
2 #define _ANA_TRIGGER_HIT__H_
3 #include <fun4all/SubsysReco.h>
4 class TFile;
5 class TTree;
6 class TH1;
7 class TH2;
8 class SQEvent;
9 class SQHitVector;
10 
12 
16 class AnaTriggerHit: public SubsysReco {
17  static const std::vector<std::string> m_list_det_name;
18  std::vector<int> m_list_det_id;
19 
20  bool m_intime;
21  int m_level;
22  SQEvent* m_evt;
23  SQHitVector* m_hit_vec;
24 
25  TFile* m_file;
26  TTree* m_tree;
27  char b_det_name[16];
28  int b_det_id;
29  int b_ele_id;
30  double b_time;
31  TH1* m_h1_ele[99];
32  TH1* m_h1_nhit[99];
33  TH1* m_h1_time[99];
34 
35  public:
36  AnaTriggerHit(const std::string& name="AnaTriggerHit");
37  virtual ~AnaTriggerHit() {;}
38  int Init(PHCompositeNode *topNode);
39  int InitRun(PHCompositeNode *topNode);
40  int process_event(PHCompositeNode *topNode);
41  int End(PHCompositeNode *topNode);
42 
43  void UseInTime(const bool val) { m_intime = val; }
44  int UseInTime() const { return m_intime; }
45  void SetLevel(const int level) { m_level = level; }
46  int GetLevel() const { return m_level; }
47 };
48 
49 #endif // _ANA_TRIGGER_HIT__H_
A simple SubsysReco module to analyze the trigger (i.e. V1495 TDC) hit.
Definition: AnaTriggerHit.h:16
int GetLevel() const
Definition: AnaTriggerHit.h:46
int End(PHCompositeNode *topNode)
Called at the end of all processing.
void SetLevel(const int level)
Definition: AnaTriggerHit.h:45
int InitRun(PHCompositeNode *topNode)
virtual ~AnaTriggerHit()
Definition: AnaTriggerHit.h:37
int Init(PHCompositeNode *topNode)
int UseInTime() const
Definition: AnaTriggerHit.h:44
void UseInTime(const bool val)
Definition: AnaTriggerHit.h:43
AnaTriggerHit(const std::string &name="AnaTriggerHit")
int process_event(PHCompositeNode *topNode)
An SQ interface class to hold one event header.
Definition: SQEvent.h:17
An SQ interface class to hold a list of SQHit objects.
Definition: SQHitVector.h:32