Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
DataFormat.h
1/*
2 * DataFormat.h
3 *
4 * Created on: 04-05-2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HALFEMTO_DATAFORMAT_HALDATAFORMAT_H_
10#define HALFEMTO_DATAFORMAT_HALDATAFORMAT_H_
11
12#include <TObject.h>
13namespace Hal {
14 namespace DataFieldID {
15 const Int_t ReStep = 1000000; // 1M
16 const Int_t ImStep = 2000000; // 2M
17 namespace Internal { // do not use in macro
18 const Int_t EventStart = 10000000; // 10 M
19 const Int_t ReStepEvent = EventStart + ReStep;
20 const Int_t ImStepEvent = EventStart + ImStep;
21 } // namespace Internal
22 namespace Event {
23 enum EBasic {
24 kVertexX = Hal::DataFieldID::Internal::EventStart + 1,
25 kVertexY = Hal::DataFieldID::Internal::EventStart + 2,
26 kVertexZ = Hal::DataFieldID::Internal::EventStart + 3,
27 kVertexXY = Hal::DataFieldID::Internal::EventStart + 4,
28 kVertexT = Hal::DataFieldID::Internal::EventStart + 5,
29 kEventPhi = Hal::DataFieldID::Internal::EventStart + 6,
30 kPhiError = Hal::DataFieldID::Internal::EventStart + 7,
31 kTracksNo = Hal::DataFieldID::Internal::EventStart + 8,
32 kEventId = Hal::DataFieldID::Internal::EventStart + 9,
33 kEventZero = Hal::DataFieldID::Internal::EventStart + 10,
34 kMultiplicity = Hal::DataFieldID::Internal::EventStart + 11
35 };
36 enum EMc { kB = Hal::DataFieldID::Internal::EventStart + 101 };
37 enum EExp { kTofTracksNo = Hal::DataFieldID::Internal::EventStart + 201 };
38 enum EComplex {
39 kDeltaRPhi = Hal::DataFieldID::Internal::EventStart + 301,
40 kDeltaVertexXY = Hal::DataFieldID::Internal::EventStart + 302,
41 kDeltaVertexX = Hal::DataFieldID::Internal::EventStart + 303,
42 kDeltaVertexY = Hal::DataFieldID::Internal::EventStart + 304,
43 kDeltaVertexZ = Hal::DataFieldID::Internal::EventStart + 305,
44
45 kDeltaVertexT = Hal::DataFieldID::Internal::EventStart + 306,
46 kDeltaVertex = Hal::DataFieldID::Internal::EventStart + 307,
47 kDeltaTracksNo = Hal::DataFieldID::Internal::EventStart + 308
48 };
49 } // namespace Event
50
51 namespace Track {
52 enum EBasic {
53 kPx = 1,
54 kPy = 2,
55 kPz = 3,
56 kE = 4,
57 kPhi = 5,
58 kPt = 6,
59 kTheta = 7,
60 kP = 8,
61 kEta = 9,
62 kRapidity = 10,
63 kCharge = 11,
64 kStatus = 12,
65 kPq = 13,
66 kTrackZero = 14
67 };
68
69 enum EMc {
70 kXfr = 101,
71 kYfr = 102,
72 kZfr = 103,
73 kTfr = 104,
74 kXstar = 105,
75
76 kYstart = 106,
77 kZstart = 107,
78 kTstart = 108,
79 kPdg = 109,
80 kXYstart = 110,
81
82 kXYfr = 111
83 };
84 enum EExp {
85 kChi2 = 201,
86 kNHits = 202,
87 kTrackLenght = 203,
88 kDcaX = 204,
89 kDcaY = 205,
90 kDcaZ = 206,
91 kDcaXY = 207,
92 kDca = 208,
93 // only for detectors
94 kTofM2 = 301,
95 kToFBeta = 302,
96 kToFFlag = 303,
97 kToFTime = 304,
98 kToFEnergy = 305,
99
100 kTpcDedx = 310,
101 kTpcNHits = 311,
102 kTpcNsigmaPi = 312,
103 kTpcNsigmaKa = 313,
104 kTpcNsigmaPr = 314,
105 kTpcNsigmaEl = 315
106
107 };
108 enum EComplex {
109 kDeltaPt = 401,
110 kDeltaPz = 402,
111 kDeltaP = 403,
112 kDeltaPx = 404,
113 kDeltaPy = 405,
114 kDeltaPhi = 406,
115 kDeltaTheta = 407,
116 kDeltaEta = 408
117 };
118
119 enum EV0 {
120 kAssumedPdg = 501,
121 kAssumedPdgPos = 502,
122 kAssumedPdgNeg = 503,
123 kS1 = 504,
124 kS2 = 505,
125 kAlphaArm = 506,
126 kPtArm = 507,
127 kDauDist = 508,
128 kDecLenght = 509,
129 kCosAngle = 510,
130 kLambdaMass = 511,
131 kAntiLambdaMass = 512,
132 kK0Mass = 516
133 };
134 } // namespace Track
135
136 } // namespace DataFieldID
137
138 namespace DetectorID {
144 UInt_t GetDetectorID(TString pattern);
148 const UInt_t kTPC = 38496;
149 const UInt_t kTOF = 38463;
150 const UInt_t kSTS = 37360;
151 } // namespace DetectorID
152} // namespace Hal
153
154#endif /* HALFEMTO_DATAFORMAT_HALDATAFORMAT_H_ */