00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef ATLFAST_RECONSTRUCTEDPARTICLEDUMPER_H
00023 #define ATLFAST_RECONSTRUCTEDPARTICLEDUMPER_H
00024
00025
00026 #include <vector>
00027 #include <string>
00028
00029
00030 #include "GaudiKernel/ISvcLocator.h"
00031 #include "GaudiKernel/IAlgorithm.h"
00032 #include "GaudiKernel/Algorithm.h"
00033 #include "GaudiKernel/MsgStream.h"
00034 #include "GaudiKernel/DataObject.h"
00035
00036
00037 #include "CLHEP/Vector/LorentzVector.h"
00038
00039
00040 #include "AtlfastCode/ReconstructedParticle.h"
00041 #include "AtlfastCode/TesIO.h"
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 #define DEFAULT_inputLocation "/Event/Atlfast/ReconstructedParticle"
00052
00053 #define DEFAULT_writePDG true
00054 #define DEFAULT_writeFourVector true
00055 #define DEFAULT_writeEta true
00056 #define DEFAULT_writePhi true
00057 #define DEFAULT_writePt true
00058 #define DEFAULT_writeEt false
00059 #define DEFAULT_writeMt false
00060 #define DEFAULT_writeTruth true
00061
00062
00063 namespace Atlfast {
00068 class ReconstructedParticleDumper : private virtual Algorithm,
00069 public virtual IAlgorithm
00070 {
00071
00072 public:
00073
00074
00075
00076
00077
00078
00079
00080
00081 ReconstructedParticleDumper( const std::string& name, ISvcLocator* pSvcLocator ) ;
00082 virtual ~ReconstructedParticleDumper();
00083
00084
00085
00086
00087
00088
00089 virtual StatusCode initialize() ;
00090 virtual StatusCode execute() ;
00091 virtual StatusCode finalize() ;
00092
00093
00094
00095 private:
00096
00097
00098
00099
00100
00101
00102 TesIO* m_tesIO;
00103
00104
00105
00106
00107
00108 bool m_writePDG;
00109 bool m_writeFourVector;
00110 bool m_writeEta;
00111 bool m_writePhi;
00112 bool m_writePt;
00113 bool m_writeEt;
00114 bool m_writeMt;
00115 bool m_writeTruth;
00116
00117
00118
00119
00120
00121
00122
00123 std::string m_inputLocation ;
00124
00125
00126
00127
00128
00129
00130
00131 };
00132
00133
00134 }
00135
00136 #endif
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147