00001 #ifndef UE_ANALYSIS_H_ 00002 #define UE_ANALYSIS_H_ 00003 00004 #include "baseAnalysis.h" 00005 00006 // forward declarations 00007 namespace HepMC { 00008 class GenEvent; 00009 } 00010 class TH1D; 00011 class TFile; 00012 00013 /** 00014 @class UEAnalysis.h 00015 @brief Class to study underlying events. Currently the UE is studied for 00016 events with at least one jet, e.g. QCD 2->2, pp->W+jet, pp->Z+jet. 00017 Extension to DrellYan events will follow. 00018 Examples to generate e.g events are given in the specific generator 00019 directory, e.g. examples/pythia6 ; the histogramm output is stored 00020 in the UE folder of the root file. 00021 00022 @author Sebastian Johnert, Judith Katzy, Zhonghua Qin Dec 2008 */ 00023 00024 class UEAnalysis: public baseAnalysis 00025 { 00026 public: 00027 UEAnalysis(); 00028 virtual ~UEAnalysis(); 00029 00030 virtual int Init(double tr_max_eta, double tr_min_pt); 00031 virtual int Process(HepMC::GenEvent* hepmcevt); 00032 virtual int Finalize(); 00033 virtual int Finalize(TFile* output); 00034 /** averagedHistograms: function to calculate averaged histograms for the UE analysis*/ 00035 virtual std::vector<TH1D*> averagedHistograms(); 00036 00037 private: 00038 TH1D *m_NchargedToward[26]; 00039 TH1D *m_NchargedTransverse[26]; 00040 TH1D *m_NchargedAway[26]; 00041 00042 TH1D *m_NchargedMeanToward; 00043 TH1D *m_NchargedMeanTransverse; 00044 TH1D *m_NchargedMeanAway; 00045 00046 TH1D *m_PtsumToward[26]; 00047 TH1D *m_PtsumTransverse[26]; 00048 TH1D *m_PtsumAway[26]; 00049 00050 TH1D *m_PtsumMeanToward; 00051 TH1D *m_PtsumMeanTransverse; 00052 TH1D *m_PtsumMeanAway; 00053 00054 TH1D *m_Njet; 00055 TH1D *m_Ptjet; 00056 TH1D *m_Ptjet_log; 00057 TH1D *m_Ptleadingjet; 00058 TH1D *m_Ptleadingjet_log; 00059 00060 TH1D *m_charged_particle_pt; 00061 00062 /** definition for the variable bin size for the <Ncharged> vs pT calculation*/ 00063 int m_nbin_pT; 00064 //size of m_nbinRange has to be nbin + 1 due to 0 at the beginning 00065 double m_nbinRange_pT[26]; 00066 }; 00067 00068 #endif // UE_ANALYSIS_H_ 00069