[d7d2da3] | 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;
|
---|
[3b465ca] | 38 | Float_t ProcTime;
|
---|
[d7d2da3] | 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()
|
---|
[3b465ca] | 77 | Int_t MPI; // number of multi parton interactions | mpi ()
|
---|
[d7d2da3] | 78 |
|
---|
[59abd43] | 79 | Float_t Weight; // weight for the event
|
---|
| 80 |
|
---|
[d7d2da3] | 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()
|
---|
| 84 |
|
---|
| 85 | Int_t ID1; // flavour code of first parton | pdf_info()->id1()
|
---|
[3b465ca] | 86 | Int_t ID2; // flavour code of second parton | pdf_info()->id2()
|
---|
[d7d2da3] | 87 |
|
---|
| 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()
|
---|
| 90 |
|
---|
| 91 | Float_t ScalePDF; // Q-scale used in evaluation of PDF's (in GeV) | pdf_info()->scalePDF()
|
---|
| 92 |
|
---|
| 93 | Float_t PDF1; // PDF (id1, x1, Q) | pdf_info()->pdf1()
|
---|
| 94 | Float_t PDF2; // PDF (id2, x2, Q) | pdf_info()->pdf2()
|
---|
| 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]
|
---|
| 107 | Int_t IsPU; // 0 or 1 for particles from pile-up interactions
|
---|
[3b465ca] | 108 |
|
---|
[d7d2da3] | 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 |
|
---|
| 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 |
|
---|
| 116 | Int_t Charge; // particle charge
|
---|
| 117 |
|
---|
| 118 | Float_t Mass; // particle mass
|
---|
| 119 |
|
---|
| 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]
|
---|
| 124 |
|
---|
| 125 | Float_t PT; // particle transverse momentum
|
---|
| 126 | Float_t Eta; // particle pseudorapidity
|
---|
| 127 | Float_t Phi; // particle azimuthal angle
|
---|
| 128 |
|
---|
| 129 | Float_t Rapidity; // particle rapidity
|
---|
| 130 |
|
---|
| 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]
|
---|
| 135 |
|
---|
| 136 | static CompBase *fgCompare; //!
|
---|
| 137 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
[3b465ca] | 138 |
|
---|
[d7d2da3] | 139 | TLorentzVector P4();
|
---|
| 140 |
|
---|
| 141 | ClassDef(GenParticle, 1)
|
---|
| 142 | };
|
---|
| 143 |
|
---|
| 144 | //---------------------------------------------------------------------------
|
---|
| 145 |
|
---|
[d07e957] | 146 | class Vertex: public TObject
|
---|
| 147 | {
|
---|
| 148 | public:
|
---|
| 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 |
|
---|
[d7d2da3] | 159 | class MissingET: public TObject
|
---|
| 160 | {
|
---|
| 161 | public:
|
---|
| 162 | Float_t MET; // mising transverse energy
|
---|
[4ad7b96] | 163 | Float_t Eta; // mising energy pseudorapidity
|
---|
[d7d2da3] | 164 | Float_t Phi; // mising energy azimuthal angle
|
---|
| 165 |
|
---|
[4ad7b96] | 166 | TLorentzVector P4();
|
---|
| 167 |
|
---|
[d7d2da3] | 168 | ClassDef(MissingET, 1)
|
---|
| 169 | };
|
---|
| 170 |
|
---|
| 171 | //---------------------------------------------------------------------------
|
---|
| 172 |
|
---|
| 173 | class ScalarHT: public TObject
|
---|
| 174 | {
|
---|
| 175 | public:
|
---|
| 176 | Float_t HT; // scalar sum of transverse momenta
|
---|
| 177 |
|
---|
| 178 | ClassDef(ScalarHT, 1)
|
---|
| 179 | };
|
---|
| 180 |
|
---|
| 181 | //---------------------------------------------------------------------------
|
---|
| 182 |
|
---|
[71648c2] | 183 | class Rho: public TObject
|
---|
| 184 | {
|
---|
| 185 | public:
|
---|
| 186 | Float_t Rho; // rho energy density
|
---|
[3b465ca] | 187 | Float_t Edges[2]; // pseudorapidity range edges
|
---|
[71648c2] | 188 |
|
---|
| 189 | ClassDef(Rho, 1)
|
---|
| 190 | };
|
---|
| 191 |
|
---|
| 192 | //---------------------------------------------------------------------------
|
---|
| 193 |
|
---|
[2e229c9] | 194 | class Weight: public TObject
|
---|
| 195 | {
|
---|
| 196 | public:
|
---|
| 197 | Float_t Weight; // weight for the event
|
---|
| 198 |
|
---|
| 199 | ClassDef(Weight, 1)
|
---|
| 200 | };
|
---|
| 201 |
|
---|
| 202 | //---------------------------------------------------------------------------
|
---|
| 203 |
|
---|
[d7d2da3] | 204 | class Photon: public SortableObject
|
---|
| 205 | {
|
---|
| 206 | public:
|
---|
| 207 |
|
---|
| 208 | Float_t PT; // photon transverse momentum
|
---|
| 209 | Float_t Eta; // photon pseudorapidity
|
---|
| 210 | Float_t Phi; // photon azimuthal angle
|
---|
| 211 |
|
---|
| 212 | Float_t E; // photon energy
|
---|
[da00c35] | 213 |
|
---|
| 214 | Float_t T; //particle arrival time of flight
|
---|
| 215 |
|
---|
[d7d2da3] | 216 | Float_t EhadOverEem; // ratio of the hadronic versus electromagnetic energy deposited in the calorimeter
|
---|
| 217 |
|
---|
| 218 | TRefArray Particles; // references to generated particles
|
---|
| 219 |
|
---|
| 220 | static CompBase *fgCompare; //!
|
---|
| 221 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 222 |
|
---|
| 223 | TLorentzVector P4();
|
---|
| 224 |
|
---|
| 225 | ClassDef(Photon, 2)
|
---|
| 226 | };
|
---|
| 227 |
|
---|
| 228 | //---------------------------------------------------------------------------
|
---|
| 229 |
|
---|
| 230 | class Electron: public SortableObject
|
---|
| 231 | {
|
---|
| 232 | public:
|
---|
| 233 |
|
---|
| 234 | Float_t PT; // electron transverse momentum
|
---|
| 235 | Float_t Eta; // electron pseudorapidity
|
---|
| 236 | Float_t Phi; // electron azimuthal angle
|
---|
[da00c35] | 237 |
|
---|
| 238 | Float_t T; //particle arrival time of flight
|
---|
| 239 |
|
---|
[d7d2da3] | 240 | Int_t Charge; // electron charge
|
---|
| 241 |
|
---|
| 242 | Float_t EhadOverEem; // ratio of the hadronic versus electromagnetic energy deposited in the calorimeter
|
---|
| 243 |
|
---|
| 244 | TRef Particle; // reference to generated particle
|
---|
| 245 |
|
---|
| 246 | static CompBase *fgCompare; //!
|
---|
| 247 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 248 |
|
---|
| 249 | TLorentzVector P4();
|
---|
| 250 |
|
---|
| 251 | ClassDef(Electron, 2)
|
---|
| 252 | };
|
---|
| 253 |
|
---|
| 254 | //---------------------------------------------------------------------------
|
---|
| 255 |
|
---|
| 256 | class Muon: public SortableObject
|
---|
| 257 | {
|
---|
| 258 | public:
|
---|
| 259 |
|
---|
| 260 | Float_t PT; // muon transverse momentum
|
---|
| 261 | Float_t Eta; // muon pseudorapidity
|
---|
| 262 | Float_t Phi; // muon azimuthal angle
|
---|
| 263 |
|
---|
[da00c35] | 264 | Float_t T; //particle arrival time of flight
|
---|
| 265 |
|
---|
[d7d2da3] | 266 | Int_t Charge; // muon charge
|
---|
| 267 |
|
---|
| 268 | TRef Particle; // reference to generated particle
|
---|
| 269 |
|
---|
| 270 | static CompBase *fgCompare; //!
|
---|
| 271 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 272 |
|
---|
| 273 | TLorentzVector P4();
|
---|
| 274 |
|
---|
| 275 | ClassDef(Muon, 2)
|
---|
| 276 | };
|
---|
| 277 |
|
---|
| 278 | //---------------------------------------------------------------------------
|
---|
| 279 |
|
---|
| 280 | class Jet: public SortableObject
|
---|
| 281 | {
|
---|
| 282 | public:
|
---|
| 283 |
|
---|
| 284 | Float_t PT; // jet transverse momentum
|
---|
| 285 | Float_t Eta; // jet pseudorapidity
|
---|
| 286 | Float_t Phi; // jet azimuthal angle
|
---|
| 287 |
|
---|
[da00c35] | 288 | Float_t T; //particle arrival time of flight
|
---|
| 289 |
|
---|
[d7d2da3] | 290 | Float_t Mass; // jet invariant mass
|
---|
| 291 |
|
---|
| 292 | Float_t DeltaEta; // jet radius in pseudorapidity
|
---|
| 293 | Float_t DeltaPhi; // jet radius in azimuthal angle
|
---|
| 294 |
|
---|
[264bf40] | 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
|
---|
[d7d2da3] | 297 |
|
---|
| 298 | Int_t Charge; // tau charge
|
---|
| 299 |
|
---|
| 300 | Float_t EhadOverEem; // ratio of the hadronic versus electromagnetic energy deposited in the calorimeter
|
---|
| 301 |
|
---|
| 302 | TRefArray Constituents; // references to constituents
|
---|
| 303 | TRefArray Particles; // references to generated particles
|
---|
| 304 |
|
---|
| 305 | static CompBase *fgCompare; //!
|
---|
| 306 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 307 |
|
---|
| 308 | TLorentzVector P4();
|
---|
| 309 |
|
---|
[24d005f] | 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 |
|
---|
| 320 |
|
---|
| 321 |
|
---|
[d7d2da3] | 322 | ClassDef(Jet, 2)
|
---|
| 323 | };
|
---|
| 324 |
|
---|
| 325 | //---------------------------------------------------------------------------
|
---|
| 326 |
|
---|
[3b465ca] | 327 | class Track: public SortableObject
|
---|
[d7d2da3] | 328 | {
|
---|
[3b465ca] | 329 | public:
|
---|
[d7d2da3] | 330 | Int_t PID; // HEP ID number
|
---|
| 331 |
|
---|
| 332 | Int_t Charge; // track charge
|
---|
| 333 |
|
---|
| 334 | Float_t PT; // track transverse momentum
|
---|
| 335 |
|
---|
| 336 | Float_t Eta; // track pseudorapidity
|
---|
| 337 | Float_t Phi; // track azimuthal angle
|
---|
| 338 |
|
---|
| 339 | Float_t EtaOuter; // track pseudorapidity at the tracker edge
|
---|
| 340 | Float_t PhiOuter; // track azimuthal angle at the tracker edge
|
---|
| 341 |
|
---|
| 342 | Float_t X; // track vertex position (x component)
|
---|
| 343 | Float_t Y; // track vertex position (y component)
|
---|
| 344 | Float_t Z; // track vertex position (z component)
|
---|
[22dc7fd] | 345 | Float_t T; // track vertex position (z component)
|
---|
[d7d2da3] | 346 |
|
---|
| 347 | Float_t XOuter; // track position (x component) at the tracker edge
|
---|
| 348 | Float_t YOuter; // track position (y component) at the tracker edge
|
---|
| 349 | Float_t ZOuter; // track position (z component) at the tracker edge
|
---|
[22dc7fd] | 350 | Float_t TOuter; // track position (z component) at the tracker edge
|
---|
[d7d2da3] | 351 |
|
---|
| 352 | TRef Particle; // reference to generated particle
|
---|
| 353 |
|
---|
| 354 | static CompBase *fgCompare; //!
|
---|
| 355 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 356 |
|
---|
| 357 | TLorentzVector P4();
|
---|
| 358 |
|
---|
| 359 | ClassDef(Track, 1)
|
---|
| 360 | };
|
---|
| 361 |
|
---|
| 362 | //---------------------------------------------------------------------------
|
---|
| 363 |
|
---|
[3b465ca] | 364 | class Tower: public SortableObject
|
---|
[d7d2da3] | 365 | {
|
---|
| 366 | public:
|
---|
| 367 | Float_t ET; // calorimeter tower transverse energy
|
---|
| 368 | Float_t Eta; // calorimeter tower pseudorapidity
|
---|
| 369 | Float_t Phi; // calorimeter tower azimuthal angle
|
---|
| 370 |
|
---|
| 371 | Float_t E; // calorimeter tower energy
|
---|
| 372 |
|
---|
[da00c35] | 373 | Float_t T; //particle arrival time of flight
|
---|
| 374 |
|
---|
[d7d2da3] | 375 | Float_t Eem; // calorimeter tower electromagnetic energy
|
---|
| 376 | Float_t Ehad; // calorimeter tower hadronic energy
|
---|
| 377 |
|
---|
| 378 | Float_t Edges[4]; // calorimeter tower edges
|
---|
| 379 |
|
---|
| 380 | TRefArray Particles; // references to generated particles
|
---|
| 381 |
|
---|
| 382 | static CompBase *fgCompare; //!
|
---|
| 383 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 384 |
|
---|
| 385 | TLorentzVector P4();
|
---|
| 386 |
|
---|
| 387 | ClassDef(Tower, 1)
|
---|
| 388 | };
|
---|
| 389 |
|
---|
| 390 | //---------------------------------------------------------------------------
|
---|
| 391 |
|
---|
[3b465ca] | 392 | class Candidate: public SortableObject
|
---|
[d7d2da3] | 393 | {
|
---|
| 394 | friend class DelphesFactory;
|
---|
| 395 |
|
---|
| 396 | public:
|
---|
| 397 | Candidate();
|
---|
| 398 |
|
---|
| 399 | Int_t PID;
|
---|
| 400 |
|
---|
| 401 | Int_t Status;
|
---|
| 402 | Int_t M1, M2, D1, D2;
|
---|
| 403 |
|
---|
| 404 | Int_t Charge;
|
---|
| 405 |
|
---|
| 406 | Float_t Mass;
|
---|
[3b465ca] | 407 |
|
---|
[d7d2da3] | 408 | Int_t IsPU;
|
---|
| 409 | Int_t IsConstituent;
|
---|
[3b465ca] | 410 |
|
---|
[264bf40] | 411 | UInt_t BTag;
|
---|
| 412 | UInt_t TauTag;
|
---|
[d7d2da3] | 413 |
|
---|
| 414 | Float_t Eem;
|
---|
| 415 | Float_t Ehad;
|
---|
| 416 |
|
---|
| 417 | Float_t Edges[4];
|
---|
| 418 | Float_t DeltaEta;
|
---|
| 419 | Float_t DeltaPhi;
|
---|
| 420 |
|
---|
| 421 | TLorentzVector Momentum, Position, Area;
|
---|
| 422 |
|
---|
[da00c35] | 423 | // PileUpJetID variables
|
---|
| 424 |
|
---|
| 425 | Int_t NCharged;
|
---|
| 426 | Int_t NNeutrals;
|
---|
| 427 | Float_t Beta;
|
---|
| 428 | Float_t BetaStar;
|
---|
| 429 | Float_t MeanSqDeltaR;
|
---|
| 430 | Float_t PTD;
|
---|
| 431 | Float_t FracPt[5];
|
---|
| 432 |
|
---|
[d7d2da3] | 433 | static CompBase *fgCompare; //!
|
---|
| 434 | const CompBase *GetCompare() const { return fgCompare; }
|
---|
| 435 |
|
---|
| 436 | void AddCandidate(Candidate *object);
|
---|
| 437 | TObjArray *GetCandidates();
|
---|
| 438 |
|
---|
| 439 | Bool_t Overlaps(const Candidate *object) const;
|
---|
| 440 |
|
---|
| 441 | virtual void Copy(TObject &object) const;
|
---|
| 442 | virtual TObject *Clone(const char *newname = "") const;
|
---|
[3b465ca] | 443 | virtual void Clear(Option_t* option = "");
|
---|
[d7d2da3] | 444 |
|
---|
| 445 | private:
|
---|
| 446 | DelphesFactory *fFactory; //!
|
---|
| 447 | TObjArray *fArray; //!
|
---|
[3b465ca] | 448 |
|
---|
[d7d2da3] | 449 | void SetFactory(DelphesFactory *factory) { fFactory = factory; }
|
---|
| 450 |
|
---|
| 451 | ClassDef(Candidate, 1)
|
---|
| 452 | };
|
---|
| 453 |
|
---|
| 454 | #endif // DelphesClasses_h
|
---|
| 455 |
|
---|
| 456 |
|
---|