#include <MtdSimLayerCluster.h>
Public Member Functions | |
void | addCluEnergy (float energy) |
computes the energy of the cluster More... | |
void | addCluIndex (const uint32_t index) |
add the index of the simcluster More... | |
void | addCluLocalPos (LocalPoint pos) |
computes the position of the cluster More... | |
float | computeClusterTime () |
computes the time of the cluster More... | |
MtdSimLayerCluster () | |
MtdSimLayerCluster (const SimTrack &simtrk) | |
MtdSimLayerCluster (EncodedEventId eventID, uint32_t particleID) | |
uint32_t | seedId () const |
float | simLCEnergy () const |
returns the accumulated sim energy in the cluster More... | |
LocalPoint | simLCPos () const |
returns the local position of the cluster More... | |
float | simLCTime () const |
returns the time of the cluster More... | |
~MtdSimLayerCluster () | |
Public Member Functions inherited from MtdSimCluster | |
void | addHitAndFraction (uint64_t hit, float fraction) |
add hit with fraction More... | |
void | addHitTime (float time) |
add hit time More... | |
void | addSimHit (const PSimHit &hit) |
add simhit's energy to cluster More... | |
void | clear () |
void | clearHitsAndFractions () |
clear the hits and fractions list More... | |
void | clearHitsTime () |
clear the times list More... | |
std::vector< std::pair< uint32_t, std::pair< uint8_t, uint8_t > > > | detIds_and_rows () const |
Returns list of detIds, rows and columns for this SimCluster. More... | |
std::vector< std::pair< uint64_t, float > > | hits_and_energies () const |
Returns list of hit IDs and energies for this SimCluster. More... | |
std::vector< std::pair< uint64_t, float > > | hits_and_fractions () const |
Returns list of hit IDs and fractions for this SimCluster. More... | |
std::vector< std::pair< uint64_t, float > > | hits_and_times () const |
Returns list of hit IDs and times for this SimCluster. More... | |
MtdSimCluster () | |
MtdSimCluster (const SimTrack &simtrk) | |
MtdSimCluster (EncodedEventId eventID, uint32_t particleID) | |
~MtdSimCluster () | |
Public Member Functions inherited from SimCluster | |
void | addG4Track (const SimTrack &t) |
void | addGenParticle (const reco::GenParticleRef &ref) |
void | addHitEnergy (float energy) |
add rechit energy More... | |
void | addRecHitAndFraction (uint32_t hit, float fraction) |
add rechit with fraction More... | |
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... | |
float | charge () const |
Electric charge. Note this is taken from the first SimTrack only. More... | |
void | clearHitsAndFractions () |
clear the hits and fractions list More... | |
void | clearHitsEnergy () |
clear the energies list More... | |
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_energies () const |
Returns list of rechit IDs and energies for this SimCluster. More... | |
std::vector< std::pair< uint32_t, float > > | hits_and_fractions () const |
Returns list of rechit IDs and fractions for this SimCluster. 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... | |
SimCluster () | |
SimCluster (const SimTrack &simtrk) | |
SimCluster (EncodedEventId eventID, uint32_t particleID) | |
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... | |
~SimCluster () | |
Private Attributes | |
uint32_t | seedId_ |
float | simLC_energy_ {0.f} |
LocalPoint | simLC_pos_ |
float | simLC_time_ {0.f} |
Friends | |
std::ostream & | operator<< (std::ostream &s, MtdSimLayerCluster const &tp) |
Additional Inherited Members | |
Public Types inherited from SimCluster | |
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 math::XYZVectorD | Vector |
point in the space More... | |
Static Public Attributes inherited from SimCluster | |
static const unsigned int | longLivedTag = 65536 |
long lived flag More... | |
Protected Attributes inherited from MtdSimCluster | |
std::vector< uint64_t > | mtdHits_ |
std::vector< float > | times_ |
Protected Attributes inherited from SimCluster | |
std::vector< float > | energies_ |
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} |
float | simhit_energy_ {0.f} |
math::XYZTLorentzVectorF | theMomentum_ |
Definition at line 11 of file MtdSimLayerCluster.h.
MtdSimLayerCluster::MtdSimLayerCluster | ( | ) |
Definition at line 7 of file MtdSimLayerCluster.cc.
MtdSimLayerCluster::MtdSimLayerCluster | ( | const SimTrack & | simtrk | ) |
Definition at line 11 of file MtdSimLayerCluster.cc.
References SimCluster::addG4Track(), SimCluster::event_, CoreSimTrack::eventId(), CoreSimTrack::momentum(), SimCluster::particleId_, SimCluster::theMomentum_, and CoreSimTrack::trackId().
MtdSimLayerCluster::MtdSimLayerCluster | ( | EncodedEventId | eventID, |
uint32_t | particleID | ||
) |
Definition at line 20 of file MtdSimLayerCluster.cc.
References SimCluster::event_, EgammaObjectsElectrons_cfi::particleID, and SimCluster::particleId_.
MtdSimLayerCluster::~MtdSimLayerCluster | ( | ) |
Definition at line 25 of file MtdSimLayerCluster.cc.
|
inline |
computes the energy of the cluster
Definition at line 36 of file MtdSimLayerCluster.h.
References SimCluster::energy(), and simLC_energy_.
|
inline |
add the index of the simcluster
Definition at line 42 of file MtdSimLayerCluster.h.
References seedId_.
|
inline |
computes the position of the cluster
Definition at line 39 of file MtdSimLayerCluster.h.
References simLC_pos_.
|
inline |
computes the time of the cluster
Definition at line 23 of file MtdSimLayerCluster.h.
References SimCluster::energies_, mps_fire::i, simLC_time_, and MtdSimCluster::times_.
|
inline |
|
inline |
returns the accumulated sim energy in the cluster
Definition at line 51 of file MtdSimLayerCluster.h.
References simLC_energy_.
|
inline |
returns the local position of the cluster
Definition at line 48 of file MtdSimLayerCluster.h.
References simLC_pos_.
|
inline |
returns the time of the cluster
Definition at line 45 of file MtdSimLayerCluster.h.
References simLC_time_.
|
friend |
Definition at line 27 of file MtdSimLayerCluster.cc.
|
private |
Definition at line 57 of file MtdSimLayerCluster.h.
Referenced by addCluIndex(), and seedId().
|
private |
Definition at line 60 of file MtdSimLayerCluster.h.
Referenced by addCluEnergy(), and simLCEnergy().
|
private |
Definition at line 61 of file MtdSimLayerCluster.h.
Referenced by addCluLocalPos(), and simLCPos().
|
private |
Definition at line 59 of file MtdSimLayerCluster.h.
Referenced by computeClusterTime(), and simLCTime().