-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAliGMFTTreeHeader.h
78 lines (63 loc) · 2.82 KB
/
AliGMFTTreeHeader.h
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef COMPRESSION_LEVEL
#define COMPRESSION_LEVEL 1
#endif
#ifndef AliGMFTTreeHeader_H
#define AliGMFTTreeHeader_H
#include <TObject.h>
class AliGMFTTreeHeader : public TObject{
public:
AliGMFTTreeHeader();
void Fill(AliGMFTTreeHeader* event);
// manipulators - persistent
void SetZvtx(Float_t Zvtx) {fZvtx = Zvtx;}
void SetEventPlane(Float_t ep) {fEventPlane = ep;}
void SetEventPlane3(Float_t ep) {fEventPlane3 = ep;}
void SetRunNumber(ULong_t rn) {fRunNumber = rn;}
// manipulators - no persistent
void SetEventID(Int_t id) {fEventID = id;}
void SetUsed(Bool_t used) {fUsed = used;}
void SetMultiplicity(Short_t m) {fMultiplicity = m;}
void SetCentrality(Double_t c) {fCentrality = c;}
// getters
Float_t GetZvtx() const {return fZvtx;}
Float_t GetEventPlane() const {return fEventPlane;}
Float_t GetEventPlane3() const {return fEventPlane3;}
Int_t GetEventID() const {return fEventID;}
Bool_t GetUsed() const {return fUsed;}
Short_t GetMultiplicity() const {return fMultiplicity;}
Float_t GetCentrality() const {return fCentrality;}
ULong_t GetRunNumber() const {return fRunNumber;}
void Reset();
private:
// first the persistent members are listed. these are written to disk
// so extra care is taken to minimize the space they take
#if COMPRESSION_LEVEL > 1
// maximum compression, some loss of precision may occur
Double32_t fZvtx; //[-10,10,8] rec vertex
Double32_t fEventPlane; //[-1.6, 1.6,8] event plane orientation
Double32_t fEventPlane3; //[-1.05, 1.05,8] event plane 3 orientation
Double32_t fCentrality; //[0,100,8] collision centrality
#elif COMPRESSION_LEVEL > 0
//medium compression, no precision loss expected
Double32_t fZvtx; //[-10,10,12] rec vertex
Double32_t fEventPlane; //[-1.6,1.6,12] event plane orientation
Double32_t fEventPlane3; //[-1.05, 1.05,12] event plane 3 orientation
Double32_t fCentrality; //[0,100,12] collision centrality
#else
// no compression
Float_t fZvtx; // rec vertex
Float_t fEventPlane; // event plane orientation
Float_t fEventPlane3; // event plane 3 orientation
Float_t fCentrality; // collision centrality
#endif
// non-transient non compressable numbers
ULong_t fRunNumber; // run number
// transient members are not written to disk, they
// can be optimized for speed
Int_t fEventID; //! event identifier
Bool_t fUsed; //! was event read from file
Short_t fMultiplicity; //! event multiplicity
virtual ~AliGMFTTreeHeader(); // default destructor
ClassDef(AliGMFTTreeHeader, 3); // Help class
};
#endif