1 | #ifndef DelphesClasses_h |
---|
2 | #define DelphesClasses_h |
---|
3 | |
---|
4 | /** |
---|
5 | * |
---|
6 | * Definition of classes to be stored in the root tree. |
---|
7 | * Function CompareXYZ sorts objects by the variable XYZ that MUST be |
---|
8 | * present in the data members of the root tree class of the branch. |
---|
9 | * |
---|
10 | * $Date: 2008-06-04 13:57:24 $ |
---|
11 | * $Revision: 1.1 $ |
---|
12 | * |
---|
13 | * |
---|
14 | * \author P. Demin - UCL, Louvain-la-Neuve |
---|
15 | * |
---|
16 | */ |
---|
17 | |
---|
18 | // Dependencies (#includes) |
---|
19 | |
---|
20 | #include "TRef.h" |
---|
21 | #include "TObject.h" |
---|
22 | #include "TRefArray.h" |
---|
23 | #include "TLorentzVector.h" |
---|
24 | |
---|
25 | #include "classes/SortableObject.h" |
---|
26 | |
---|
27 | class DelphesFactory; |
---|
28 | |
---|
29 | //--------------------------------------------------------------------------- |
---|
30 | |
---|
31 | class Event: public TObject |
---|
32 | { |
---|
33 | public: |
---|
34 | |
---|
35 | Long64_t Number; // event number |
---|
36 | |
---|
37 | Float_t ReadTime; |
---|
38 | Float_t ProcTime; |
---|
39 | |
---|
40 | ClassDef(Event, 1) |
---|
41 | }; |
---|
42 | |
---|
43 | //--------------------------------------------------------------------------- |
---|
44 | |
---|
45 | class LHCOEvent: public Event |
---|
46 | { |
---|
47 | public: |
---|
48 | |
---|
49 | Int_t Trigger; // trigger word |
---|
50 | |
---|
51 | ClassDef(LHCOEvent, 1) |
---|
52 | }; |
---|
53 | |
---|
54 | //--------------------------------------------------------------------------- |
---|
55 | |
---|
56 | class LHEFEvent: public Event |
---|
57 | { |
---|
58 | public: |
---|
59 | |
---|
60 | Int_t ProcessID; // subprocess code for the event | hepup.IDPRUP |
---|
61 | |
---|
62 | Float_t Weight; // weight for the event | hepup.XWGTUP |
---|
63 | Float_t ScalePDF; // scale in GeV used in the calculation of the PDFs in the event | hepup.SCALUP |
---|
64 | Float_t AlphaQED; // value of the QED coupling used in the event | hepup.AQEDUP |
---|
65 | Float_t AlphaQCD; // value of the QCD coupling used in the event | hepup.AQCDUP |
---|
66 | |
---|
67 | ClassDef(LHEFEvent, 2) |
---|
68 | }; |
---|
69 | |
---|
70 | //--------------------------------------------------------------------------- |
---|
71 | |
---|
72 | class HepMCEvent: public Event |
---|
73 | { |
---|
74 | public: |
---|
75 | |
---|
76 | Int_t ProcessID; // unique signal process id | signal_process_id() |
---|
77 | Int_t MPI; // number of multi parton interactions | mpi () |
---|
78 | |
---|
79 | Float_t Scale; // energy scale, see hep-ph/0109068 | event_scale() |
---|
80 | Float_t AlphaQED; // QED coupling, see hep-ph/0109068 | alphaQED() |
---|
81 | Float_t AlphaQCD; // QCD coupling, see hep-ph/0109068 | alphaQCD() |
---|
82 | |
---|
83 | Int_t ID1; // flavour code of first parton | pdf_info()->id1() |
---|
84 | Int_t ID2; // flavour code of second parton | pdf_info()->id2() |
---|
85 | |
---|
86 | Float_t X1; // fraction of beam momentum carried by first parton ("beam side") | pdf_info()->x1() |
---|
87 | Float_t X2; // fraction of beam momentum carried by second parton ("target side") | pdf_info()->x2() |
---|
88 | |
---|
89 | Float_t ScalePDF; // Q-scale used in evaluation of PDF's (in GeV) | pdf_info()->scalePDF() |
---|
90 | |
---|
91 | Float_t PDF1; // PDF (id1, x1, Q) | pdf_info()->pdf1() |
---|
92 | Float_t PDF2; // PDF (id2, x2, Q) | pdf_info()->pdf2() |
---|
93 | |
---|
94 | ClassDef(HepMCEvent, 2) |
---|
95 | }; |
---|
96 | |
---|
97 | //--------------------------------------------------------------------------- |
---|
98 | |
---|
99 | class GenParticle: public SortableObject |
---|
100 | { |
---|
101 | public: |
---|
102 | Int_t PID; // particle HEP ID number | hepevt.idhep[number] |
---|
103 | |
---|
104 | Int_t Status; // particle status | hepevt.isthep[number] |
---|
105 | |
---|
106 | Int_t M1; // particle 1st mother | hepevt.jmohep[number][0] - 1 |
---|
107 | Int_t M2; // particle 2nd mother | hepevt.jmohep[number][1] - 1 |
---|
108 | |
---|
109 | Int_t D1; // particle 1st daughter | hepevt.jdahep[number][0] - 1 |
---|
110 | Int_t D2; // particle last daughter | hepevt.jdahep[number][1] - 1 |
---|
111 | |
---|
112 | Int_t Charge; // particle charge |
---|
113 | |
---|
114 | Float_t Mass; // particle mass |
---|
115 | |
---|
116 | Float_t E; // particle energy | hepevt.phep[number][3] |
---|
117 | Float_t Px; // particle momentum vector (x component) | hepevt.phep[number][0] |
---|
118 | Float_t Py; // particle momentum vector (y component) | hepevt.phep[number][1] |
---|
119 | Float_t Pz; // particle momentum vector (z component) | hepevt.phep[number][2] |
---|
120 | |
---|
121 | Float_t PT; // particle transverse momentum |
---|
122 | Float_t Eta; // particle pseudorapidity |
---|
123 | Float_t Phi; // particle azimuthal angle |
---|
124 | |
---|
125 | Float_t Rapidity; // particle rapidity |
---|
126 | |
---|
127 | Float_t T; // particle vertex position (t component) | hepevt.vhep[number][3] |
---|
128 | Float_t X; // particle vertex position (x component) | hepevt.vhep[number][0] |
---|
129 | Float_t Y; // particle vertex position (y component) | hepevt.vhep[number][1] |
---|
130 | Float_t Z; // particle vertex position (z component) | hepevt.vhep[number][2] |
---|
131 | |
---|
132 | static CompBase *fgCompare; //! |
---|
133 | const CompBase *GetCompare() const { return fgCompare; } |
---|
134 | |
---|
135 | ClassDef(GenParticle, 1) |
---|
136 | }; |
---|
137 | |
---|
138 | //--------------------------------------------------------------------------- |
---|
139 | |
---|
140 | class MissingET: public TObject |
---|
141 | { |
---|
142 | public: |
---|
143 | Float_t MET; // mising transverse energy |
---|
144 | Float_t Phi; // mising energy azimuthal angle |
---|
145 | |
---|
146 | ClassDef(MissingET, 1) |
---|
147 | }; |
---|
148 | |
---|
149 | //--------------------------------------------------------------------------- |
---|
150 | |
---|
151 | class Photon: public SortableObject |
---|
152 | { |
---|
153 | public: |
---|
154 | |
---|
155 | Float_t PT; // photon transverse momentum |
---|
156 | Float_t Eta; // photon pseudorapidity |
---|
157 | Float_t Phi; // photon azimuthal angle |
---|
158 | |
---|
159 | static CompBase *fgCompare; //! |
---|
160 | const CompBase *GetCompare() const { return fgCompare; } |
---|
161 | |
---|
162 | ClassDef(Photon, 2) |
---|
163 | }; |
---|
164 | |
---|
165 | //--------------------------------------------------------------------------- |
---|
166 | |
---|
167 | class Electron: public SortableObject |
---|
168 | { |
---|
169 | public: |
---|
170 | |
---|
171 | Float_t PT; // electron transverse momentum |
---|
172 | Float_t Eta; // electron pseudorapidity |
---|
173 | Float_t Phi; // electron azimuthal angle |
---|
174 | |
---|
175 | Int_t Charge; // electron charge |
---|
176 | |
---|
177 | static CompBase *fgCompare; //! |
---|
178 | const CompBase *GetCompare() const { return fgCompare; } |
---|
179 | |
---|
180 | ClassDef(Electron, 2) |
---|
181 | }; |
---|
182 | |
---|
183 | //--------------------------------------------------------------------------- |
---|
184 | |
---|
185 | class Muon: public SortableObject |
---|
186 | { |
---|
187 | public: |
---|
188 | |
---|
189 | Float_t PT; // muon transverse momentum |
---|
190 | Float_t Eta; // muon pseudorapidity |
---|
191 | Float_t Phi; // muon azimuthal angle |
---|
192 | |
---|
193 | Int_t Charge; // muon charge |
---|
194 | |
---|
195 | static CompBase *fgCompare; //! |
---|
196 | const CompBase *GetCompare() const { return fgCompare; } |
---|
197 | |
---|
198 | ClassDef(Muon, 2) |
---|
199 | }; |
---|
200 | |
---|
201 | //--------------------------------------------------------------------------- |
---|
202 | |
---|
203 | class TauJet: public SortableObject |
---|
204 | { |
---|
205 | public: |
---|
206 | |
---|
207 | Float_t PT; // tau transverse momentum |
---|
208 | Float_t Eta; // tau pseudorapidity |
---|
209 | Float_t Phi; // tau azimuthal angle |
---|
210 | |
---|
211 | Int_t Charge; // tau charge |
---|
212 | |
---|
213 | Int_t Ntrk; // number of charged tracks associated with the tau |
---|
214 | |
---|
215 | static CompBase *fgCompare; //! |
---|
216 | const CompBase *GetCompare() const { return fgCompare; } |
---|
217 | |
---|
218 | ClassDef(TauJet, 2) |
---|
219 | }; |
---|
220 | |
---|
221 | //--------------------------------------------------------------------------- |
---|
222 | |
---|
223 | class Jet: public SortableObject |
---|
224 | { |
---|
225 | public: |
---|
226 | |
---|
227 | Float_t PT; // jet transverse momentum |
---|
228 | Float_t Eta; // jet pseudorapidity |
---|
229 | Float_t Phi; // jet azimuthal angle |
---|
230 | |
---|
231 | Float_t Mass; // jet invariant mass |
---|
232 | |
---|
233 | Int_t BTag; // 1 or 2 for a jet that has been tagged as containing a heavy quark |
---|
234 | |
---|
235 | Int_t Ntrk; // number of tracks associated with the jet |
---|
236 | |
---|
237 | static CompBase *fgCompare; //! |
---|
238 | const CompBase *GetCompare() const { return fgCompare; } |
---|
239 | |
---|
240 | ClassDef(Jet, 2) |
---|
241 | }; |
---|
242 | |
---|
243 | //--------------------------------------------------------------------------- |
---|
244 | |
---|
245 | class Track: public SortableObject |
---|
246 | { |
---|
247 | public: |
---|
248 | Int_t PID; // HEP ID number |
---|
249 | |
---|
250 | Int_t Charge; // track charge |
---|
251 | |
---|
252 | Float_t PT; // track transverse momentum |
---|
253 | |
---|
254 | Float_t Eta; // track pseudorapidity |
---|
255 | Float_t Phi; // track azimuthal angle |
---|
256 | |
---|
257 | Float_t EtaOuter; // track pseudorapidity at the tracker edge |
---|
258 | Float_t PhiOuter; // track azimuthal angle at the tracker edge |
---|
259 | |
---|
260 | Float_t X; // track vertex position (x component) |
---|
261 | Float_t Y; // track vertex position (y component) |
---|
262 | Float_t Z; // track vertex position (z component) |
---|
263 | |
---|
264 | Float_t XOuter; // track position (x component) at the tracker edge |
---|
265 | Float_t YOuter; // track position (y component) at the tracker edge |
---|
266 | Float_t ZOuter; // track position (z component) at the tracker edge |
---|
267 | |
---|
268 | |
---|
269 | |
---|
270 | static CompBase *fgCompare; //! |
---|
271 | const CompBase *GetCompare() const { return fgCompare; } |
---|
272 | |
---|
273 | ClassDef(Track, 1) |
---|
274 | }; |
---|
275 | |
---|
276 | //--------------------------------------------------------------------------- |
---|
277 | |
---|
278 | class Tower: public SortableObject |
---|
279 | { |
---|
280 | public: |
---|
281 | Float_t ET; // calorimeter tower transverse energy |
---|
282 | Float_t Eta; // calorimeter tower pseudorapidity |
---|
283 | Float_t Phi; // calorimeter tower azimuthal angle |
---|
284 | |
---|
285 | Float_t E; // calorimeter tower energy |
---|
286 | |
---|
287 | Float_t Eem; // calorimeter tower electromagnetic energy |
---|
288 | Float_t Ehad; // calorimeter tower hadronic energy |
---|
289 | |
---|
290 | Int_t Nhit; // number of hits associated with the tower |
---|
291 | |
---|
292 | static CompBase *fgCompare; //! |
---|
293 | const CompBase *GetCompare() const { return fgCompare; } |
---|
294 | |
---|
295 | ClassDef(Tower, 1) |
---|
296 | }; |
---|
297 | |
---|
298 | //--------------------------------------------------------------------------- |
---|
299 | |
---|
300 | class Candidate: public SortableObject |
---|
301 | { |
---|
302 | friend class DelphesFactory; |
---|
303 | |
---|
304 | public: |
---|
305 | Candidate(); |
---|
306 | |
---|
307 | Int_t PID; |
---|
308 | |
---|
309 | Int_t Status; |
---|
310 | Int_t M1, M2, D1, D2; |
---|
311 | |
---|
312 | Int_t Charge; |
---|
313 | |
---|
314 | Float_t Mass; |
---|
315 | |
---|
316 | Int_t BTag; |
---|
317 | |
---|
318 | Float_t Eem; |
---|
319 | Float_t Ehad; |
---|
320 | |
---|
321 | TLorentzVector Momentum, Position; |
---|
322 | |
---|
323 | Candidate *Mother; //! |
---|
324 | |
---|
325 | static CompBase *fgCompare; //! |
---|
326 | const CompBase *GetCompare() const { return fgCompare; } |
---|
327 | |
---|
328 | void AddCandidate(Candidate *object); |
---|
329 | TObjArray *GetCandidates() const { return fArray; } |
---|
330 | |
---|
331 | virtual void Copy(TObject &object) const; |
---|
332 | virtual TObject *Clone(const char *newname = "") const; |
---|
333 | virtual void Clear(Option_t* option = ""); |
---|
334 | |
---|
335 | private: |
---|
336 | DelphesFactory *fFactory; //! |
---|
337 | TObjArray *fArray; //! |
---|
338 | |
---|
339 | void SetFactory(DelphesFactory *factory) { fFactory = factory; } |
---|
340 | |
---|
341 | ClassDef(Candidate, 1) |
---|
342 | }; |
---|
343 | |
---|
344 | #endif // DelphesClasses_h |
---|
345 | |
---|
346 | |
---|