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
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 #ifndef ATLFAST_RECONSTRUCTEDPARTICLE_H
00058 #define ATLFAST_RECONSTRUCTEDPARTICLE_H
00059
00060
00061
00062
00063 #include "GaudiKernel/ContainedObject.h"
00064 #include "GaudiKernel/ObjectVector.h"
00065
00066
00067 #include "CLHEP/Vector/LorentzVector.h"
00068 #include "HepMC/GenParticle.h"
00069
00070
00071 #include "AtlfastEvent/IKinematic.h"
00072 #include "AtlfastEvent/AssociationManager.h"
00073
00074
00075
00076 static const CLID CLID_ATLFAST_RECONSTRUCTED_PARTICLE=2305 ;
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087 namespace Atlfast {
00099 class ReconstructedParticle:
00100 public IKinematic,
00101 public ContainedObject,
00102 public AssociationManager
00103 {
00104
00105 public:
00106
00107
00108
00109
00110
00111 ReconstructedParticle(const int pdg_id,
00112 const HepLorentzVector& vec,
00113 const HepMC::GenParticle* progenitor ) :
00114 IKinematic(),
00115 ContainedObject(),
00116 AssociationManager(),
00117 m_pdg_id(pdg_id),
00118 m_momentum(vec),
00119 m_truth(progenitor) {}
00120
00121
00122 ReconstructedParticle( const ReconstructedParticle& src ) :
00123 IKinematic(),
00124 ContainedObject(),
00125 AssociationManager( src ),
00126 m_pdg_id(src.m_pdg_id),
00127 m_momentum(src.m_momentum),
00128 m_truth(src.m_truth)
00129 { }
00130
00131 ReconstructedParticle( const ReconstructedParticle* src ) :
00132 IKinematic(),
00133 ContainedObject(),
00134 AssociationManager( *src ),
00135 m_pdg_id(src->m_pdg_id),
00136 m_momentum(src->m_momentum),
00137 m_truth(src->m_truth) {}
00138
00139
00140 ReconstructedParticle() :
00141 IKinematic(),
00142 ContainedObject(),
00143 AssociationManager(),
00144 m_pdg_id(0),
00145 m_momentum(HepLorentzVector(0.0,0.0,0.0,0.0)),
00146 m_truth(0) {}
00147
00148
00149 virtual ~ReconstructedParticle() {}
00150
00151
00152
00153
00154
00155
00156 virtual HepLorentzVector momentum() const {return m_momentum;}
00157 virtual double eta() const { return m_momentum.pseudoRapidity() ;}
00158 virtual double phi() const { return m_momentum.phi() ; }
00159 virtual double pT() const { return m_momentum.perp() ;}
00160 virtual double eT() const {
00161 return m_momentum.e()*m_momentum.perp()/m_momentum.rho() ;}
00162 virtual double mT() const { return m_momentum.mt() ;}
00163
00164
00165
00166
00167
00171 int pdg_id() const { return m_pdg_id ; }
00172
00176 const HepMC::GenParticle* truth() const { return m_truth ; }
00177
00178
00179
00180 static const CLID& classID()
00181 { return CLID_ATLFAST_RECONSTRUCTED_PARTICLE; }
00182 virtual const CLID& clID() const
00183 { return CLID_ATLFAST_RECONSTRUCTED_PARTICLE; }
00184
00185 private:
00186
00187
00188 int m_pdg_id ;
00189
00190
00191 HepLorentzVector m_momentum ;
00192
00193
00194
00195 const HepMC::GenParticle* m_truth ;
00196
00197 };
00198
00199
00200 }
00201 #endif
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212