00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 #ifndef ATLFAST_DEFAULTRECONTRUCTEDPARTICLEMAKER_H
00044 #define ATLFAST_DEFAULTRECONTRUCTEDPARTICLEMAKER_H
00045
00046
00047
00048
00049
00050 #define DEFAULT_particleType 11
00051 #define DEFAULT_mcPtMin 0.0
00052 #define DEFAULT_mcEtaMax 100.0
00053 #define DEFAULT_PtMin 5.0
00054 #define DEFAULT_EtaMax 2.5
00055 #define DEFAULT_doSmearing true
00056 #define DEFAULT_MC_eventLocation "/Event/McEventCollection"
00057 #define DEFAULT_outputLocation "/Event/AtlfastReconstructedParticle"
00058 #define DEFAULT_muSmearKey 1
00059
00060
00061
00062
00063 #include <vector>
00064 #include <string>
00065
00066
00067 #include "GaudiKernel/ISvcLocator.h"
00068 #include "GaudiKernel/IAlgorithm.h"
00069 #include "GaudiKernel/Algorithm.h"
00070 #include "GaudiKernel/MsgStream.h"
00071 #include "GaudiKernel/DataObject.h"
00072
00073
00074 #include "CLHEP/Vector/LorentzVector.h"
00075 #include "HepMC/GenEvent.h"
00076 #include "HepMC/GenParticle.h"
00077
00078
00079 #include "AtlfastCode/ReconstructedParticle.h"
00080 #include "AtlfastCode/ReconstructedParticleCollection.h"
00081 #include "AtlfastCode/ISmearer.h"
00082 #include "AtlfastCode/TesIO.h"
00083
00084
00085 namespace HepMC_helper{
00086 class IMCselector;
00087 }
00088
00089 namespace Atlfast {
00090
00100 class DefaultReconstructedParticleMaker :
00101 public virtual Algorithm
00102 {
00103
00104 public:
00105
00106
00107
00108
00110 DefaultReconstructedParticleMaker(
00111 const std::string& name,
00112 ISvcLocator* pSvcLocator
00113 );
00115 virtual ~DefaultReconstructedParticleMaker();
00116
00117
00118
00119
00120
00122 virtual StatusCode initialize() ;
00124 virtual StatusCode execute() ;
00126 virtual StatusCode finalize() ;
00127
00128
00129 private:
00130
00131
00132
00133
00134
00135 typedef std::vector<HepMC::GenParticle*> t_MC_particleCollection ;
00136 typedef std::vector<HepMC::GenParticle*>::iterator t_MC_particleIterator ;
00137
00138
00139
00140
00141
00142
00143
00145 int m_particleType;
00147 double m_mcPtMin ;
00149 double m_mcEtaMax ;
00150
00151
00153 double m_PtMin;
00155 double m_EtaMax;
00156
00158 bool m_doSmearing;
00159
00160
00162 std::string m_MC_eventLocation ;
00164 std::string m_outputLocation ;
00165
00166
00168 int m_muSmearKey;
00169
00170
00171
00172
00175 HepMC_helper::IMCselector* m_ncutter ;
00176
00177
00178
00179
00180
00181
00186 ISmearer* m_smearer;
00187
00191 ReconstructedParticle * lnkReconstructedParticle;
00192
00193
00194
00196
00197
00198 TesIO* m_tesIO;
00199
00201 void getSmearer(int lumi, int seed, MsgStream& log );
00203 virtual ReconstructedParticle* create( MsgStream&, const HepMC::GenParticle* );
00205 virtual bool isAcceptable( MsgStream&, const ReconstructedParticle* );
00206
00207 };
00208
00209
00210 }
00211
00212 #endif
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224