Class Reference for E1039 Core & Analysis Software
AnaDimuonSRec.h
Go to the documentation of this file.
1 #ifndef _ANA_DIMUON_SREC__H_
2 #define _ANA_DIMUON_SREC__H_
3 #include <fun4all/SubsysReco.h>
4 #include <UtilAna/TrigRoadset.h>
5 #include "TreeData.h"
6 class TFile;
7 class TTree;
8 class TChain;
9 class SQEvent;
10 class SQHitVector;
11 class SRecEvent;
12 
14 
17 class AnaDimuonSRec: public SubsysReco {
18  SQEvent* m_sq_evt;
19  SQHitVector* m_sq_hit_vec;
20  SRecEvent* m_srec;
21 
22  std::string m_file_name;
23  TFile* m_file;
24  TTree* m_tree;
25  EventData m_evt;
26  DimuonList m_dim_list;
27 
29 
30  public:
31  AnaDimuonSRec(const std::string& name="AnaDimuonSRec");
32  virtual ~AnaDimuonSRec();
33  int Init(PHCompositeNode *topNode);
34  int InitRun(PHCompositeNode *topNode);
35  int process_event(PHCompositeNode *topNode);
36  int End(PHCompositeNode *topNode);
37  void SetOutputFileName(const std::string name) { m_file_name = name; }
38 
39  static void AnalyzeTree(TChain* tree);
40 };
41 
42 #endif // _ANA_DIMUON_SREC__H_
std::vector< DimuonData > DimuonList
Definition: TreeData.h:54
An example class to analyze dimuons stored as SRecEvent.
Definition: AnaDimuonSRec.h:17
int End(PHCompositeNode *topNode)
Called at the end of all processing.
virtual ~AnaDimuonSRec()
int InitRun(PHCompositeNode *topNode)
int Init(PHCompositeNode *topNode)
int process_event(PHCompositeNode *topNode)
AnaDimuonSRec(const std::string &name="AnaDimuonSRec")
static void AnalyzeTree(TChain *tree)
void SetOutputFileName(const std::string name)
Definition: AnaDimuonSRec.h:37
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
Class to handle the trigger roadset.
Definition: TrigRoadset.h:34