Fork me on GitHub

source: svn/trunk/classes/DelphesClasses.h@ 1372

Last change on this file since 1372 was 1372, checked in by Pavel Demin, 11 years ago

several minor corrections

File size: 12.5 KB
RevLine 
[808]1#ifndef DelphesClasses_h
2#define DelphesClasses_h
[694]3
[814]4/**
[694]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
27class DelphesFactory;
28
29//---------------------------------------------------------------------------
30
[804]31class Event: public TObject
32{
33public:
34
35 Long64_t Number; // event number
36
[843]37 Float_t ReadTime;
[1321]38 Float_t ProcTime;
[843]39
[804]40 ClassDef(Event, 1)
41};
42
43//---------------------------------------------------------------------------
44
[843]45class LHCOEvent: public Event
[694]46{
47public:
48
[793]49 Int_t Trigger; // trigger word
50
51 ClassDef(LHCOEvent, 1)
52};
53
54//---------------------------------------------------------------------------
55
[843]56class LHEFEvent: public Event
[694]57{
58public:
59
60 Int_t ProcessID; // subprocess code for the event | hepup.IDPRUP
61
[736]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
[694]66
67 ClassDef(LHEFEvent, 2)
68};
69
70//---------------------------------------------------------------------------
71
[843]72class HepMCEvent: public Event
[694]73{
74public:
75
76 Int_t ProcessID; // unique signal process id | signal_process_id()
[1321]77 Int_t MPI; // number of multi parton interactions | mpi ()
[694]78
[1105]79 Float_t Weight; // weight for the event
80
[736]81 Float_t Scale; // energy scale, see hep-ph/0109068 | event_scale()
82 Float_t AlphaQED; // QED coupling, see hep-ph/0109068 | alphaQED()
83 Float_t AlphaQCD; // QCD coupling, see hep-ph/0109068 | alphaQCD()
[694]84
85 Int_t ID1; // flavour code of first parton | pdf_info()->id1()
[1321]86 Int_t ID2; // flavour code of second parton | pdf_info()->id2()
[694]87
[736]88 Float_t X1; // fraction of beam momentum carried by first parton ("beam side") | pdf_info()->x1()
89 Float_t X2; // fraction of beam momentum carried by second parton ("target side") | pdf_info()->x2()
[694]90
[736]91 Float_t ScalePDF; // Q-scale used in evaluation of PDF's (in GeV) | pdf_info()->scalePDF()
[694]92
[736]93 Float_t PDF1; // PDF (id1, x1, Q) | pdf_info()->pdf1()
94 Float_t PDF2; // PDF (id2, x2, Q) | pdf_info()->pdf2()
[694]95
96 ClassDef(HepMCEvent, 2)
97};
98
99//---------------------------------------------------------------------------
100
101class GenParticle: public SortableObject
102{
103public:
104 Int_t PID; // particle HEP ID number | hepevt.idhep[number]
105
106 Int_t Status; // particle status | hepevt.isthep[number]
[1014]107 Int_t IsPU; // 0 or 1 for particles from pile-up interactions
[694]108
109 Int_t M1; // particle 1st mother | hepevt.jmohep[number][0] - 1
110 Int_t M2; // particle 2nd mother | hepevt.jmohep[number][1] - 1
111
[843]112 Int_t D1; // particle 1st daughter | hepevt.jdahep[number][0] - 1
113 Int_t D2; // particle last daughter | hepevt.jdahep[number][1] - 1
114
[736]115 Int_t Charge; // particle charge
[694]116
[736]117 Float_t Mass; // particle mass
[694]118
[736]119 Float_t E; // particle energy | hepevt.phep[number][3]
120 Float_t Px; // particle momentum vector (x component) | hepevt.phep[number][0]
121 Float_t Py; // particle momentum vector (y component) | hepevt.phep[number][1]
122 Float_t Pz; // particle momentum vector (z component) | hepevt.phep[number][2]
[694]123
[736]124 Float_t PT; // particle transverse momentum
125 Float_t Eta; // particle pseudorapidity
126 Float_t Phi; // particle azimuthal angle
[694]127
[736]128 Float_t Rapidity; // particle rapidity
[694]129
[736]130 Float_t T; // particle vertex position (t component) | hepevt.vhep[number][3]
131 Float_t X; // particle vertex position (x component) | hepevt.vhep[number][0]
132 Float_t Y; // particle vertex position (y component) | hepevt.vhep[number][1]
133 Float_t Z; // particle vertex position (z component) | hepevt.vhep[number][2]
[694]134
135 static CompBase *fgCompare; //!
136 const CompBase *GetCompare() const { return fgCompare; }
[1321]137
[884]138 TLorentzVector P4();
[694]139
140 ClassDef(GenParticle, 1)
141};
142
143//---------------------------------------------------------------------------
144
[1323]145class Vertex: public TObject
146{
147public:
148 Float_t T; // vertex position (t component)
149 Float_t X; // vertex position (x component)
150 Float_t Y; // vertex position (y component)
151 Float_t Z; // vertex position (z component)
152
153 ClassDef(Vertex, 1)
154};
155
156//---------------------------------------------------------------------------
157
[694]158class MissingET: public TObject
159{
160public:
[736]161 Float_t MET; // mising transverse energy
[1318]162 Float_t Eta; // mising energy pseudorapidity
[736]163 Float_t Phi; // mising energy azimuthal angle
[694]164
[1318]165 TLorentzVector P4();
166
[694]167 ClassDef(MissingET, 1)
168};
169
170//---------------------------------------------------------------------------
171
[891]172class ScalarHT: public TObject
173{
174public:
175 Float_t HT; // scalar sum of transverse momenta
176
177 ClassDef(ScalarHT, 1)
178};
179
180//---------------------------------------------------------------------------
181
[1114]182class Rho: public TObject
183{
184public:
185 Float_t Rho; // rho energy density
[1321]186 Float_t Edges[2]; // pseudorapidity range edges
[1114]187
188 ClassDef(Rho, 1)
189};
190
191//---------------------------------------------------------------------------
192
[1123]193class Weight: public TObject
194{
195public:
196 Float_t Weight; // weight for the event
197
198 ClassDef(Weight, 1)
199};
200
201//---------------------------------------------------------------------------
202
[694]203class Photon: public SortableObject
204{
205public:
206
[736]207 Float_t PT; // photon transverse momentum
208 Float_t Eta; // photon pseudorapidity
209 Float_t Phi; // photon azimuthal angle
[694]210
[923]211 Float_t E; // photon energy
[1354]212
213 Float_t T; //particle arrival time of flight
214
[988]215 Float_t EhadOverEem; // ratio of the hadronic versus electromagnetic energy deposited in the calorimeter
[923]216
[930]217 TRefArray Particles; // references to generated particles
[923]218
[694]219 static CompBase *fgCompare; //!
220 const CompBase *GetCompare() const { return fgCompare; }
221
[884]222 TLorentzVector P4();
223
[694]224 ClassDef(Photon, 2)
225};
226
227//---------------------------------------------------------------------------
228
229class Electron: public SortableObject
230{
231public:
232
[736]233 Float_t PT; // electron transverse momentum
234 Float_t Eta; // electron pseudorapidity
235 Float_t Phi; // electron azimuthal angle
[1354]236
237 Float_t T; //particle arrival time of flight
238
[736]239 Int_t Charge; // electron charge
[694]240
[988]241 Float_t EhadOverEem; // ratio of the hadronic versus electromagnetic energy deposited in the calorimeter
242
[920]243 TRef Particle; // reference to generated particle
244
[694]245 static CompBase *fgCompare; //!
246 const CompBase *GetCompare() const { return fgCompare; }
247
[884]248 TLorentzVector P4();
249
[694]250 ClassDef(Electron, 2)
251};
252
253//---------------------------------------------------------------------------
254
255class Muon: public SortableObject
256{
257public:
258
[736]259 Float_t PT; // muon transverse momentum
260 Float_t Eta; // muon pseudorapidity
261 Float_t Phi; // muon azimuthal angle
[694]262
[1354]263 Float_t T; //particle arrival time of flight
264
[736]265 Int_t Charge; // muon charge
[694]266
[920]267 TRef Particle; // reference to generated particle
268
[694]269 static CompBase *fgCompare; //!
270 const CompBase *GetCompare() const { return fgCompare; }
271
[884]272 TLorentzVector P4();
273
[694]274 ClassDef(Muon, 2)
275};
276
277//---------------------------------------------------------------------------
278
279class Jet: public SortableObject
280{
281public:
282
[736]283 Float_t PT; // jet transverse momentum
284 Float_t Eta; // jet pseudorapidity
285 Float_t Phi; // jet azimuthal angle
[694]286
[1354]287 Float_t T; //particle arrival time of flight
288
[736]289 Float_t Mass; // jet invariant mass
[694]290
[900]291 Float_t DeltaEta; // jet radius in pseudorapidity
292 Float_t DeltaPhi; // jet radius in azimuthal angle
293
[1099]294 UInt_t BTag; // 0 or 1 for a jet that has been tagged as containing a heavy quark
295 UInt_t TauTag; // 0 or 1 for a jet that has been tagged as a tau
[694]296
[926]297 Int_t Charge; // tau charge
298
[988]299 Float_t EhadOverEem; // ratio of the hadronic versus electromagnetic energy deposited in the calorimeter
300
[1348]301 // -- PileUpJetID variables ---
302
303 Int_t NCharged;
304 Int_t NNeutrals;
305 Float_t Beta;
306 Float_t BetaStar;
307 Float_t MeanSqDeltaR;
308 Float_t PTD;
309 Float_t FracPt[5];
310
[1368]311 // -- Nsubjettiness variables ---
[1348]312
[1372]313 Float_t Tau1;
314 Float_t Tau2;
315 Float_t Tau3;
316 Float_t Tau4;
317 Float_t Tau5;
318
319 TRefArray Constituents; // references to constituents
320 TRefArray Particles; // references to generated particles
321
322 static CompBase *fgCompare; //!
323 const CompBase *GetCompare() const { return fgCompare; }
324
325 TLorentzVector P4();
326
[694]327 ClassDef(Jet, 2)
328};
329
330//---------------------------------------------------------------------------
331
[1321]332class Track: public SortableObject
[694]333{
[1321]334public:
[736]335 Int_t PID; // HEP ID number
[694]336
[736]337 Int_t Charge; // track charge
[694]338
[736]339 Float_t PT; // track transverse momentum
[696]340
[736]341 Float_t Eta; // track pseudorapidity
342 Float_t Phi; // track azimuthal angle
[702]343
[736]344 Float_t EtaOuter; // track pseudorapidity at the tracker edge
345 Float_t PhiOuter; // track azimuthal angle at the tracker edge
[702]346
[736]347 Float_t X; // track vertex position (x component)
348 Float_t Y; // track vertex position (y component)
349 Float_t Z; // track vertex position (z component)
[1345]350 Float_t T; // track vertex position (z component)
[736]351
352 Float_t XOuter; // track position (x component) at the tracker edge
353 Float_t YOuter; // track position (y component) at the tracker edge
354 Float_t ZOuter; // track position (z component) at the tracker edge
[1345]355 Float_t TOuter; // track position (z component) at the tracker edge
[1372]356
[1367]357 Float_t Dxy; // track signed transverse impact parameter
358 Float_t SDxy; // signed error on the track signed transverse impact parameter
359 Float_t Xd; // X coordinate of point of closest approach to vertex
360 Float_t Yd; // Y coordinate of point of closest approach to vertex
361 Float_t Zd; // Z coordinate of point of closest approach to vertex
[736]362
[920]363 TRef Particle; // reference to generated particle
364
[694]365 static CompBase *fgCompare; //!
366 const CompBase *GetCompare() const { return fgCompare; }
367
[884]368 TLorentzVector P4();
369
[1372]370 ClassDef(Track, 2)
[694]371};
372
373//---------------------------------------------------------------------------
374
[1321]375class Tower: public SortableObject
[694]376{
377public:
[736]378 Float_t ET; // calorimeter tower transverse energy
379 Float_t Eta; // calorimeter tower pseudorapidity
380 Float_t Phi; // calorimeter tower azimuthal angle
[694]381
[736]382 Float_t E; // calorimeter tower energy
[694]383
[1354]384 Float_t T; //particle arrival time of flight
385
[736]386 Float_t Eem; // calorimeter tower electromagnetic energy
387 Float_t Ehad; // calorimeter tower hadronic energy
[696]388
[898]389 Float_t Edges[4]; // calorimeter tower edges
390
[930]391 TRefArray Particles; // references to generated particles
[730]392
[694]393 static CompBase *fgCompare; //!
394 const CompBase *GetCompare() const { return fgCompare; }
395
[884]396 TLorentzVector P4();
397
[694]398 ClassDef(Tower, 1)
399};
400
401//---------------------------------------------------------------------------
402
[1361]403class HectorHit: public SortableObject
404{
405public:
406 Float_t E; // reconstructed energy [GeV]
407
408 Float_t Tx; // angle of the momentum in the horizontal (x,z) plane [urad]
409 Float_t Ty; // angle of the momentum in the verical (y,z) plane [urad]
410
411 Float_t T; // time of flight to the detector [s]
412
413 Float_t X; // horizontal distance to the beam [um]
414 Float_t Y; // vertical distance to the beam [um]
415 Float_t S; // distance to the interaction point [m]
416
[1366]417 TRef Particle; // reference to generated particle
418
[1361]419 static CompBase *fgCompare; //!
420 const CompBase *GetCompare() const { return fgCompare; }
421
422 ClassDef(HectorHit, 1)
423};
424
425//---------------------------------------------------------------------------
426
[1321]427class Candidate: public SortableObject
[694]428{
429 friend class DelphesFactory;
430
431public:
432 Candidate();
433
434 Int_t PID;
435
436 Int_t Status;
[843]437 Int_t M1, M2, D1, D2;
[694]438
[736]439 Int_t Charge;
[694]440
[736]441 Float_t Mass;
[1321]442
[1014]443 Int_t IsPU;
[1074]444 Int_t IsConstituent;
[1321]445
[1099]446 UInt_t BTag;
447 UInt_t TauTag;
[694]448
[736]449 Float_t Eem;
450 Float_t Ehad;
[898]451
452 Float_t Edges[4];
[900]453 Float_t DeltaEta;
454 Float_t DeltaPhi;
[898]455
[1088]456 TLorentzVector Momentum, Position, Area;
[694]457
[1372]458 Float_t Dxy;
459 Float_t SDxy;
460 Float_t Xd;
461 Float_t Yd;
462 Float_t Zd;
463
[1354]464 // PileUpJetID variables
465
466 Int_t NCharged;
467 Int_t NNeutrals;
468 Float_t Beta;
469 Float_t BetaStar;
470 Float_t MeanSqDeltaR;
471 Float_t PTD;
472 Float_t FracPt[5];
[1372]473
[1368]474 // -- Nsubjettiness variables ---
[1372]475
476 Float_t Tau[5];
477
[694]478 static CompBase *fgCompare; //!
479 const CompBase *GetCompare() const { return fgCompare; }
480
481 void AddCandidate(Candidate *object);
[887]482 TObjArray *GetCandidates();
[696]483
[887]484 Bool_t Overlaps(const Candidate *object) const;
485
[694]486 virtual void Copy(TObject &object) const;
487 virtual TObject *Clone(const char *newname = "") const;
[1321]488 virtual void Clear(Option_t* option = "");
[694]489
490private:
491 DelphesFactory *fFactory; //!
492 TObjArray *fArray; //!
[1321]493
[694]494 void SetFactory(DelphesFactory *factory) { fFactory = factory; }
495
[1372]496 ClassDef(Candidate, 2)
[694]497};
498
499#endif // DelphesClasses_h
500
501
Note: See TracBrowser for help on using the repository browser.