NtupleReader/NtupleReader/MyParticlePair.h

00001 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00002 // 10.12.2006, AUTHOR: STEFFEN KAISER
00003 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00004 
00005 #ifndef MyParticlePairH
00006 #define MyParticlePairH
00007 
00008 //:::::::::::::::::::::
00009 //:: CLASS MyParticlePair ::
00010 //:::::::::::::::::::::
00011 
00020 
00021 //::::::::::::::::::
00022 //:: HEADER FILES ::
00023 //::::::::::::::::::
00024 
00025 // standard C++ //
00026 #include <iostream>
00027 #include <string>
00028 #include <vector>
00029 
00030 // ROOT //
00031 #include "TLorentzVector.h"
00032 
00033 // MyAnalysis //
00034 #include "MyParticle.h"
00035 
00036 class MyParticlePair {
00037 
00038 public:
00039 // Constructors //
00040     MyParticlePair(void) {
00041     }
00043     MyParticlePair(MyParticle* particle1,
00044                    MyParticle* particle2){
00045         init(particle1, particle2);
00046     }
00050 
00051 
00052 // Methods //
00053 // get methods //
00054     inline MyParticle* get_particle1(void) const;
00055 
00056     inline MyParticle* get_particle2(void) const;
00057 
00058     inline TLorentzVector tlv(void) const;
00060 
00061     inline double EtaProd(void) const;
00062     inline double DeltaPhi(void) const;
00063     inline double AbsDeltaPhi(void) const;
00064     inline double DeltaR(void) const;
00065     inline double M(void) const;
00066     inline double DeltaEta(void) const;
00067     inline double AbsDeltaEta(void) const;
00068     inline double DeltaPt(void) const;
00069     inline double AbsDeltaPt(void) const;
00070 
00071     inline TString get_lepton_flavors(void);
00073 
00074     inline void Print(std::string option="");
00076 
00077 // set methods //
00078     // nothing yet
00079 
00080 private:
00081 // particle data //
00082     MyParticle* m_particle1;
00083     MyParticle* m_particle2;
00084 
00085 
00086 // private methods //
00087     inline void init(MyParticle* particle1,
00088                      MyParticle* particle2);
00089     // initialization method;
00090     // particle1 = first particle;
00091     // particle2 = second particle;
00092 
00093     inline TString pdgIdToString(int pdgId);
00095 };
00096 
00097 //::::::::::::::::::::::::::::::::::::::
00098 //:: IMPLEMENTATION OF INLINE METHODS ::
00099 //::::::::::::::::::::::::::::::::::::::
00100 
00101 #include "MyParticlePair.ixx"
00102 
00103 #endif

Generated on Tue Oct 21 11:50:45 2008 for NtupleAnalysis by  doxygen 1.5.1