-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAliGMFEventReader.h
More file actions
40 lines (28 loc) · 1.12 KB
/
AliGMFEventReader.h
File metadata and controls
40 lines (28 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef ALIGMFEVENTREADER_H
#define ALIGMFEVENTREADER_H
#include "TChain.h"
class AliGMFEventContainer;
class TClonesArray;
class AliGMFTTreeHeader;
class AliGMFEventReader : public TObject {
public:
AliGMFEventReader();
AliGMFEventReader(TChain* c);
virtual ~AliGMFEventReader() {;}
// interface
Bool_t Initialize();
AliGMFEventContainer* GetEvent(Int_t i);
void TouchEvent(Int_t i);
void SetInputChain(TChain* c);
Int_t GetNumberOfEvents() {return fInputChain->GetEntries();}
private:
TChain* fInputChain; //! input chain
TClonesArray* fTracks; //! tracks
AliGMFTTreeHeader* fHeader; //! header
AliGMFEventContainer* fEventContainer; //! current event container
Int_t fCurrentEvent; //! current event
Int_t fEvents; //! total number of events
void MoveChainBufferTo(Int_t i);
ClassDef(AliGMFEventReader, 1)
};
#endif