#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... | |
FSimTrack (int ipart, const math::XYZTLorentzVector &p, int iv, int ig, int id, double charge, const math::XYZTLorentzVector &tkp, const math::XYZTLorentzVector &tkm, const SimVertex &tkv) | |
Hack to interface "old" calorimetry with "new" propagation in tracker (need to construct FSimTracks) 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... | |
bool | isGlobal () const |
particle did not decay before more detectors (useful for newProducer) 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 | setGlobal () |
particle did not decay before more detectors (useful for newProducer) 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 | setOriginVertex (const SimVertex &v) |
Set origin vertex. 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 |
void | setEventId (EncodedEventId e) |
void | setTrackId (unsigned int t) |
unsigned int | trackId () const |
int | type () const |
particle type (HEP PDT convension) More... | |
Private Attributes | |
double | charge_ |
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_ |
bool | isGlobal_ |
int | layer1 |
RawParticle | Layer1_Entrance |
int | layer2 |
RawParticle | Layer2_Entrance |
FBaseSimEvent * | mom_ |
XYZTLorentzVector | momentum_ |
bool | prop |
double | properDecayTime |
SimVertex | vertex_ |
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 30 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_, source_particleGun_cfi::ParticleID, CoreSimTrack::setTrackId(), FBaseSimEvent::theTable(), and CoreSimTrack::type().
FSimTrack::FSimTrack | ( | int | ipart, |
const math::XYZTLorentzVector & | p, | ||
int | iv, | ||
int | ig, | ||
int | id, | ||
double | charge, | ||
const math::XYZTLorentzVector & | tkp, | ||
const math::XYZTLorentzVector & | tkm, | ||
const SimVertex & | tkv | ||
) |
Hack to interface "old" calorimetry with "new" propagation in tracker (need to construct FSimTracks)
Definition at line 32 of file FSimTrack.cc.
References CoreSimTrack::setTrackId().
|
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 195 of file FSimTrack.h.
Referenced by FBaseSimEvent::addSimTrack().
|
inline |
charge
Definition at line 51 of file FSimTrack.h.
References BPhysicsValidation_cfi::daughters, GenParticle::GenParticle, and mps_fire::i.
Referenced by FBaseSimEvent::fill(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), and PFSimParticleProducer::produce().
|
inline |
Get the index of the closest charged daughter.
Definition at line 201 of file FSimTrack.h.
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 213 of file FSimTrack.h.
Referenced by ParticlePropagator::ParticlePropagator().
|
inline |
The particle at ECAL entrance.
Definition at line 138 of file FSimTrack.h.
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 141 of file FSimTrack.h.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), EcalHitMaker::hcalCellLine(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), operator<<(), PFSimParticleProducer::produce(), CalorimetryManager::reconstructHCAL(), and CalorimetryManager::reconstructTrack().
|
inline |
The particle at HCAL exir.
Definition at line 147 of file FSimTrack.h.
Referenced by PFSimParticleProducer::produce().
|
inline |
The particle at HCAL exir.
Definition at line 150 of file FSimTrack.h.
Referenced by PFSimParticleProducer::produce().
|
inline |
the index in FBaseSimEvent and other vectors
Definition at line 91 of file FSimTrack.h.
Referenced by CalorimetryManager::EMShowerSimulation(), CalorimetryManager::HDShowerSimulation(), TrajectoryManager::makeSinglePSimHit(), TrajectoryManager::moveAllDaughters(), CalorimetryManager::MuonMipSimulation(), FSimTrackEqual::operator()(), operator<<(), PFSimParticleProducer::produce(), FastHFShowerLibrary::recoHFShowerLibrary(), CalorimetryManager::reconstructHCAL(), and CalorimetryManager::reconstructTrack().
|
inline |
particle did not decay before more detectors (useful for newProducer)
Definition at line 153 of file FSimTrack.h.
|
inline |
The particle at Preshower Layer 1.
Definition at line 132 of file FSimTrack.h.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), operator<<(), EcalHitMaker::preshowerCellLine(), and PFSimParticleProducer::produce().
|
inline |
The particle at Preshower Layer 2.
Definition at line 135 of file FSimTrack.h.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), operator<<(), EcalHitMaker::preshowerCellLine(), and PFSimParticleProducer::produce().
|
inline |
Temporary (until move of SimTrack to Mathcore) - No! Actually very useful.
Definition at line 204 of file FSimTrack.h.
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::reconstructTrack().
|
inline |
no mother particle
Referenced by FSimEvent::load(), TrajectoryManager::makeSinglePSimHit(), operator<<(), and PFSimParticleProducer::produce().
bool FSimTrack::notYetToEndVertex | ( | const XYZTLorentzVector & | pos | ) | const |
Compare the end vertex position with another position.
Definition at line 45 of file FSimTrack.cc.
References MillePedeFileConverter_cfg::e, endVertex(), noEndVertex(), position, vertex(), and DOFs::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 106 of file FSimTrack.h.
References digitizers_cfi::ecal.
Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), CalorimetryManager::EMShowerSimulation(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), operator<<(), PFSimParticleProducer::produce(), and CalorimetryManager::reconstructTrack().
|
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 111 of file FSimTrack.h.
References digitizers_cfi::hcal.
Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), CalorimetryManager::EMShowerSimulation(), HcalHitMaker::getSubHcalDet(), EcalHitMaker::hcalCellLine(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), operator<<(), PFSimParticleProducer::produce(), CalorimetryManager::reconstructHCAL(), and CalorimetryManager::reconstructTrack().
|
inline |
1 : on the barrel; 2 : on the EndCaps; 3 : no propagation possible 0 : not yet propagated
Definition at line 126 of file FSimTrack.h.
|
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 96 of file FSimTrack.h.
Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), 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 101 of file FSimTrack.h.
Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), CalorimetryManager::EMShowerSimulation(), operator<<(), 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 116 of file FSimTrack.h.
Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), HcalHitMaker::getSubHcalDet(), EcalHitMaker::hcalCellLine(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), operator<<(), FastHFShowerLibrary::recoHFShowerLibrary(), and CalorimetryManager::reconstructTrack().
|
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 121 of file FSimTrack.h.
|
inline |
|
inline |
The particle was tentatively propagated to calorimeters.
Definition at line 129 of file FSimTrack.h.
|
inline |
Set the index of the closest charged daughter.
Definition at line 198 of file FSimTrack.h.
References triggerObjects_cff::id.
Referenced by MaterialEffects::interact(), and TrajectoryManager::updateWithDaughters().
void FSimTrack::setEcal | ( | const RawParticle & | pp, |
int | success | ||
) |
Set the ecal variables.
Definition at line 81 of file FSimTrack.cc.
References ecal, ECAL_Entrance, createTree::pp, and summarizeEdmComparisonLogfiles::success.
Referenced by FastSimProducer::createFSimTrack(), FBaseSimEvent::fill(), and TrajectoryManager::propagateToCalorimeters().
|
inline |
Set the end vertex.
Definition at line 162 of file FSimTrack.h.
References createTree::pp, and summarizeEdmComparisonLogfiles::success.
Referenced by FBaseSimEvent::addSimVertex().
|
inline |
particle did not decay before more detectors (useful for newProducer)
Definition at line 156 of file FSimTrack.h.
Referenced by FastSimProducer::createFSimTrack().
void FSimTrack::setHcal | ( | const RawParticle & | pp, |
int | success | ||
) |
Set the hcal variables.
Definition at line 88 of file FSimTrack.cc.
References HCAL_Entrance, createTree::pp, and summarizeEdmComparisonLogfiles::success.
Referenced by FastSimProducer::createFSimTrack(), 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 102 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 108 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 67 of file FSimTrack.cc.
References layer1, Layer1_Entrance, createTree::pp, and summarizeEdmComparisonLogfiles::success.
Referenced by FastSimProducer::createFSimTrack(), FBaseSimEvent::fill(), and TrajectoryManager::propagateToCalorimeters().
void FSimTrack::setLayer2 | ( | const RawParticle & | pp, |
int | success | ||
) |
Set the preshower layer2 variables.
Definition at line 74 of file FSimTrack.cc.
References layer2, Layer2_Entrance, createTree::pp, and summarizeEdmComparisonLogfiles::success.
Referenced by FastSimProducer::createFSimTrack(), FBaseSimEvent::fill(), and TrajectoryManager::propagateToCalorimeters().
|
inline |
Reset the momentum (to be used with care)
Definition at line 207 of file FSimTrack.h.
Referenced by TrajectoryManager::moveAllDaughters().
|
inline |
void FSimTrack::setPropagate | ( | ) |
The particle has been propgated through the tracker.
Set the variable at the beginning of the propagation.
Definition at line 61 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 95 of file FSimTrack.cc.
References createTree::pp, summarizeEdmComparisonLogfiles::success, vfcal, and VFCAL_Entrance.
Referenced by FastSimProducer::createFSimTrack(), FBaseSimEvent::fill(), and TrajectoryManager::propagateToCalorimeters().
|
inline |
|
inline |
|
inline |
The particle at VFCAL entrance.
Definition at line 144 of file FSimTrack.h.
Referenced by EcalHitMaker::cellLine(), EcalHitMaker::hcalCellLine(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), operator<<(), FastHFShowerLibrary::recoHFShowerLibrary(), and CalorimetryManager::reconstructHCAL().
|
private |
Definition at line 223 of file FSimTrack.h.
|
private |
Definition at line 248 of file FSimTrack.h.
|
private |
Definition at line 247 of file FSimTrack.h.
|
private |
Definition at line 229 of file FSimTrack.h.
Referenced by setEcal().
|
private |
Definition at line 240 of file FSimTrack.h.
Referenced by setEcal().
|
private |
Definition at line 225 of file FSimTrack.h.
|
private |
Definition at line 230 of file FSimTrack.h.
|
private |
Definition at line 241 of file FSimTrack.h.
Referenced by setHcal().
|
private |
Definition at line 243 of file FSimTrack.h.
Referenced by setHcalExit().
|
private |
Definition at line 232 of file FSimTrack.h.
Referenced by setHcalExit().
|
private |
Definition at line 244 of file FSimTrack.h.
Referenced by setHO().
|
private |
Definition at line 233 of file FSimTrack.h.
Referenced by setHO().
|
private |
Definition at line 222 of file FSimTrack.h.
|
private |
Definition at line 250 of file FSimTrack.h.
Referenced by FSimTrack().
|
private |
Definition at line 256 of file FSimTrack.h.
|
private |
Definition at line 227 of file FSimTrack.h.
Referenced by setLayer1().
|
private |
Definition at line 238 of file FSimTrack.h.
Referenced by setLayer1().
|
private |
Definition at line 228 of file FSimTrack.h.
Referenced by setLayer2().
|
private |
Definition at line 239 of file FSimTrack.h.
Referenced by setLayer2().
|
private |
Definition at line 220 of file FSimTrack.h.
Referenced by FSimTrack().
|
private |
Definition at line 252 of file FSimTrack.h.
|
private |
Definition at line 236 of file FSimTrack.h.
Referenced by setPropagate().
|
private |
Definition at line 254 of file FSimTrack.h.
|
private |
Definition at line 218 of file FSimTrack.h.
|
private |
Definition at line 231 of file FSimTrack.h.
Referenced by setVFcal().
|
private |
Definition at line 242 of file FSimTrack.h.
Referenced by setVFcal().