Class Reference for E1039 Core & Analysis Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AnaModule.h
Go to the documentation of this file.
1 #ifndef _ANA_Module__H_
2 #define _ANA_Module__H_
3 
4 #include <map>
5 #include <fun4all/SubsysReco.h>
6 #include <TString.h>
7 
8 class TFile;
9 class TTree;
10 class SQHitVector;
11 
12 class AnaModule: public SubsysReco
13 {
14 public:
15  AnaModule() {;}
16  virtual ~AnaModule() {;}
17 
18  int Init(PHCompositeNode* topNode);
19  int InitRun(PHCompositeNode* topNode);
21  int End(PHCompositeNode* topNode);
22 
23  void set_output_filename(const TString& n);
24 
25 private:
26  int GetNodes(PHCompositeNode* topNode);
27  void MakeTree();
28 
29  // Input
30  SQHitVector* hitVector;
31 
32  // Output
33  TString saveName;
34  TFile* saveFile;
35  TTree* saveTree;
36 
37  int eventID;
38  int nHits;
39  double edep[2000];
40  int hID[2000];
41  int vID[2000];
42 };
43 
44 #endif
AnaModule()
Definition: AnaModule.h:15
void set_output_filename(const TString &n)
virtual ~AnaModule()
Definition: AnaModule.h:16
int End(PHCompositeNode *topNode)
Called at the end of all processing.
int Init(PHCompositeNode *topNode)
int InitRun(PHCompositeNode *topNode)
int process_event(PHCompositeNode *topNode)
An SQ interface class to hold a list of SQHit objects.
Definition: SQHitVector.h:32