[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 |
|
---|
| 27 | class DelphesFactory;
|
---|
| 28 |
|
---|
| 29 | //---------------------------------------------------------------------------
|
---|
| 30 |
|
---|
[804] | 31 | class Event: public TObject
|
---|
| 32 | {
|
---|
| 33 | public:
|
---|
| 34 |
|
---|
| 35 | Long64_t Number; // event number
|
---|
| 36 |
|
---|
[843] | 37 | Float_t ReadTime;
|
---|
| 38 | Float_t ProcTime;
|
---|
| 39 |
|
---|
[804] | 40 | ClassDef(Event, 1)
|
---|
| 41 | };
|
---|
| 42 |
|
---|
| 43 | //---------------------------------------------------------------------------
|
---|
| 44 |
|
---|
[843] | 45 | class LHCOEvent: public Event
|
---|
[694] | 46 | {
|
---|
| 47 | public:
|
---|
| 48 |
|
---|
[793] | 49 | Int_t Trigger; // trigger word
|
---|
| 50 |
|
---|
| 51 | ClassDef(LHCOEvent, 1)
|
---|
| 52 | };
|
---|
| 53 |
|
---|
| 54 | //---------------------------------------------------------------------------
|
---|
| 55 |
|
---|
[843] | 56 | class LHEFEvent: public Event
|
---|
[694] | 57 | {
|
---|
| 58 | public:
|
---|
| 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] | 72 | class HepMCEvent: public Event
|
---|
[694] | 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 |
|
---|
[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()
|
---|
| 86 | Int_t ID2; // flavour code of second parton | pdf_info()->id2()
|
---|
| 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 |
|
---|
| 101 | class GenParticle: public SortableObject
|
---|
| 102 | {
|
---|
| 103 | public:
|
---|
| 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
|
---|
[1009] | 108 |
|
---|
[694] | 109 |
|
---|
| 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; }
|
---|
[884] | 138 |
|
---|
| 139 | TLorentzVector P4();
|
---|
[694] | 140 |
|
---|
| 141 | ClassDef(GenParticle, 1)
|
---|
| 142 | };
|
---|
| 143 |
|
---|
| 144 | //---------------------------------------------------------------------------
|
---|
| 145 |
|
---|
| 146 | class MissingET: public TObject
|
---|
| 147 | {
|
---|
| 148 | public:
|
---|
[736] | 149 | Float_t MET; // mising transverse energy
|
---|
| 150 | Float_t Phi; // mising energy azimuthal angle
|
---|
[694] | 151 |
|
---|
| 152 | ClassDef(MissingET, 1)
|
---|
| 153 | };
|
---|
| 154 |
|
---|
| 155 | //---------------------------------------------------------------------------
|
---|
| 156 |
|
---|
[891] | 157 | class ScalarHT: public TObject
|
---|
| 158 | {
|
---|
| 159 | public:
|
---|
| 160 | Float_t HT; // scalar sum of transverse momenta
|
---|
| 161 |
|
---|
| 162 | ClassDef(ScalarHT, 1)
|
---|
| 163 | };
|
---|
| 164 |
|
---|
| 165 | //---------------------------------------------------------------------------
|
---|
| 166 |
|
---|
[1114] | 167 | class Rho: public TObject
|
---|
| 168 | {
|
---|
| 169 | public:
|
---|
| 170 | Float_t Rho; // rho energy density
|
---|
| 171 |
|
---|
| 172 | ClassDef(Rho, 1)
|
---|
| 173 | };
|
---|
| 174 |
|
---|
| 175 | //---------------------------------------------------------------------------
|
---|
| 176 |
|
---|
[1123] | 177 | class Weight: public TObject
|
---|
| 178 | {
|
---|
| 179 | public:
|
---|
| 180 | Float_t Weight; // weight for the event
|
---|
| 181 |
|
---|
| 182 | ClassDef(Weight, 1)
|
---|
| 183 | };
|
---|
| 184 |
|
---|
| 185 | //---------------------------------------------------------------------------
|
---|
| 186 |
|
---|
[694] | 187 | class Photon: public SortableObject
|
---|
| 188 | {
|
---|
| 189 | public:
|
---|
| 190 |
|
---|
[736] | 191 | Float_t PT; // photon transverse momentum
|
---|
| 192 | Float_t Eta; // photon pseudorapidity
|
---|
| 193 | Float_t Phi; // photon azimuthal angle
|
---|
[694] | 194 |
|
---|
[923] | 195 | Float_t E; // photon energy
|
---|
[988] | 196 |
|
---|
| 197 | Float_t EhadOverEem; // ratio of the hadronic versus electromagnetic energy deposited in the calorimeter
|
---|
[923] | 198 |
|
---|
[930] | 199 | TRefArray Particles; // references to generated particles
|
---|
[923] | 200 |
|
---|
[694] | 201 | static CompBase *fgCompare; //!
|
---|
| 202 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 203 |
|
---|
[884] | 204 | TLorentzVector P4();
|
---|
| 205 |
|
---|
[694] | 206 | ClassDef(Photon, 2)
|
---|
| 207 | };
|
---|
| 208 |
|
---|
| 209 | //---------------------------------------------------------------------------
|
---|
| 210 |
|
---|
| 211 | class Electron: public SortableObject
|
---|
| 212 | {
|
---|
| 213 | public:
|
---|
| 214 |
|
---|
[736] | 215 | Float_t PT; // electron transverse momentum
|
---|
| 216 | Float_t Eta; // electron pseudorapidity
|
---|
| 217 | Float_t Phi; // electron azimuthal angle
|
---|
[694] | 218 |
|
---|
[736] | 219 | Int_t Charge; // electron charge
|
---|
[694] | 220 |
|
---|
[988] | 221 | Float_t EhadOverEem; // ratio of the hadronic versus electromagnetic energy deposited in the calorimeter
|
---|
| 222 |
|
---|
[920] | 223 | TRef Particle; // reference to generated particle
|
---|
| 224 |
|
---|
[694] | 225 | static CompBase *fgCompare; //!
|
---|
| 226 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 227 |
|
---|
[884] | 228 | TLorentzVector P4();
|
---|
| 229 |
|
---|
[694] | 230 | ClassDef(Electron, 2)
|
---|
| 231 | };
|
---|
| 232 |
|
---|
| 233 | //---------------------------------------------------------------------------
|
---|
| 234 |
|
---|
| 235 | class Muon: public SortableObject
|
---|
| 236 | {
|
---|
| 237 | public:
|
---|
| 238 |
|
---|
[736] | 239 | Float_t PT; // muon transverse momentum
|
---|
| 240 | Float_t Eta; // muon pseudorapidity
|
---|
| 241 | Float_t Phi; // muon azimuthal angle
|
---|
[694] | 242 |
|
---|
[736] | 243 | Int_t Charge; // muon charge
|
---|
[694] | 244 |
|
---|
[920] | 245 | TRef Particle; // reference to generated particle
|
---|
| 246 |
|
---|
[694] | 247 | static CompBase *fgCompare; //!
|
---|
| 248 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 249 |
|
---|
[884] | 250 | TLorentzVector P4();
|
---|
| 251 |
|
---|
[694] | 252 | ClassDef(Muon, 2)
|
---|
| 253 | };
|
---|
| 254 |
|
---|
| 255 | //---------------------------------------------------------------------------
|
---|
| 256 |
|
---|
| 257 | class Jet: public SortableObject
|
---|
| 258 | {
|
---|
| 259 | public:
|
---|
| 260 |
|
---|
[736] | 261 | Float_t PT; // jet transverse momentum
|
---|
| 262 | Float_t Eta; // jet pseudorapidity
|
---|
| 263 | Float_t Phi; // jet azimuthal angle
|
---|
[694] | 264 |
|
---|
[736] | 265 | Float_t Mass; // jet invariant mass
|
---|
[694] | 266 |
|
---|
[900] | 267 | Float_t DeltaEta; // jet radius in pseudorapidity
|
---|
| 268 | Float_t DeltaPhi; // jet radius in azimuthal angle
|
---|
| 269 |
|
---|
[1099] | 270 | UInt_t BTag; // 0 or 1 for a jet that has been tagged as containing a heavy quark
|
---|
| 271 | UInt_t TauTag; // 0 or 1 for a jet that has been tagged as a tau
|
---|
[694] | 272 |
|
---|
[926] | 273 | Int_t Charge; // tau charge
|
---|
| 274 |
|
---|
[988] | 275 | Float_t EhadOverEem; // ratio of the hadronic versus electromagnetic energy deposited in the calorimeter
|
---|
| 276 |
|
---|
[936] | 277 | TRefArray Constituents; // references to constituents
|
---|
[930] | 278 | TRefArray Particles; // references to generated particles
|
---|
[730] | 279 |
|
---|
[694] | 280 | static CompBase *fgCompare; //!
|
---|
| 281 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 282 |
|
---|
[884] | 283 | TLorentzVector P4();
|
---|
| 284 |
|
---|
[694] | 285 | ClassDef(Jet, 2)
|
---|
| 286 | };
|
---|
| 287 |
|
---|
| 288 | //---------------------------------------------------------------------------
|
---|
| 289 |
|
---|
| 290 | class Track: public SortableObject
|
---|
| 291 | {
|
---|
[736] | 292 | public:
|
---|
| 293 | Int_t PID; // HEP ID number
|
---|
[694] | 294 |
|
---|
[736] | 295 | Int_t Charge; // track charge
|
---|
[694] | 296 |
|
---|
[736] | 297 | Float_t PT; // track transverse momentum
|
---|
[696] | 298 |
|
---|
[736] | 299 | Float_t Eta; // track pseudorapidity
|
---|
| 300 | Float_t Phi; // track azimuthal angle
|
---|
[702] | 301 |
|
---|
[736] | 302 | Float_t EtaOuter; // track pseudorapidity at the tracker edge
|
---|
| 303 | Float_t PhiOuter; // track azimuthal angle at the tracker edge
|
---|
[702] | 304 |
|
---|
[736] | 305 | Float_t X; // track vertex position (x component)
|
---|
| 306 | Float_t Y; // track vertex position (y component)
|
---|
| 307 | Float_t Z; // track vertex position (z component)
|
---|
| 308 |
|
---|
| 309 | Float_t XOuter; // track position (x component) at the tracker edge
|
---|
| 310 | Float_t YOuter; // track position (y component) at the tracker edge
|
---|
| 311 | Float_t ZOuter; // track position (z component) at the tracker edge
|
---|
| 312 |
|
---|
[920] | 313 | TRef Particle; // reference to generated particle
|
---|
| 314 |
|
---|
[694] | 315 | static CompBase *fgCompare; //!
|
---|
| 316 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 317 |
|
---|
[884] | 318 | TLorentzVector P4();
|
---|
| 319 |
|
---|
[694] | 320 | ClassDef(Track, 1)
|
---|
| 321 | };
|
---|
| 322 |
|
---|
| 323 | //---------------------------------------------------------------------------
|
---|
| 324 |
|
---|
| 325 | class Tower: public SortableObject
|
---|
| 326 | {
|
---|
| 327 | public:
|
---|
[736] | 328 | Float_t ET; // calorimeter tower transverse energy
|
---|
| 329 | Float_t Eta; // calorimeter tower pseudorapidity
|
---|
| 330 | Float_t Phi; // calorimeter tower azimuthal angle
|
---|
[694] | 331 |
|
---|
[736] | 332 | Float_t E; // calorimeter tower energy
|
---|
[694] | 333 |
|
---|
[736] | 334 | Float_t Eem; // calorimeter tower electromagnetic energy
|
---|
| 335 | Float_t Ehad; // calorimeter tower hadronic energy
|
---|
[696] | 336 |
|
---|
[898] | 337 | Float_t Edges[4]; // calorimeter tower edges
|
---|
| 338 |
|
---|
[930] | 339 | TRefArray Particles; // references to generated particles
|
---|
[730] | 340 |
|
---|
[694] | 341 | static CompBase *fgCompare; //!
|
---|
| 342 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 343 |
|
---|
[884] | 344 | TLorentzVector P4();
|
---|
| 345 |
|
---|
[694] | 346 | ClassDef(Tower, 1)
|
---|
| 347 | };
|
---|
| 348 |
|
---|
| 349 | //---------------------------------------------------------------------------
|
---|
| 350 |
|
---|
| 351 | class Candidate: public SortableObject
|
---|
| 352 | {
|
---|
| 353 | friend class DelphesFactory;
|
---|
| 354 |
|
---|
| 355 | public:
|
---|
| 356 | Candidate();
|
---|
| 357 |
|
---|
| 358 | Int_t PID;
|
---|
| 359 |
|
---|
| 360 | Int_t Status;
|
---|
[843] | 361 | Int_t M1, M2, D1, D2;
|
---|
[694] | 362 |
|
---|
[736] | 363 | Int_t Charge;
|
---|
[694] | 364 |
|
---|
[736] | 365 | Float_t Mass;
|
---|
[696] | 366 |
|
---|
[1014] | 367 | Int_t IsPU;
|
---|
[1074] | 368 | Int_t IsConstituent;
|
---|
[1009] | 369 |
|
---|
[1099] | 370 | UInt_t BTag;
|
---|
| 371 | UInt_t TauTag;
|
---|
[694] | 372 |
|
---|
[736] | 373 | Float_t Eem;
|
---|
| 374 | Float_t Ehad;
|
---|
[898] | 375 |
|
---|
| 376 | Float_t Edges[4];
|
---|
[900] | 377 | Float_t DeltaEta;
|
---|
| 378 | Float_t DeltaPhi;
|
---|
[898] | 379 |
|
---|
[1088] | 380 | TLorentzVector Momentum, Position, Area;
|
---|
[694] | 381 |
|
---|
| 382 | static CompBase *fgCompare; //!
|
---|
| 383 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 384 |
|
---|
| 385 | void AddCandidate(Candidate *object);
|
---|
[887] | 386 | TObjArray *GetCandidates();
|
---|
[696] | 387 |
|
---|
[887] | 388 | Bool_t Overlaps(const Candidate *object) const;
|
---|
| 389 |
|
---|
[694] | 390 | virtual void Copy(TObject &object) const;
|
---|
| 391 | virtual TObject *Clone(const char *newname = "") const;
|
---|
| 392 | virtual void Clear(Option_t* option = "");
|
---|
| 393 |
|
---|
| 394 | private:
|
---|
| 395 | DelphesFactory *fFactory; //!
|
---|
| 396 | TObjArray *fArray; //!
|
---|
| 397 |
|
---|
| 398 | void SetFactory(DelphesFactory *factory) { fFactory = factory; }
|
---|
| 399 |
|
---|
| 400 | ClassDef(Candidate, 1)
|
---|
| 401 | };
|
---|
| 402 |
|
---|
| 403 | #endif // DelphesClasses_h
|
---|
| 404 |
|
---|
| 405 |
|
---|