Fork me on GitHub

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

Last change on this file since 1369 was 1368, checked in by Michele Selvaggi, 11 years ago

added nsubjettiness

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