#include <FSimTrack.h>
Public Member Functions | |
void | addDaughter (int i) |
Add a RecHit for a track on a layer. More... | |
float | charge () const |
charge More... | |
int | closestDaughterId () const |
Get the index of the closest charged daughter. More... | |
const FSimTrack & | daughter (int i) const |
Ith daughter. More... | |
const std::vector< int > & | daughters () const |
Vector of daughter indices. More... | |
double | decayTime () const |
Return the pre-defined decay time. More... | |
const RawParticle & | ecalEntrance () const |
The particle at ECAL entrance. More... | |
const FSimVertex & | endVertex () const |
end vertex More... | |
FSimTrack () | |
Default constructor. More... | |
FSimTrack (const RawParticle *p, int iv, int ig, int id, FBaseSimEvent *mom, double dt=-1.) | |
Constructor from the EmmbSimTrack index in the FBaseSimEvent. More... | |
const HepMC::GenParticle * | genParticle () const |
The original GenParticle. More... | |
const RawParticle & | hcalEntrance () const |
The particle at HCAL entrance. More... | |
const RawParticle & | hcalExit () const |
The particle at HCAL exir. More... | |
const RawParticle & | hoEntrance () const |
The particle at HCAL exir. More... | |
int | id () const |
the index in FBaseSimEvent and other vectors More... | |
const RawParticle & | layer1Entrance () const |
The particle at Preshower Layer 1. More... | |
const RawParticle & | layer2Entrance () const |
The particle at Preshower Layer 2. More... | |
const XYZTLorentzVector & | momentum () const |
Temporary (until move of SimTrack to Mathcore) - No! Actually very useful. More... | |
const FSimTrack & | mother () const |
mother More... | |
int | nDaughters () const |
Number of daughters. More... | |
bool | noDaughter () const |
no daughters More... | |
bool | noEndVertex () const |
no end vertex More... | |
bool | noMother () const |
no mother particle More... | |
bool | notYetToEndVertex (const XYZTLorentzVector &pos) const |
Compare the end vertex position with another position. More... | |
int | onEcal () const |
int | onHcal () const |
int | onHO () const |
int | onLayer1 () const |
int | onLayer2 () const |
int | onVFcal () const |
int | outHcal () const |
const HepPDT::ParticleData * | particleInfo () const |
particle info... More... | |
bool | propagated () const |
The particle was tentatively propagated to calorimeters. More... | |
void | setClosestDaughterId (int id) |
Set the index of the closest charged daughter. More... | |
void | setEcal (const RawParticle &pp, int success) |
Set the ecal variables. More... | |
void | setEndVertex (int endv) |
Set the end vertex. More... | |
void | setHcal (const RawParticle &pp, int success) |
Set the hcal variables. More... | |
void | setHcalExit (const RawParticle &pp, int success) |
Set the hcal exit variables. More... | |
void | setHO (const RawParticle &pp, int success) |
Set the ho variables. More... | |
void | setLayer1 (const RawParticle &pp, int success) |
Set the preshower layer1 variables. More... | |
void | setLayer2 (const RawParticle &pp, int success) |
Set the preshower layer2 variables. More... | |
void | setMomentum (const math::XYZTLorentzVector &newMomentum) |
Reset the momentum (to be used with care) More... | |
void | setPropagate () |
The particle has been propgated through the tracker. More... | |
void | setVFcal (const RawParticle &pp, int success) |
Set the hcal variables. More... | |
const SimTrack & | simTrack () const |
Simply returns the SimTrack. More... | |
const FSimVertex & | vertex () const |
Origin vertex. More... | |
const RawParticle & | vfcalEntrance () const |
The particle at VFCAL entrance. More... | |
virtual | ~FSimTrack () |
Destructor. More... | |
Public Member Functions inherited from SimTrack | |
int | genpartIndex () const |
index of the corresponding Generator particle in the Event container (-1 if no Genpart) More... | |
bool | noGenpart () const |
bool | noVertex () const |
void | setTkMomentum (const math::XYZTLorentzVectorD &mom) |
void | setTkPosition (const math::XYZVectorD &pos) |
void | setVertexIndex (const int v) |
SimTrack () | |
constructor More... | |
SimTrack (int ipart, const math::XYZTLorentzVectorD &p) | |
SimTrack (int ipart, const math::XYZTLorentzVectorD &p, int iv, int ig) | |
SimTrack (int ipart, const math::XYZTLorentzVectorD &p, int iv, int ig, const math::XYZVectorD &tkp, const math::XYZTLorentzVectorD &tkm) | |
SimTrack (const CoreSimTrack &t, int iv, int ig) | |
constructor from transient More... | |
const math::XYZTLorentzVectorD & | trackerSurfaceMomentum () const |
const math::XYZVectorD & | trackerSurfacePosition () const |
int | vertIndex () const |
index of the vertex in the Event container (-1 if no vertex) More... | |
Public Member Functions inherited from CoreSimTrack | |
float | charge () const |
charge More... | |
CoreSimTrack () | |
constructors More... | |
CoreSimTrack (int ipart, const math::XYZTLorentzVectorD &p) | |
CoreSimTrack (int ipart, math::XYZVectorD &ip, double ie) | |
EncodedEventId | eventId () const |
const math::XYZTLorentzVectorD & | momentum () const |
particle info... More... | |
void | setEventId (EncodedEventId e) |
void | setTrackId (unsigned int t) |
unsigned int | trackId () const |
int | type () const |
particle type (HEP PDT convension) More... | |
Private Attributes | |
int | closestDaughterId_ |
std::vector< int > | daugh_ |
int | ecal |
RawParticle | ECAL_Entrance |
int | endv_ |
int | hcal |
RawParticle | HCAL_Entrance |
RawParticle | HCAL_Exit |
int | hcalexit |
RawParticle | HO_Entrance |
int | hoentr |
int | id_ |
const HepPDT::ParticleData * | info_ |
int | layer1 |
RawParticle | Layer1_Entrance |
int | layer2 |
RawParticle | Layer2_Entrance |
FBaseSimEvent * | mom_ |
XYZTLorentzVector | momentum_ |
bool | prop |
double | properDecayTime |
int | vfcal |
RawParticle | VFCAL_Entrance |
Additional Inherited Members | |
Public Types inherited from SimTrack | |
typedef CoreSimTrack | Core |
A class that mimics SimTrack, with enhanced features. Essentially an interface to SimTrack.
Definition at line 29 of file FSimTrack.h.
FSimTrack::FSimTrack | ( | ) |
FSimTrack::FSimTrack | ( | const RawParticle * | p, |
int | iv, | ||
int | ig, | ||
int | id, | ||
FBaseSimEvent * | mom, | ||
double | dt = -1. |
||
) |
Constructor from the EmmbSimTrack index in the FBaseSimEvent.
Definition at line 15 of file FSimTrack.cc.
References info_, mom_, RecoTau_DiTaus_pt_20-420_cfg::ParticleID, CoreSimTrack::setTrackId(), FBaseSimEvent::theTable(), and CoreSimTrack::type().
|
virtual |
|
inline |
Add a RecHit for a track on a layer.
Add a RecHit for a track on a layer Update the vactors of daughter's id
Definition at line 181 of file FSimTrack.h.
References daugh_.
Referenced by FBaseSimEvent::addSimTrack().
|
inline |
charge
Definition at line 47 of file FSimTrack.h.
References particleInfo().
Referenced by FBaseSimEvent::fill(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), and PFSimParticleProducer::produce().
|
inline |
Get the index of the closest charged daughter.
Definition at line 187 of file FSimTrack.h.
References closestDaughterId_.
Referenced by FSimEvent::load(), and TrajectoryManager::makeSinglePSimHit().
|
inline |
Ith daughter.
Referenced by TrajectoryManager::moveAllDaughters(), and operator<<().
|
inline |
Vector of daughter indices.
Referenced by PFSimParticleProducer::produce().
|
inline |
Return the pre-defined decay time.
Definition at line 199 of file FSimTrack.h.
References properDecayTime.
Referenced by ParticlePropagator::ParticlePropagator().
|
inline |
The particle at ECAL entrance.
Definition at line 133 of file FSimTrack.h.
References ECAL_Entrance.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), HcalHitMaker::HcalHitMaker(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), operator<<(), and PFSimParticleProducer::produce().
|
inline |
end vertex
Referenced by notYetToEndVertex(), operator<<(), PFSimParticleProducer::produce(), and TrajectoryManager::updateWithDaughters().
|
inline |
The original GenParticle.
|
inline |
The particle at HCAL entrance.
Definition at line 136 of file FSimTrack.h.
References HCAL_Entrance.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), EcalHitMaker::hcalCellLine(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), PFSimParticleProducer::produce(), and CalorimetryManager::reconstructHCAL().
|
inline |
The particle at HCAL exir.
Definition at line 142 of file FSimTrack.h.
References HCAL_Exit.
Referenced by PFSimParticleProducer::produce().
|
inline |
The particle at HCAL exir.
Definition at line 145 of file FSimTrack.h.
References HO_Entrance.
Referenced by PFSimParticleProducer::produce().
|
inline |
the index in FBaseSimEvent and other vectors
Definition at line 86 of file FSimTrack.h.
References id_.
Referenced by CalorimetryManager::EMShowerSimulation(), CalorimetryManager::HDShowerSimulation(), TrajectoryManager::makeSinglePSimHit(), TrajectoryManager::moveAllDaughters(), CalorimetryManager::MuonMipSimulation(), FSimTrackEqual::operator()(), operator<<(), PFSimParticleProducer::produce(), CalorimetryManager::reconstructHCAL(), and setClosestDaughterId().
|
inline |
The particle at Preshower Layer 1.
Definition at line 127 of file FSimTrack.h.
References Layer1_Entrance.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), operator<<(), EcalHitMaker::preshowerCellLine(), and PFSimParticleProducer::produce().
|
inline |
The particle at Preshower Layer 2.
Definition at line 130 of file FSimTrack.h.
References Layer2_Entrance.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), EcalHitMaker::preshowerCellLine(), and PFSimParticleProducer::produce().
|
inline |
Temporary (until move of SimTrack to Mathcore) - No! Actually very useful.
Definition at line 190 of file FSimTrack.h.
References momentum_.
Referenced by FBaseSimEvent::fill(), CalorimetryManager::HDShowerSimulation(), TrajectoryManager::moveAllDaughters(), CalorimetryManager::MuonMipSimulation(), operator<<(), PFSimParticleProducer::produce(), and TrajectoryManager::updateWithDaughters().
|
inline |
mother
Referenced by FSimEvent::load(), TrajectoryManager::makeSinglePSimHit(), operator<<(), and PFSimParticleProducer::produce().
|
inline |
Number of daughters.
Referenced by TrajectoryManager::moveAllDaughters(), operator<<(), ParticlePropagator::ParticlePropagator(), TrajectoryManager::reconstruct(), and TrajectoryManager::updateWithDaughters().
|
inline |
no daughters
|
inline |
no end vertex
Referenced by FSimEvent::load(), notYetToEndVertex(), operator<<(), PFSimParticleProducer::produce(), and CalorimetryManager::reconstruct().
|
inline |
no mother particle
Referenced by FSimEvent::load(), TrajectoryManager::makeSinglePSimHit(), and PFSimParticleProducer::produce().
bool FSimTrack::notYetToEndVertex | ( | const XYZTLorentzVector & | pos | ) | const |
Compare the end vertex position with another position.
Definition at line 33 of file FSimTrack.cc.
References alignCSCRings::e, endVertex(), noEndVertex(), position, vertex(), and Gflash::Z.
Referenced by FBaseSimEvent::fill(), TrajectoryManager::propagateToCalorimeters(), and TrajectoryManager::reconstruct().
|
inline |
The particle was propagated to the ECAL front face 1 : on the barrel; 2 : on the EndCaps; 3 : no propagation possible 0 : not yet propagated
Definition at line 101 of file FSimTrack.h.
References ecal.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), operator<<(), PFSimParticleProducer::produce(), and CalorimetryManager::reconstruct().
|
inline |
The particle was propagated to the HCAL front face 1 : on the barrel; 2 : on the EndCaps; 3 : no propagation possible 0 : not yet propagated
Definition at line 106 of file FSimTrack.h.
References hcal.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), HcalHitMaker::getSubHcalDet(), EcalHitMaker::hcalCellLine(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), PFSimParticleProducer::produce(), CalorimetryManager::reconstruct(), and CalorimetryManager::reconstructHCAL().
|
inline |
1 : on the barrel; 2 : on the EndCaps; 3 : no propagation possible 0 : not yet propagated
Definition at line 121 of file FSimTrack.h.
References hoentr.
|
inline |
The particle was propagated to the Preshower Layer1 2 : on the EndCaps; (no Barrel Preshower); no propagation possible 0 : not yet propagated or no pe
Definition at line 91 of file FSimTrack.h.
References layer1.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), operator<<(), EcalHitMaker::preshowerCellLine(), and PFSimParticleProducer::produce().
|
inline |
The particle was propagated to the Preshower Layer2 2 : on the EndCaps; (no Barrel Preshower); 3 : No propagation possible 0 : not yet propagated
Definition at line 96 of file FSimTrack.h.
References layer2.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), EcalHitMaker::preshowerCellLine(), and PFSimParticleProducer::produce().
|
inline |
The particle was propagated to the VFCAL front face 2 : on the EndCaps (No VFCAL Barrel); 3 : no propagation possible 0 : not yet propagated
Definition at line 111 of file FSimTrack.h.
References vfcal.
Referenced by EcalHitMaker::cellLine(), HcalHitMaker::getSubHcalDet(), EcalHitMaker::hcalCellLine(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), and CalorimetryManager::reconstruct().
|
inline |
The particle was propagated to the HCAL back face 1 : on the barrel; 2 : on the EndCaps; 3 : no propagation possible 0 : not yet propagated
Definition at line 116 of file FSimTrack.h.
References hcalexit.
|
inline |
particle info...
Definition at line 42 of file FSimTrack.h.
References info_.
Referenced by charge(), and operator<<().
|
inline |
The particle was tentatively propagated to calorimeters.
Definition at line 124 of file FSimTrack.h.
References prop.
|
inline |
Set the index of the closest charged daughter.
Definition at line 184 of file FSimTrack.h.
References closestDaughterId_, and id().
Referenced by MaterialEffects::interact(), and TrajectoryManager::updateWithDaughters().
void FSimTrack::setEcal | ( | const RawParticle & | pp, |
int | success | ||
) |
Set the ecal variables.
Definition at line 69 of file FSimTrack.cc.
References ecal, ECAL_Entrance, createTree::pp, and summarizeEdmComparisonLogfiles::success.
Referenced by FBaseSimEvent::fill(), and TrajectoryManager::propagateToCalorimeters().
|
inline |
Set the end vertex.
Definition at line 148 of file FSimTrack.h.
References endv_.
Referenced by FBaseSimEvent::addSimVertex().
void FSimTrack::setHcal | ( | const RawParticle & | pp, |
int | success | ||
) |
Set the hcal variables.
Definition at line 76 of file FSimTrack.cc.
References hcal, HCAL_Entrance, createTree::pp, and summarizeEdmComparisonLogfiles::success.
Referenced by FBaseSimEvent::fill(), and TrajectoryManager::propagateToCalorimeters().
void FSimTrack::setHcalExit | ( | const RawParticle & | pp, |
int | success | ||
) |
Set the hcal exit variables.
Set the hcal variables.
Definition at line 90 of file FSimTrack.cc.
References HCAL_Exit, hcalexit, createTree::pp, and summarizeEdmComparisonLogfiles::success.
Referenced by FBaseSimEvent::fill().
void FSimTrack::setHO | ( | const RawParticle & | pp, |
int | success | ||
) |
Set the ho variables.
Definition at line 96 of file FSimTrack.cc.
References HO_Entrance, hoentr, createTree::pp, and summarizeEdmComparisonLogfiles::success.
Referenced by FBaseSimEvent::fill().
void FSimTrack::setLayer1 | ( | const RawParticle & | pp, |
int | success | ||
) |
Set the preshower layer1 variables.
Definition at line 55 of file FSimTrack.cc.
References layer1, Layer1_Entrance, createTree::pp, and summarizeEdmComparisonLogfiles::success.
Referenced by FBaseSimEvent::fill(), and TrajectoryManager::propagateToCalorimeters().
void FSimTrack::setLayer2 | ( | const RawParticle & | pp, |
int | success | ||
) |
Set the preshower layer2 variables.
Definition at line 62 of file FSimTrack.cc.
References layer2, Layer2_Entrance, createTree::pp, and summarizeEdmComparisonLogfiles::success.
Referenced by FBaseSimEvent::fill(), and TrajectoryManager::propagateToCalorimeters().
|
inline |
Reset the momentum (to be used with care)
Definition at line 193 of file FSimTrack.h.
References momentum_.
Referenced by TrajectoryManager::moveAllDaughters().
void FSimTrack::setPropagate | ( | ) |
The particle has been propgated through the tracker.
Set the variable at the beginning of the propagation.
Definition at line 49 of file FSimTrack.cc.
References prop.
Referenced by TrajectoryManager::reconstruct().
void FSimTrack::setVFcal | ( | const RawParticle & | pp, |
int | success | ||
) |
Set the hcal variables.
Set the vcal variables.
Definition at line 83 of file FSimTrack.cc.
References createTree::pp, summarizeEdmComparisonLogfiles::success, vfcal, and VFCAL_Entrance.
Referenced by FBaseSimEvent::fill(), and TrajectoryManager::propagateToCalorimeters().
|
inline |
|
inline |
|
inline |
The particle at VFCAL entrance.
Definition at line 139 of file FSimTrack.h.
References VFCAL_Entrance.
Referenced by EcalHitMaker::cellLine(), EcalHitMaker::hcalCellLine(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), and CalorimetryManager::reconstructHCAL().
|
private |
Definition at line 232 of file FSimTrack.h.
Referenced by closestDaughterId(), and setClosestDaughterId().
|
private |
Definition at line 231 of file FSimTrack.h.
Referenced by addDaughter().
|
private |
Definition at line 213 of file FSimTrack.h.
|
private |
Definition at line 224 of file FSimTrack.h.
Referenced by ecalEntrance(), and setEcal().
|
private |
Definition at line 209 of file FSimTrack.h.
Referenced by setEndVertex().
|
private |
Definition at line 214 of file FSimTrack.h.
|
private |
Definition at line 225 of file FSimTrack.h.
Referenced by hcalEntrance(), and setHcal().
|
private |
Definition at line 227 of file FSimTrack.h.
Referenced by hcalExit(), and setHcalExit().
|
private |
Definition at line 216 of file FSimTrack.h.
Referenced by outHcal(), and setHcalExit().
|
private |
Definition at line 228 of file FSimTrack.h.
Referenced by hoEntrance(), and setHO().
|
private |
Definition at line 217 of file FSimTrack.h.
|
private |
Definition at line 207 of file FSimTrack.h.
Referenced by id().
|
private |
Definition at line 234 of file FSimTrack.h.
Referenced by FSimTrack(), and particleInfo().
|
private |
Definition at line 211 of file FSimTrack.h.
Referenced by onLayer1(), and setLayer1().
|
private |
Definition at line 222 of file FSimTrack.h.
Referenced by layer1Entrance(), and setLayer1().
|
private |
Definition at line 212 of file FSimTrack.h.
Referenced by onLayer2(), and setLayer2().
|
private |
Definition at line 223 of file FSimTrack.h.
Referenced by layer2Entrance(), and setLayer2().
|
private |
Definition at line 205 of file FSimTrack.h.
Referenced by FSimTrack().
|
private |
Definition at line 236 of file FSimTrack.h.
Referenced by momentum(), and setMomentum().
|
private |
Definition at line 220 of file FSimTrack.h.
Referenced by propagated(), and setPropagate().
|
private |
Definition at line 238 of file FSimTrack.h.
Referenced by decayTime().
|
private |
Definition at line 215 of file FSimTrack.h.
Referenced by onVFcal(), and setVFcal().
|
private |
Definition at line 226 of file FSimTrack.h.
Referenced by setVFcal(), and vfcalEntrance().