#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 (const CoreSimTrack &t, int iv, int ig) | |
constructor from transient 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) | |
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 | ( | ) |
Default constructor.
Definition at line 9 of file FSimTrack.cc.
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 29 of file FSimTrack.cc.
References info_, mom_, LHEGenericFilter_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 52 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 200 of file FSimTrack.h.
References daugh_, and mps_fire::i.
Referenced by FBaseSimEvent::addSimTrack().
|
inline |
charge
Definition at line 56 of file FSimTrack.h.
References charge_, and particleInfo().
Referenced by FBaseSimEvent::fill(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), PFSimParticleProducer::produce(), CalorimetryManager::reconstructHCAL(), and CalorimetryManager::reconstructTrack().
|
inline |
Get the index of the closest charged daughter.
Definition at line 206 of file FSimTrack.h.
References closestDaughterId_.
Referenced by FSimEvent::load(), and TrajectoryManager::makeSinglePSimHit().
|
inline |
Ith daughter.
Referenced by TrajectoryManager::moveAllDaughters().
|
inline |
Vector of daughter indices.
Referenced by PFSimParticleProducer::produce().
|
inline |
Return the pre-defined decay time.
Definition at line 218 of file FSimTrack.h.
References properDecayTime.
Referenced by ParticlePropagator::ParticlePropagator().
|
inline |
The particle at ECAL entrance.
Definition at line 143 of file FSimTrack.h.
References ECAL_Entrance.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), HcalHitMaker::HcalHitMaker(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), and PFSimParticleProducer::produce().
|
inline |
end vertex
Referenced by notYetToEndVertex(), PFSimParticleProducer::produce(), and TrajectoryManager::updateWithDaughters().
|
inline |
The original GenParticle.
|
inline |
The particle at HCAL entrance.
Definition at line 146 of file FSimTrack.h.
References HCAL_Entrance.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), EcalHitMaker::hcalCellLine(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), PFSimParticleProducer::produce(), CalorimetryManager::reconstructHCAL(), and CalorimetryManager::reconstructTrack().
|
inline |
The particle at HCAL exir.
Definition at line 152 of file FSimTrack.h.
References HCAL_Exit.
Referenced by PFSimParticleProducer::produce().
|
inline |
The particle at HCAL exir.
Definition at line 155 of file FSimTrack.h.
References HO_Entrance.
Referenced by PFSimParticleProducer::produce().
|
inline |
the index in FBaseSimEvent and other vectors
Definition at line 96 of file FSimTrack.h.
References id_.
Referenced by CalorimetryManager::EMShowerSimulation(), CalorimetryManager::HDShowerSimulation(), TrajectoryManager::makeSinglePSimHit(), TrajectoryManager::moveAllDaughters(), CalorimetryManager::MuonMipSimulation(), PFSimParticleProducer::produce(), FastHFShowerLibrary::recoHFShowerLibrary(), CalorimetryManager::reconstructHCAL(), CalorimetryManager::reconstructTrack(), and setClosestDaughterId().
|
inline |
particle did not decay before more detectors (useful for newProducer)
Definition at line 158 of file FSimTrack.h.
References isGlobal_.
|
inline |
The particle at Preshower Layer 1.
Definition at line 137 of file FSimTrack.h.
References Layer1_Entrance.
Referenced by EcalHitMaker::cellLine(), CalorimetryManager::EMShowerSimulation(), EcalHitMaker::preshowerCellLine(), and PFSimParticleProducer::produce().
|
inline |
The particle at Preshower Layer 2.
Definition at line 140 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 209 of file FSimTrack.h.
References momentum_.
Referenced by FBaseSimEvent::fill(), CalorimetryManager::HDShowerSimulation(), TrajectoryManager::moveAllDaughters(), CalorimetryManager::MuonMipSimulation(), PFSimParticleProducer::produce(), and TrajectoryManager::updateWithDaughters().
|
inline |
mother
Referenced by FSimEvent::load(), TrajectoryManager::makeSinglePSimHit(), and PFSimParticleProducer::produce().
|
inline |
Number of daughters.
Referenced by TrajectoryManager::moveAllDaughters(), TrajectoryManager::reconstruct(), and TrajectoryManager::updateWithDaughters().
|
inline |
no daughters
|
inline |
no end vertex
Referenced by FSimEvent::load(), notYetToEndVertex(), PFSimParticleProducer::produce(), and CalorimetryManager::reconstructTrack().
|
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 85 of file FSimTrack.cc.
References MillePedeFileConverter_cfg::e, endVertex(), noEndVertex(), position, vertex(), and BeamSpotPI::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 111 of file FSimTrack.h.
References ecal.
Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), CalorimetryManager::EMShowerSimulation(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), 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 116 of file FSimTrack.h.
References hcal.
Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), CalorimetryManager::EMShowerSimulation(), EcalHitMaker::hcalCellLine(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), 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 131 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 101 of file FSimTrack.h.
References layer1.
Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), CalorimetryManager::EMShowerSimulation(), 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 106 of file FSimTrack.h.
References layer2.
Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), 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 121 of file FSimTrack.h.
References vfcal.
Referenced by EcalHitMaker::cellLine(), FastSimProducer::createFSimTrack(), EcalHitMaker::hcalCellLine(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), 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 126 of file FSimTrack.h.
References hcalexit.
|
inline |
particle info...
Definition at line 53 of file FSimTrack.h.
References info_.
Referenced by charge().
|
inline |
The particle was tentatively propagated to calorimeters.
Definition at line 134 of file FSimTrack.h.
References prop.
|
inline |
Set the index of the closest charged daughter.
Definition at line 203 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 118 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 167 of file FSimTrack.h.
References endv_.
Referenced by FBaseSimEvent::addSimVertex().
|
inline |
particle did not decay before more detectors (useful for newProducer)
Definition at line 161 of file FSimTrack.h.
References isGlobal_.
Referenced by FastSimProducer::createFSimTrack().
void FSimTrack::setHcal | ( | const RawParticle & | pp, |
int | success | ||
) |
Set the hcal variables.
Definition at line 124 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 136 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 141 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 106 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 112 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 212 of file FSimTrack.h.
References momentum_.
Referenced by TrajectoryManager::moveAllDaughters().
|
inline |
Set origin vertex.
Definition at line 164 of file FSimTrack.h.
References findQualityFiles::v, and vertex_.
void FSimTrack::setPropagate | ( | ) |
The particle has been propgated through the tracker.
Set the variable at the beginning of the propagation.
Definition at line 103 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 130 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 149 of file FSimTrack.h.
References VFCAL_Entrance.
Referenced by EcalHitMaker::cellLine(), EcalHitMaker::hcalCellLine(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), FastHFShowerLibrary::recoHFShowerLibrary(), and CalorimetryManager::reconstructHCAL().
|
private |
Definition at line 227 of file FSimTrack.h.
Referenced by charge().
|
private |
Definition at line 250 of file FSimTrack.h.
Referenced by closestDaughterId(), and setClosestDaughterId().
|
private |
Definition at line 249 of file FSimTrack.h.
Referenced by addDaughter().
|
private |
Definition at line 233 of file FSimTrack.h.
|
private |
Definition at line 243 of file FSimTrack.h.
Referenced by ecalEntrance(), and setEcal().
|
private |
Definition at line 229 of file FSimTrack.h.
Referenced by setEndVertex().
|
private |
Definition at line 234 of file FSimTrack.h.
Referenced by onHcal().
|
private |
Definition at line 244 of file FSimTrack.h.
Referenced by hcalEntrance(), and setHcal().
|
private |
Definition at line 246 of file FSimTrack.h.
Referenced by hcalExit(), and setHcalExit().
|
private |
Definition at line 236 of file FSimTrack.h.
Referenced by outHcal(), and setHcalExit().
|
private |
Definition at line 247 of file FSimTrack.h.
Referenced by hoEntrance(), and setHO().
|
private |
Definition at line 237 of file FSimTrack.h.
|
private |
Definition at line 226 of file FSimTrack.h.
Referenced by id().
|
private |
Definition at line 252 of file FSimTrack.h.
Referenced by FSimTrack(), and particleInfo().
|
private |
Definition at line 258 of file FSimTrack.h.
Referenced by isGlobal(), and setGlobal().
|
private |
Definition at line 231 of file FSimTrack.h.
Referenced by onLayer1(), and setLayer1().
|
private |
Definition at line 241 of file FSimTrack.h.
Referenced by layer1Entrance(), and setLayer1().
|
private |
Definition at line 232 of file FSimTrack.h.
Referenced by onLayer2(), and setLayer2().
|
private |
Definition at line 242 of file FSimTrack.h.
Referenced by layer2Entrance(), and setLayer2().
|
private |
Definition at line 224 of file FSimTrack.h.
Referenced by FSimTrack().
|
private |
Definition at line 254 of file FSimTrack.h.
Referenced by momentum(), and setMomentum().
|
private |
Definition at line 239 of file FSimTrack.h.
Referenced by propagated(), and setPropagate().
|
private |
Definition at line 256 of file FSimTrack.h.
Referenced by decayTime().
|
private |
Definition at line 222 of file FSimTrack.h.
Referenced by setOriginVertex().
|
private |
Definition at line 235 of file FSimTrack.h.
Referenced by onVFcal(), and setVFcal().
|
private |
Definition at line 245 of file FSimTrack.h.
Referenced by setVFcal(), and vfcalEntrance().