Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

TMarBody.h

Go to the documentation of this file.
00001 
00002 // Class TMarBody
00003 //
00004 // Author     : Matti Peez
00005 // Created    : 02/2002
00006 // Last update: $Date: 2005/06/08 11:39:56 $
00007 //          by: $Author: blist $
00008 // Comment: Definition of a reconstructed body with Pt(body) > Pt(min,body)
00009 //          - Pointing to the particle candidate
00010 //          - Type
00012 
00013 #ifndef __TMARBODY
00014 #define __TMARBODY
00015 
00016 // Define ID of body
00017 #define IDELE 1
00018 #define IDMU  2
00019 #define IDJET 3
00020 #define IDNP 4
00021 #define IDPHO 5
00022 #define IDHFS 6
00023 #define IDTRK 7
00024 #define IDTAU 8
00025 
00026 //--- ID for generated bodies
00027 #define IDGELE 11
00028 #define IDGMU  12
00029 #define IDGJET 13
00030 #define IDGNP  14
00031 #define IDGPHO 15
00032 #define IDGTAU 16
00033 
00034 // Define "fIndex" of Ptmiss 
00035 #define INDEXNP -2
00036 
00037 // Include OO libs
00038 
00039 #include <TObject.h>
00040 #include <TMath.h>
00041 #include <TLorentzVector.h>
00042 
00043 using namespace std;
00044 
00045 
00046 class TMarBody : public TObject
00047 {
00049 //     Base class for identified body
00051 public :
00052 
00053   // Standard constructor and destructor
00054   TMarBody();
00055   TMarBody(TMarBody *body);
00056   TMarBody(Int_t ID,Int_t indexID,Int_t index=-1);
00057   TMarBody(const Int_t& ID,const Int_t& indexID,const Float_t& E,const Float_t& Pt,const Float_t& Eta,const Float_t& Phi,const Int_t& index=-1);
00058 
00059  ~TMarBody();
00060 
00061 
00062 
00063  // Get type of object
00064  Int_t GetType(void) const;
00065 
00066  // Get index of object
00067  Int_t GetIndex(void) const;
00068 
00069  // Get index ID of object
00070  Int_t GetIndexID(void) const;
00071 
00072  // Get kinematics
00073  Bool_t GetEPtEtaPhi(Float_t &E,Float_t &Pt,Float_t &Eta,Float_t &Phi) const;
00074  Float_t GetE() const;
00075  Float_t GetPt() const;
00076  Float_t GetEta() const;
00077  Float_t GetTheta() const;
00078  Float_t GetPhi() const;
00079  Float_t GetP() const;
00080  Float_t GetPx() const;
00081  Float_t GetPy() const;
00082  Float_t GetPz() const;
00083  
00084  TLorentzVector GetFourVector();
00085 
00086  void SetE(const Float_t& E){fE=E;};
00087  void SetPt(const Float_t& Pt){fPt=Pt;};
00088  void SetEta(const Float_t& Eta){fEta=Eta;};
00089  void SetPhi(const Float_t& Phi){fPhi=Phi;};
00090 
00091 
00092  // Is selected ?
00093  Bool_t IsSel(void); 
00094 
00095  // Set kinematics
00096  void SetEPtEtaPhi(Float_t E,Float_t Pt,Float_t Eta,Float_t Phi);
00097 
00098  // Set selection bit to "selection"
00099  void SetSel(Bool_t selection);
00100 
00101  // bodies sorting == decreasing Pt ordering
00102  virtual Int_t Compare(const TObject* body); // cluster sorting
00103  Bool_t   IsEqual(const TMarBody* body); 
00104  virtual Bool_t IsSortable()const;  
00105  bool operator<(const TMarBody& other);
00106 
00107  Float_t EtaPhiDist(TMarBody *body);
00108 
00109 
00110  private:
00111  
00112  Int_t fIndex;      // Index in H1PartCand list corresponding to particle
00113  Int_t fIndexID;    // Index in H1PartID   list corresponding to particle
00114  Int_t fID;         // ID of particle
00115  Float_t fE;        // E of particle
00116  Float_t fPt;       // Pt of particle
00117  Float_t fEta;      // Eta of particle
00118  Float_t fPhi;      // Phi of particle
00119  Bool_t fSelected;  // Isolated body 
00120 
00121  ClassDef(TMarBody,1) // Preselected Body 
00122 
00123 };
00124 
00125 #endif
00126 

Generated on Thu Jul 28 11:48:52 2005 for SFHMarana by doxygen 1.3.2