MyAnalysisExample/MyAnalysisExample/MyAnalysisExample.h

00001 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00002 // 09.11.2006, AUTHOR: OLIVER KORTNER
00003 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00004 
00005 #ifndef MyAnalysisExampleH
00006 #define MyAnalysisExampleH
00007 
00008 //:::::::::::::::::::::::::::::
00009 //:: CLASS MyAnalysisExample ::
00010 //:::::::::::::::::::::::::::::
00011 
00020 
00021 //::::::::::::::::::
00022 //:: HEADER FILES ::
00023 //::::::::::::::::::
00024 
00025 // ROOT //
00026 #include "TFile.h"
00027 #include "TH1.h"
00028 #include "TH2.h"
00029 #include "TNtuple.h"
00030 
00031 // HiggsAnalysis //
00032 #include "NtupleReader/MyTools.h"
00033 
00034 // analysis base class //
00035 #include "NtupleReader/MyAnalysis.h"
00036 
00037 
00038 class MyAnalysisExample : public MyAnalysis {
00039 
00040 public:
00041 // Constructors //
00042         MyAnalysisExample(void) {
00043                 init();
00044                 }
00046 
00047         ~MyAnalysisExample(void) {
00048                 destruct();
00049                 }
00051 
00052 // Methods //
00053         void initialize(void);
00058         void analyse_event(const MyEvent & event);
00060         void end_of_analysis(void);
00063         TString filename;  // name of ROOT file
00066 
00067 private:
00068 // ROOT file and histograms //
00069         TFile *m_tfile; // ROOT file
00070         TH1F *m_nb_electrons; // histogram with the number of reconstructed
00071                               // electrons per event
00072         TH1F *m_e_energy; // electron energy distribution
00073         TH1F *m_e_pt; // electron pt distribution
00074         TH1F *m_nb_muons; // histogram with the number of reconstructed muons 
00075                           // per event
00076         TH1F *m_nb_jets; // histogram with the number of reconstructed jets per
00077                          // event
00078 
00079     TH1F *h_nb_matchedjets, *h_nb_fakedjets;
00080 
00081     TH1F *m_missinget_x;
00082 
00083     MyTools m_tools;
00084     
00085     std::vector<MyParticle*>
00086     select_jets( std::vector<MyParticle*> jet_vector);
00087    
00088 // methods //
00089         void init(void); // initialization routine
00090         void destruct(void); // destruction routine
00091 
00092 };
00093 
00094 #endif

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