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_RECONSTRUCTEDPARTICLEHISTOGRAMMAKER_H
00024 #define ATLFAST_RECONSTRUCTEDPARTICLEHISTOGRAMMAKER_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 namespace HepMC_helper{
00048 class IMCselector;
00049 }
00050 namespace Atlfast {
00051 using std::string;
00055 class ReconstructedParticleHistogramMaker : public Algorithm{
00056
00057 public:
00058
00059
00060
00061
00062
00063
00064
00065
00066 ReconstructedParticleHistogramMaker( const std::string& name, ISvcLocator* pSvcLocator ) ;
00067 ~ReconstructedParticleHistogramMaker();
00068
00069
00070
00071
00072
00073
00074 StatusCode initialize() ;
00075 StatusCode execute() ;
00076 StatusCode finalize() ;
00077
00078
00079
00080 private:
00081 TesIO* m_tesIO;
00082
00083 std::string m_mcLocation;
00084
00085
00086
00087
00088 void book(
00089 std::vector<IHistogram1D*> & start,
00090 const std::string title,
00091 const int nbins,
00092 const double xmin,
00093 const double xmax,
00094 const double xminDiff,
00095 const double xmaxDiff
00096 );
00097
00098 void fill(
00099 std::vector<IHistogram1D*> & start,
00100 const double rec,
00101 const double tru
00102 );
00103
00104
00105
00106
00107
00108 std::string m_inputLocation ;
00109 std::string m_mcTruthLocation;
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125 std::vector<IHistogram1D*> m_h_multiplicity ;
00126
00127 std::vector<IHistogram1D*> m_h_energy ;
00128
00129 std::vector<IHistogram1D*> m_h_pt ;
00130
00131 std::vector<IHistogram1D*> m_h_eta ;
00132
00133 std::vector<IHistogram1D*> m_h_phi ;
00134
00135 std::vector<IHistogram1D*> m_h_theta ;
00136
00137
00138
00139
00140 int m_histStart;
00141
00142 int m_nHist;
00143
00144
00145 int m_particleType ;
00146
00147
00148 std::string m_histTitle ;
00149
00150
00151
00152
00153
00154 HepMC_helper::IMCselector* m_ncutter ;
00155 };
00156
00157 }
00158
00159 #endif