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 "AtlfastCode/IKinematic.h"
00072 #include "AtlfastCode/AssociationManager.h"
00073
00074
00075
00076
00077 static const CLID CLID_ATLFAST_RECONSTRUCTED_PARTICLE=2305 ;
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088 namespace Atlfast {
00100 class ReconstructedParticle:
00101 public IKinematic,
00102 public ContainedObject,
00103 public AssociationManager
00104 {
00105
00106 public:
00107
00108
00109
00110
00111
00112 ReconstructedParticle(const int pdg_id,
00113 const HepLorentzVector& vec,
00114 const HepMC::GenParticle* progenitor ) :
00115 IKinematic(),
00116 ContainedObject(),
00117 AssociationManager(),
00118 m_pdg_id(pdg_id),
00119 m_momentum(vec),
00120 m_truth(progenitor) {}
00121
00122
00123 ReconstructedParticle( const ReconstructedParticle& src ) :
00124 IKinematic(),
00125 ContainedObject(),
00126 AssociationManager( src ),
00127 m_pdg_id(src.m_pdg_id),
00128 m_momentum(src.m_momentum),
00129 m_truth(src.m_truth)
00130 { }
00131
00132 ReconstructedParticle( const ReconstructedParticle* src ) :
00133 IKinematic(),
00134 ContainedObject(),
00135 AssociationManager( *src ),
00136 m_pdg_id(src->m_pdg_id),
00137 m_momentum(src->m_momentum),
00138 m_truth(src->m_truth) {}
00139
00140
00141 ReconstructedParticle() :
00142 IKinematic(),
00143 ContainedObject(),
00144 AssociationManager(),
00145 m_pdg_id(0),
00146 m_momentum(HepLorentzVector(0.0,0.0,0.0,0.0)),
00147 m_truth(0) {}
00148
00149
00150 virtual ~ReconstructedParticle() {}
00151
00152
00153
00154
00155
00156
00157 virtual HepLorentzVector momentum() const {return m_momentum;}
00158 virtual double eta() const { return m_momentum.pseudoRapidity() ;}
00159 virtual double phi() const { return m_momentum.phi() ; }
00160 virtual double pT() const { return m_momentum.perp() ;}
00161 virtual double eT() const {
00162 return m_momentum.e()*m_momentum.perp()/m_momentum.rho() ;}
00163 virtual double mT() const { return m_momentum.mt() ;}
00164
00165
00166
00167
00168
00172 int pdg_id() const { return m_pdg_id ; }
00173
00177 const HepMC::GenParticle* truth() const { return m_truth ; }
00178
00179
00180
00181 static const CLID& classID()
00182 { return CLID_ATLFAST_RECONSTRUCTED_PARTICLE; }
00183 virtual const CLID& clID() const
00184 { return CLID_ATLFAST_RECONSTRUCTED_PARTICLE; }
00185
00186
00187 virtual StreamBuffer& serialize(StreamBuffer& s);
00188
00189
00190 virtual StreamBuffer& serialize(StreamBuffer& s) const;
00191
00192 private:
00193
00194
00195 int m_pdg_id ;
00196
00197
00198 HepLorentzVector m_momentum ;
00199
00200
00201
00202 const HepMC::GenParticle* m_truth ;
00203
00204 };
00205
00206
00207 }
00208 #endif
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219