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 "AtlfastCode/ReconstructedParticle.h"
00045 #include "AtlfastCode/TesIO.h"
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055 #define DEFAULT_electronLocation "/Event/Electrons"
00056 #define DEFAULT_isolatedElectronLocation "/Event/IsolatedElectrons"
00057 #define DEFAULT_photonLocation "/Event/Photons"
00058 #define DEFAULT_isolatedPhotonLocation "/Event/IsolatedPhotons"
00059 #define DEFAULT_cellLocation "/Event/AtlfastCells"
00060 #define DEFAULT_clusterLocation "/Event/Clusters"
00061 #define DEFAULT_mcTruthLocation "/Event/McEventCollection"
00062
00063
00064 #define DEFAULT_doElectronHistograms true
00065 #define DEFAULT_doIsolatedElectronHistograms true
00066 #define DEFAULT_doPhotonHistograms true
00067 #define DEFAULT_doIsolatedPhotonHistograms true
00068 #define DEFAULT_doCellHistograms true
00069 #define DEFAULT_doClusterHistograms true
00070
00071
00072 #define DEFAULT_histStart 0
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087 namespace Atlfast {
00091 class StandardHistogramMaker : public Algorithm
00092 {
00093
00094 public:
00095
00096
00097
00098
00099
00100
00101
00102
00103 StandardHistogramMaker( const std::string& name, ISvcLocator* pSvcLocator ) ;
00104 ~StandardHistogramMaker();
00105
00106
00107
00108
00109
00110
00111 StatusCode initialize() ;
00112 StatusCode execute() ;
00113 StatusCode finalize() ;
00114
00115
00116
00117 private:
00118
00119
00120
00121
00122
00123
00124 void bookElectronHistograms();
00125 void bookPhotonHistograms();
00126 void bookIsolatedElectronHistograms();
00127 void bookIsolatedPhotonHistograms();
00128 void bookCellHistograms();
00129 void bookClusterHistograms();
00130
00131 void fillElectronHistograms() ;
00132 void fillPhotonHistograms() ;
00133 void fillIsolatedElectronHistograms();
00134 void fillIsolatedPhotonHistograms();
00135 void fillCellHistograms();
00136 void fillClusterHistograms();
00137
00138 TesIO* m_tesIO;
00139
00140
00141
00142
00143
00144
00145 std::string m_electronLocation ;
00146 std::string m_isolatedElectronLocation;
00147 std::string m_photonLocation ;
00148 std::string m_isolatedPhotonLocation;
00149 std::string m_cellLocation;
00150 std::string m_clusterLocation;
00151 std::string m_mcTruthLocation;
00152
00153
00154
00155
00156
00157
00158 bool m_doElectronHistograms ;
00159 bool m_doIsolatedElectronHistograms ;
00160 bool m_doPhotonHistograms ;
00161 bool m_doIsolatedPhotonHistograms ;
00162 bool m_doCellHistograms ;
00163 bool m_doClusterHistograms ;
00164
00165
00166
00167
00168
00169
00170 IHistogram1D* m_h_electronMultiplicity;
00171 IHistogram1D* m_h_electronPt;
00172
00173
00174 IHistogram1D* m_h_isolatedElectronMultiplicity;
00175 IHistogram1D* m_h_isolatedElectronPt;
00176
00177
00178 IHistogram1D* m_h_photonMultiplicity;
00179 IHistogram1D* m_h_photonPt;
00180
00181
00182 IHistogram1D* m_h_isolatedPhotonMultiplicity;
00183 IHistogram1D* m_h_isolatedPhotonPt;
00184
00185
00186 IHistogram1D* m_h_cellMultiplicity;
00187 IHistogram1D* m_h_cellPt;
00188
00189
00190 IHistogram1D* m_h_clusterMultiplicity;
00191 IHistogram1D* m_h_clusterPt;
00192
00193
00194
00195 int m_histStart;
00196
00197 int m_nHist;
00198
00199
00200 };
00201
00202
00203 }
00204
00205 #endif
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216