00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef ATLFAST_STANDARDHISTOGRAMMAKER_H
00024 #define ATLFAST_STANDARDHISTOGRAMMAKER_H
00025
00026
00027 #include <vector>
00028 #include <string>
00029
00030
00031 #include "GaudiKernel/ISvcLocator.h"
00032 #include "GaudiKernel/Algorithm.h"
00033 #include "GaudiKernel/MsgStream.h"
00034 #include "GaudiKernel/DataObject.h"
00035
00036 class IHistogram1D;
00037
00038
00039 #include "CLHEP/Vector/LorentzVector.h"
00040 #include "HepMC/GenEvent.h"
00041 #include "HepMC/GenParticle.h"
00042
00043
00044 #include "AtlfastEvent/ReconstructedParticle.h"
00045 #include "AtlfastUtils/TesIO.h"
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059 namespace Atlfast {
00060 using std::string;
00064 class StandardHistogramMaker : public Algorithm
00065 {
00066
00067 public:
00068
00069
00070
00071
00072
00073
00074
00075
00076 StandardHistogramMaker( const std::string& name, ISvcLocator* pSvcLocator ) ;
00077 ~StandardHistogramMaker();
00078
00079
00080
00081
00082
00083
00084 StatusCode initialize() ;
00085 StatusCode execute() ;
00086 StatusCode finalize() ;
00087
00088
00089
00090 private:
00091
00092
00093
00094
00095
00096
00097 void bookElectronHistograms();
00098 void bookPhotonHistograms();
00099 void bookIsolatedElectronHistograms();
00100 void bookIsolatedPhotonHistograms();
00101 void bookCellHistograms();
00102 void bookClusterHistograms();
00103
00104 void fillElectronHistograms() ;
00105 void fillPhotonHistograms() ;
00106 void fillIsolatedElectronHistograms();
00107 void fillIsolatedPhotonHistograms();
00108 void fillCellHistograms();
00109 void fillClusterHistograms();
00110
00111 TesIO* m_tesIO;
00112
00113
00114
00115
00116
00117
00118 std::string m_electronLocation ;
00119 std::string m_isolatedElectronLocation;
00120 std::string m_photonLocation ;
00121 std::string m_isolatedPhotonLocation;
00122 std::string m_cellLocation;
00123 std::string m_clusterLocation;
00124 std::string m_mcTruthLocation;
00125
00126
00127
00128
00129
00130
00131 bool m_doElectronHistograms ;
00132 bool m_doIsolatedElectronHistograms ;
00133 bool m_doPhotonHistograms ;
00134 bool m_doIsolatedPhotonHistograms ;
00135 bool m_doCellHistograms ;
00136 bool m_doClusterHistograms ;
00137
00138
00139
00140
00141
00142
00143 IHistogram1D* m_h_electronMultiplicity;
00144 IHistogram1D* m_h_electronPt;
00145
00146
00147 IHistogram1D* m_h_isolatedElectronMultiplicity;
00148 IHistogram1D* m_h_isolatedElectronPt;
00149
00150
00151 IHistogram1D* m_h_photonMultiplicity;
00152 IHistogram1D* m_h_photonPt;
00153
00154
00155 IHistogram1D* m_h_isolatedPhotonMultiplicity;
00156 IHistogram1D* m_h_isolatedPhotonPt;
00157
00158
00159 IHistogram1D* m_h_cellMultiplicity;
00160 IHistogram1D* m_h_cellPt;
00161
00162
00163 IHistogram1D* m_h_clusterMultiplicity;
00164 IHistogram1D* m_h_clusterPt;
00165
00166
00167
00168 int m_histStart;
00169
00170 int m_nHist;
00171 };
00172
00173
00174 }
00175
00176 #endif
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187