1 #ifndef SimDataFormats_CaloParticle_h 2 #define SimDataFormats_CaloParticle_h 97 return p4().BoostToCM();
172 return p4().Rapidity();
200 hits_.emplace_back(hit);
206 std::vector<std::pair<uint32_t,float> >
result;
207 for(
size_t i = 0;
i <
hits_.size(); ++
i) {
237 #endif // SimDataFormats_CaloParticle_H float pz() const
z coordinate of momentum vector. Note this is taken from the first SimTrack only. ...
int Charge
electric charge type
std::vector< uint32_t > hits_
float simEnergy() const
returns the accumulated sim energy in the cluster
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
SimClusterRefVector::iterator sc_iterator
void addG4Track(const SimTrack &t)
void addRecHitAndFraction(uint32_t hit, float fraction)
add rechit with fraction
EncodedEventId eventId() const
Signal source, crossing number.
float charge() const
Electric charge. Note this is taken from the first SimTrack only.
math::XYZTLorentzVectorD LorentzVector
Lorentz vector.
float p() const
Magnitude of momentum vector. Note this is taken from the first SimTrack only.
reco::GenParticleRefVector genParticles_
int status() const
Status word.
std::vector< float > fractions_
math::XYZVectorD Vector
point in the space
int numberOfSimHits() const
Gives the total number of SimHits, in the cluster.
const std::vector< SimTrack > & g4Tracks() const
float eta() const
Momentum pseudorapidity. Note this is taken from the simtrack before the calorimeter.
float massSqr() const
Mass squared. Note this is taken from the first SimTrack only.
const_iterator end() const
Termination of iteration.
bool empty() const
Is the RefVector empty.
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
SimClusterRefVector simClusters_
std::vector< SimTrack >::const_iterator g4t_iterator
genp_iterator genParticle_begin() const
iterators
const_iterator begin() const
Initialize an iterator over the RefVector.
math::XYZTLorentzVectorF theMomentum_
int numberOfRecHits() const
Gives the total number of SimHits, in the cluster.
uint64_t particleId() const
math::XYZPointD Point
point in the space
reco::GenParticleRefVector::iterator genp_iterator
reference to reco::GenParticle
sc_iterator simCluster_end() const
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
const math::XYZTLorentzVectorF & p4() const
Four-momentum Lorentz vector. Note this is taken from the first SimTrack only.
static const unsigned int longLivedTag
long lived flag
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
sc_iterator simCluster_begin() const
const reco::GenParticleRefVector & genParticles() const
const SimClusterRefVector & simClusters() const
void addGenParticle(const reco::GenParticleRef &ref)
void addSimHit(const PCaloHit &hit)
add simhit's energy to cluster
float energy() const
Energy. Note this is taken from the first SimTrack only.
float theta() const
Momentum polar angle. Note this is taken from the first SimTrack only.
void addSimCluster(const SimClusterRef &ref)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
math::XYZVectorF boostToCM() const
Vector to boost to the particle centre of mass frame.
std::vector< std::pair< uint32_t, float > > hits_and_fractions() const
Returns list of rechit IDs and fractions for this CaloParticle.
float mt() const
Transverse mass. Note this is taken from the first SimTrack only.
float y() const
Same as rapidity().
math::XYZVectorF momentum() const
spatial momentum vector
float px() const
x coordinate of momentum vector. Note this is taken from the first SimTrack only. ...
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double > > XYZPointD
point in space with cartesian internal representation
friend std::ostream & operator<<(std::ostream &s, CaloParticle const &tp)
unsigned long long uint64_t
void clear()
Clear the vector.
float pt() const
Transverse momentum. Note this is taken from the first SimTrack only.
int pdgId() const
PDG ID.
std::vector< SimTrack > g4Tracks_
references to G4 and reco::GenParticle tracks
float phi() const
Momentum azimuthal angle. Note this is taken from the first SimTrack only.
float rapidity() const
Rapidity. Note this is taken from the simtrack before the calorimeter.
g4t_iterator g4Track_end() const
bool longLived() const
is long lived?
float mtSqr() const
Transverse mass squared. Note this is taken from the first SimTrack only.
float mass() const
Mass. Note this is taken from the first SimTrack only.
g4t_iterator g4Track_begin() const
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
int threeCharge() const
Gives charge in unit of quark charge (should be 3 times "charge()")
float et() const
Transverse energy. Note this is taken from the first SimTrack only.
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< float > > XYZTLorentzVectorF
Lorentz vector with cylindrical internal representation using pseudorapidity.
float py() const
y coordinate of momentum vector. Note this is taken from the first SimTrack only. ...
genp_iterator genParticle_end() const
Power< A, B >::type pow(const A &a, const B &b)