checkmate is hosted by Hepforge, IPPP Durham
FinalStateObject.h
Go to the documentation of this file.
1 #ifndef _FINALSTATEOBJECT
2 #define _FINALSTATEOBJECT
3 
4 #include <stdio.h>
5 #include <TROOT.h>
6 
8 
9 #include "ETMiss.h"
11 
17  public:
19 
22  FinalStateObject(Electron* e) : PT(e->PT), Eta(e->Eta), Phi(e->Phi), Charge(e->Charge), Type("electron"), fourvector(e->P4()) { };
23  FinalStateObject(Muon* m) : PT(m->PT), Eta(m->Eta), Phi(m->Phi), Charge(m->Charge), Type("muon"), fourvector(m->P4()) { };
24  FinalStateObject(Jet* j) : PT(j->PT), Eta(j->Eta), Phi(j->Phi), Charge(j->Charge), Type("jet"), fourvector(j->P4()) { };
25  FinalStateObject(ETMiss* etm) : PT(etm->PT), Eta(etm->Eta), Phi(etm->Phi), Charge(0), Type("etmiss"), fourvector(etm->P4()) { };
28 
29  Float_t PT;
30  Float_t Eta;
31  Float_t Phi;
32  Float_t Charge;
33  std::string Type;
34  inline TLorentzVector P4() { return fourvector;}
35  private:
36  TLorentzVector fourvector;
37 };
38 
39 #endif
FinalStateObject(ETMiss *etm)
Float_t Phi
Polar angle.
std::string Type
'electron', 'muon', 'jet' or 'etmiss'
Float_t Charge
Charge (0 for EtMiss)
FinalStateObject(Electron *e)
Constructor functions to cast object into general FinalStateObject.
Float_t Eta
Pseudorapidity.
~FinalStateObject()
Standard Destructor.
A class to parametrise missingET.
Definition: ETMiss.h:19
FinalStateObject(Muon *m)
Float_t PT
Transverse Momentum.
TLorentzVector P4()
returns a TLorentzVector of the full 4 momentum.
A class to combine objects of different types.