HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoReaderSim.h
Go to the documentation of this file.
1 #ifndef HARPOREADERSIM_H
2 #define HARPOREADERSIM_H
3 // //
5 // HarpoReaderSim //
6 // //
7 // DCC raw file ReaderRaw Class //
8 // //
10 
11 #include "TObject.h"
12 #include "TFile.h"
13 #include "HarpoConfig.h"
14 #include "HarpoDetSet.h"
15 
16 #include "HarpoRunHeader.h"
17 #include "HarpoEvent.h"
18 #include "HarpoEventHeader.h"
19 
20 #include "HarpoReaderBase.h"
21 #include "HarpoDetReader.h"
22 
24 
25 public:
26 
29 
30  virtual ~HarpoReaderSim();
31 
32  void SetDetFile(TString *name,Int_t plane);
33  void SetRootFile(TString *name);
34 
35  Bool_t NextEvent(); // Read next event from raw file
36  Bool_t isTimeSynchro() // Both planes has the same time stamp
37  { return fSync; }
38 
39  void SkipEvent(); // Skeep Event
40 
41  HarpoEvent *GetEvent(); // Pointer to Current event
42  HarpoRunHeader *GetRunHeader(); // Run Header
43 
44  Bool_t Init(hReadMode mode=hSyncTime); // Open raw file and check header
45 
46  /* Bool_t isDone() { return fDone; } //! EOF reached */
47  /* Bool_t isError() { return fError; } //! Read errors */
48 
49  /* Long_t Loop(); // Process all events as defined in config */
50  Long_t Loop(Long_t maxevents);
51 
52  Long_t Find(Long_t eventNo);
53 
54  /* void SetRunNo(Long_t nRun) { fRunNo = nRun; } */
55  /* Long_t GetRunNo() { return fRunNo; } */
56  /* Long_t GetReadEvts() { return fNevts; } //! Number of readed events */
57 
58  //void print();
59 
60 private:
61 
62 
63  Bool_t fSync; // Both plane with the same timestamp
64 
65  hReadMode fMode; // Event Read Mode
66 
67 
68  /* TString *fNewFileName; //ROOT file Name */
69  /* TFile *fNewFile; //! Root file handle */
70  /* Bool_t fSave; //???? */
71 
72 
73  ClassDef(HarpoReaderSim,1)
74 };
75 
76 
77 #endif
HarpoRunHeader * GetRunHeader()
Create RunHeader with links to all raw headers.
Long_t Loop(Long_t maxevents)
A class hold HARPO run iformation.
virtual ~HarpoReaderSim()
HarpoEvent * GetEvent()
A base class for all top level HARPO readers.
Bool_t fSync
Find raw event by event number.
A class which read HARPO simulated events.
Bool_t isTimeSynchro()
hReadMode fMode
Bool_t Init(hReadMode mode=hSyncTime)
Init method : Open in/out files and check run header signature.
A class store HARPO row event data and header. Provide access metods to the row event data...
Definition: HarpoEvent.h:29
void SetDetFile(TString *name, Int_t plane)
Long_t Find(Long_t eventNo)
hReadMode
A class which keeps track of the entire configuration of the analysis.
Definition: HarpoConfig.h:50
void SetRootFile(TString *name)