HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoAnalyseWriter.h
Go to the documentation of this file.
1 #ifndef HARPOANALYSEWRITER_H
2 #define HARPOANALYSEWRITER_H
3 
5 //
6 // HarpoAnalyseWriter
7 //
8 // Class that saves the data in a ROOT file
9 //
10 
11 #include "TObject.h"
12 #include "TString.h"
13 #include "TFile.h"
14 #include "TTree.h"
15 #include "HarpoAnalyse.h"
16 #include "HarpoRunHeader.h"
17 #include "TProfile.h"
18 
19 
21 
22  public:
23 
25 
26  void Init();
27  void InitFile(const char* name);
28  void Save(char *mode=NULL);
31  void ProcessEvent(HarpoEvent *event);
32  void process();
33  void print();
34 
35  private:
36 
37  Bool_t fDoAna;
38  TFile * fNewFile;
39  TTree * fNewTree;
40  TBranch * fRawBranch;
41  Int_t fNewNb; // Number of butes written
42  Int_t fNfiles;
43 
44  //Dummy event for Brach setting
45  HarpoEventHeader * fEvtHdr; // event header
46  HarpoDetEvent *fDetEvt[gkNDetectors]; // subdetectors
49 
50  TString * rootFile;
51 
52  ClassDef(HarpoAnalyseWriter,1) //Run AnalyseWriter
53 };
54 
55 #endif
void Save(char *mode=NULL)
A virtual class store event data for un detector.
Definition: HarpoDetEvent.h:32
A virtual class which define intrafece between HARPO Reader and Event Analysis code.
Definition: HarpoAnalyse.h:47
Object containing the reconstruction information for one event (with array of HarpoRecoClusters Harpo...
void InitFile(const char *name)
FullEvent Header not scecific to the detectors The class is ....
HarpoDetEvent * fDetEvt[gkNDetectors]
Bool_t fDoAna
Redefine empty default.
void ProcessEvent(HarpoEvent *event)
HarpoEventHeader * fEvtHdr
HarpoDetEvent * fDetEvtRead[gkNDetectors]
HarpoRecoEvent * fRecoEvent
A class which write harpo events to ROOT Tree.
A class store HARPO row event data and header. Provide access metods to the row event data...
Definition: HarpoEvent.h:29
const ULong_t gkNDetectors
Definition: HarpoDet.h:14
void print()
Mast be implemented, This method which do all job.