#include <MtdCaloParticle.h>
Public Types | |
typedef MtdSimClusterRefVector::iterator | mtdsc_iterator |
Public Types inherited from CaloParticle | |
typedef int | Charge |
electric charge type More... | |
typedef std::vector< SimTrack >::const_iterator | g4t_iterator |
typedef reco::GenParticleRefVector::iterator | genp_iterator |
reference to reco::GenParticle More... | |
typedef math::XYZTLorentzVectorD | LorentzVector |
Lorentz vector. More... | |
typedef math::XYZPointD | Point |
point in the space More... | |
typedef math::PtEtaPhiMLorentzVector | PolarLorentzVector |
Lorentz vector. More... | |
typedef SimClusterRefVector::iterator | sc_iterator |
typedef math::XYZVectorD | Vector |
point in the space More... | |
Public Member Functions | |
void | addSimCluster (const MtdSimClusterRef &ref) |
void | addSimHit (PSimHit &hit) |
add simhit's energy to cluster More... | |
void | addSimTime (const float time) |
void | clearSimClusters () |
MtdCaloParticle () | |
MtdCaloParticle (const SimTrack &simtrk) | |
MtdCaloParticle (EncodedEventId eventID, uint32_t particleID) | |
mtdsc_iterator | simCluster_begin () const |
iterators More... | |
mtdsc_iterator | simCluster_end () const |
const MtdSimClusterRefVector & | simClusters () const |
float | simTime () const |
returns the time of the caloparticle More... | |
~MtdCaloParticle () | |
Public Member Functions inherited from CaloParticle | |
void | addG4Track (const SimTrack &t) |
void | addGenParticle (const reco::GenParticleRef &ref) |
void | addRecHitAndFraction (uint32_t hit, float fraction) |
add rechit with fraction More... | |
void | addSimCluster (const SimClusterRef &ref) |
void | addSimHit (const PCaloHit &hit) |
add simhit's energy to cluster More... | |
math::XYZVectorF | boostToCM () const |
Vector to boost to the particle centre of mass frame. More... | |
CaloParticle () | |
CaloParticle (const SimTrack &simtrk) | |
CaloParticle (EncodedEventId eventID, uint32_t particleID) | |
float | charge () const |
Electric charge. Note this is taken from the first SimTrack only. More... | |
void | clearSimClusters () |
float | energy () const |
Energy. Note this is taken from the first SimTrack only. More... | |
float | et () const |
Transverse energy. Note this is taken from the first SimTrack only. More... | |
float | eta () const |
Momentum pseudorapidity. Note this is taken from the simtrack before the calorimeter. More... | |
EncodedEventId | eventId () const |
Signal source, crossing number. More... | |
g4t_iterator | g4Track_begin () const |
g4t_iterator | g4Track_end () const |
const std::vector< SimTrack > & | g4Tracks () const |
genp_iterator | genParticle_begin () const |
iterators More... | |
genp_iterator | genParticle_end () const |
const reco::GenParticleRefVector & | genParticles () const |
std::vector< std::pair< uint32_t, float > > | hits_and_fractions () const |
Returns list of rechit IDs and fractions for this CaloParticle. More... | |
bool | longLived () const |
is long lived? More... | |
float | mass () const |
Mass. Note this is taken from the first SimTrack only. More... | |
float | massSqr () const |
Mass squared. Note this is taken from the first SimTrack only. More... | |
math::XYZVectorF | momentum () const |
spatial momentum vector More... | |
float | mt () const |
Transverse mass. Note this is taken from the first SimTrack only. More... | |
float | mtSqr () const |
Transverse mass squared. Note this is taken from the first SimTrack only. More... | |
int | numberOfRecHits () const |
Gives the total number of SimHits, in the cluster. More... | |
int | numberOfSimHits () const |
Gives the total number of SimHits, in the cluster. More... | |
float | p () const |
Magnitude of momentum vector. Note this is taken from the first SimTrack only. More... | |
const math::XYZTLorentzVectorF & | p4 () const |
Four-momentum Lorentz vector. Note this is taken from the first SimTrack only. More... | |
uint64_t | particleId () const |
int | pdgId () const |
PDG ID. More... | |
float | phi () const |
Momentum azimuthal angle. Note this is taken from the first SimTrack only. More... | |
float | pt () const |
Transverse momentum. Note this is taken from the first SimTrack only. More... | |
float | px () const |
x coordinate of momentum vector. Note this is taken from the first SimTrack only. More... | |
float | py () const |
y coordinate of momentum vector. Note this is taken from the first SimTrack only. More... | |
float | pz () const |
z coordinate of momentum vector. Note this is taken from the first SimTrack only. More... | |
float | rapidity () const |
Rapidity. Note this is taken from the simtrack before the calorimeter. More... | |
sc_iterator | simCluster_begin () const |
sc_iterator | simCluster_end () const |
const SimClusterRefVector & | simClusters () const |
float | simEnergy () const |
returns the accumulated sim energy in the cluster More... | |
int | status () const |
Status word. More... | |
float | theta () const |
Momentum polar angle. Note this is taken from the first SimTrack only. More... | |
int | threeCharge () const |
Gives charge in unit of quark charge (should be 3 times "charge()") More... | |
float | y () const |
Same as rapidity(). More... | |
~CaloParticle () | |
Private Attributes | |
MtdSimClusterRefVector | mtdsimClusters_ |
float | simhit_time_ {-99.f} |
Friends | |
std::ostream & | operator<< (std::ostream &s, MtdCaloParticle const &tp) |
Additional Inherited Members | |
Static Public Attributes inherited from CaloParticle | |
static const unsigned int | longLivedTag = 65536 |
long lived flag More... | |
Protected Attributes inherited from CaloParticle | |
EncodedEventId | event_ |
std::vector< float > | fractions_ |
std::vector< SimTrack > | g4Tracks_ |
references to G4 and reco::GenParticle tracks More... | |
reco::GenParticleRefVector | genParticles_ |
std::vector< uint32_t > | hits_ |
uint64_t | nsimhits_ {0} |
uint32_t | particleId_ {0} |
SimClusterRefVector | simClusters_ |
float | simhit_energy_ {0.f} |
math::XYZTLorentzVectorF | theMomentum_ |
Definition at line 13 of file MtdCaloParticle.h.
Definition at line 17 of file MtdCaloParticle.h.
MtdCaloParticle::MtdCaloParticle | ( | ) |
Definition at line 9 of file MtdCaloParticle.cc.
MtdCaloParticle::MtdCaloParticle | ( | const SimTrack & | simtrk | ) |
Definition at line 13 of file MtdCaloParticle.cc.
References CaloParticle::addG4Track(), CaloParticle::event_, CoreSimTrack::eventId(), CoreSimTrack::momentum(), CaloParticle::particleId_, CaloParticle::theMomentum_, and CoreSimTrack::trackId().
MtdCaloParticle::MtdCaloParticle | ( | EncodedEventId | eventID, |
uint32_t | particleID | ||
) |
Definition at line 21 of file MtdCaloParticle.cc.
References CaloParticle::event_, EgammaObjectsElectrons_cfi::particleID, and CaloParticle::particleId_.
MtdCaloParticle::~MtdCaloParticle | ( | ) |
Definition at line 26 of file MtdCaloParticle.cc.
|
inline |
Definition at line 27 of file MtdCaloParticle.h.
References mtdsimClusters_, and edm::RefVector< C, T, F >::push_back().
|
inline |
add simhit's energy to cluster
Definition at line 42 of file MtdCaloParticle.h.
References CaloParticle::nsimhits_, and CaloParticle::simhit_energy_.
|
inline |
Definition at line 39 of file MtdCaloParticle.h.
References simhit_time_, and hcalRecHitTable_cff::time.
|
inline |
Definition at line 34 of file MtdCaloParticle.h.
References edm::RefVector< C, T, F >::clear(), and mtdsimClusters_.
|
inline |
iterators
Definition at line 30 of file MtdCaloParticle.h.
References edm::RefVector< C, T, F >::begin(), and mtdsimClusters_.
|
inline |
Definition at line 31 of file MtdCaloParticle.h.
References edm::RefVector< C, T, F >::end(), and mtdsimClusters_.
|
inline |
Definition at line 33 of file MtdCaloParticle.h.
References mtdsimClusters_.
|
inline |
returns the time of the caloparticle
Definition at line 37 of file MtdCaloParticle.h.
References simhit_time_.
|
friend |
Definition at line 28 of file MtdCaloParticle.cc.
|
private |
Definition at line 49 of file MtdCaloParticle.h.
Referenced by addSimCluster(), clearSimClusters(), simCluster_begin(), simCluster_end(), and simClusters().
|
private |
Definition at line 48 of file MtdCaloParticle.h.
Referenced by addSimTime(), and simTime().