#include <FBaseSimEvent.h>
Public Member Functions | |
void | addChargedTrack (int id) |
Add an id in the vector of charged tracks id's. More... | |
void | addParticles (const HepMC::GenEvent &hev) |
Add the particles and their vertices to the list. More... | |
int | addSimTrack (const RawParticle *p, int iv, int ig=-1, const HepMC::GenVertex *ev=nullptr) |
Add a new track to the Event and to the various lists. More... | |
int | addSimVertex (const XYZTLorentzVector &decayVertex, int im=-1, FSimVertexType::VertexType type=FSimVertexType::ANY) |
Add a new vertex to the Event and to the various lists. More... | |
int | chargedTrack (int id) const |
return "reconstructed" charged tracks index. More... | |
void | clear () |
clear the FBaseSimEvent content before the next event More... | |
const HepMC::GenParticle * | embdGenpart (int i) const |
return MC track with a given id More... | |
const SimTrack & | embdTrack (int i) const |
return embedded track with given id More... | |
const SimVertex & | embdVertex (int i) const |
return embedded vertex with given id More... | |
const FSimVertexType & | embdVertexType (int i) const |
return embedded vertex type with given id More... | |
FBaseSimEvent (const edm::ParameterSet &kine) | |
Default constructor. More... | |
void | fill (const HepMC::GenEvent &hev) |
fill the FBaseSimEvent from the current HepMC::GenEvent More... | |
void | fill (const std::vector< SimTrack > &, const std::vector< SimVertex > &) |
fill the FBaseSimEvent from SimTrack's and SimVert'ices More... | |
const KineParticleFilter & | filter () const |
void | initializePdt (const HepPDT::ParticleDataTable *aPdt) |
Initialize the particle data table. More... | |
unsigned int | nChargedTracks () const |
Number of "reconstructed" charged tracks. More... | |
unsigned int | nGenParts () const |
Number of generator particles. More... | |
unsigned int | nTracks () const |
Number of tracks. More... | |
unsigned int | nVertices () const |
Number of vertices. More... | |
void | print () const |
print the FBaseSimEvent in an intelligible way More... | |
void | printMCTruth (const HepMC::GenEvent &hev) |
print the original MCTruth event More... | |
const HepPDT::ParticleDataTable * | theTable () const |
Get the pointer to the particle data table. More... | |
FSimTrack & | track (int id) const |
Return track with given Id. More... | |
FSimVertex & | vertex (int id) const |
Return vertex with given Id. More... | |
FSimVertexType & | vertexType (int id) const |
Return vertex with given Id. More... | |
~FBaseSimEvent () | |
usual virtual destructor More... | |
Protected Member Functions | |
std::vector< HepMC::GenParticle * > * | genparts () const |
The pointer to the vector of GenParticle's. More... | |
std::vector< FSimTrack > * | tracks () const |
The pointer to the vector of FSimTrack's. More... | |
std::vector< FSimVertex > * | vertices () const |
The pointer to the vector of FSimVertex's. More... | |
Private Attributes | |
unsigned int | initialSize |
double | lateVertexPosition |
KineParticleFilter * | myFilter |
The particle filter. More... | |
unsigned int | nChargedParticleTracks |
unsigned int | nGenParticles |
unsigned int | nSimTracks |
unsigned int | nSimVertices |
const ParticleDataTable * | pdt |
double | sigmaVerteX |
double | sigmaVerteY |
double | sigmaVerteZ |
unsigned int | theChargedSize |
std::vector< unsigned > * | theChargedTracks |
FSimVertexTypeCollection * | theFSimVerticesType |
std::vector< HepMC::GenParticle * > * | theGenParticles |
unsigned int | theGenSize |
std::vector< FSimTrack > * | theSimTracks |
std::vector< FSimVertex > * | theSimVertices |
unsigned int | theTrackSize |
unsigned int | theVertexSize |
Definition at line 42 of file FBaseSimEvent.h.
FBaseSimEvent::FBaseSimEvent | ( | const edm::ParameterSet & | kine | ) |
Default constructor.
Definition at line 32 of file FBaseSimEvent.cc.
References initialSize, lateVertexPosition, theChargedSize, theChargedTracks, theFSimVerticesType, theGenParticles, theGenSize, theSimTracks, theSimVertices, theTrackSize, and theVertexSize.
FBaseSimEvent::~FBaseSimEvent | ( | ) |
usual virtual destructor
Definition at line 63 of file FBaseSimEvent.cc.
References myFilter, theChargedTracks, theFSimVerticesType, theGenParticles, theSimTracks, and theSimVertices.
void FBaseSimEvent::addChargedTrack | ( | int | id | ) |
Add an id in the vector of charged tracks id's.
Definition at line 651 of file FBaseSimEvent.cc.
References triggerObjects_cff::id, nChargedParticleTracks, theChargedSize, and theChargedTracks.
void FBaseSimEvent::addParticles | ( | const HepMC::GenEvent & | hev | ) |
Add the particles and their vertices to the list.
Some internal array to work with.
Definition at line 311 of file FBaseSimEvent.cc.
References funct::abs(), addSimTrack(), addSimVertex(), FSimVertexType::DECAY_VERTEX, MillePedeFileConverter_cfg::e, GenParticle::GenParticle, lateVertexPosition, makeParticle(), objects.autophobj::motherId, nGenParticles, nGenParts(), hltrates_dqm_sourceclient-live_cfg::offset, AlCaHLTBitMon_ParallelJobs::p, FSimVertex::position(), FSimVertexType::PRIMARY_VERTEX, BeamMonitor_cff::primaryVertex, theGenParticles, theGenSize, theTable(), and vertex().
Referenced by fill().
int FBaseSimEvent::addSimTrack | ( | const RawParticle * | p, |
int | iv, | ||
int | ig = -1 , |
||
const HepMC::GenVertex * | ev = nullptr |
||
) |
Add a new track to the Event and to the various lists.
Definition at line 484 of file FBaseSimEvent.cc.
References FSimVertex::addDaughter(), FSimTrack::addDaughter(), ev, SimTrack::genpartIndex(), pdg::mass(), objects.autophobj::motherId, nSimTracks, AlCaHLTBitMon_ParallelJobs::p, class-composition::parent, mathSSE::sqrt(), theSimTracks, theTable(), theTrackSize, track(), and vertex().
Referenced by addParticles(), fill(), MaterialEffects::interact(), and TrajectoryManager::updateWithDaughters().
int FBaseSimEvent::addSimVertex | ( | const XYZTLorentzVector & | decayVertex, |
int | im = -1 , |
||
FSimVertexType::VertexType | type = FSimVertexType::ANY |
||
) |
Add a new vertex to the Event and to the various lists.
Definition at line 526 of file FBaseSimEvent.cc.
References nSimVertices, FSimTrack::setEndVertex(), theFSimVerticesType, theSimVertices, theVertexSize, track(), and findQualityFiles::v.
Referenced by addParticles(), fill(), MaterialEffects::interact(), TrajectoryManager::reconstruct(), and TrajectoryManager::updateWithDaughters().
int FBaseSimEvent::chargedTrack | ( | int | id | ) | const |
return "reconstructed" charged tracks index.
Definition at line 659 of file FBaseSimEvent.cc.
References triggerObjects_cff::id, nChargedParticleTracks, and theChargedTracks.
void FBaseSimEvent::clear | ( | void | ) |
clear the FBaseSimEvent content before the next event
Definition at line 644 of file FBaseSimEvent.cc.
References nChargedParticleTracks, nGenParticles, nSimTracks, and nSimVertices.
Referenced by fill().
const HepMC::GenParticle * FBaseSimEvent::embdGenpart | ( | int | i | ) | const |
return MC track with a given id
Definition at line 666 of file FBaseSimEvent.cc.
References mps_fire::i, and theGenParticles.
|
inline |
return embedded track with given id
Referenced by FSimEvent::load().
|
inline |
return embedded vertex with given id
Referenced by FSimEvent::load().
|
inline |
return embedded vertex type with given id
Referenced by FSimEvent::load().
void FBaseSimEvent::fill | ( | const HepMC::GenEvent & | hev | ) |
fill the FBaseSimEvent from the current HepMC::GenEvent
Definition at line 82 of file FBaseSimEvent.cc.
References addParticles(), and clear().
Referenced by FSimEvent::fill().
void FBaseSimEvent::fill | ( | const std::vector< SimTrack > & | simTracks, |
const std::vector< SimVertex > & | simVertices | ||
) |
fill the FBaseSimEvent from SimTrack's and SimVert'ices
Definition at line 90 of file FBaseSimEvent.cc.
References funct::abs(), addSimTrack(), addSimVertex(), FSimTrack::charge(), clear(), RawParticle::cos2ThetaV(), SimTrack::genpartIndex(), BaseParticlePropagator::getSuccess(), createfilelist::int, lateVertexPosition, makeParticle(), FSimTrack::momentum(), objects.autophobj::motherId, SimVertex::noParent(), FSimTrack::notYetToEndVertex(), nTracks(), SimVertex::parentIndex(), BaseParticlePropagator::particle(), FSimVertex::position(), position, FSimVertexType::PRIMARY_VERTEX, BeamMonitor_cff::primaryVertex, BaseParticlePropagator::propagateToEcalEntrance(), BaseParticlePropagator::propagateToHcalEntrance(), BaseParticlePropagator::propagateToHcalExit(), BaseParticlePropagator::propagateToHOLayer(), BaseParticlePropagator::propagateToPreshowerLayer1(), BaseParticlePropagator::propagateToPreshowerLayer2(), BaseParticlePropagator::propagateToVFcalEntrance(), FSimTrack::setEcal(), FSimTrack::setHcal(), FSimTrack::setHcalExit(), FSimTrack::setHO(), FSimTrack::setLayer1(), FSimTrack::setLayer2(), BaseParticlePropagator::setMagneticField(), FSimTrack::setVFcal(), TrackCandidateProducer_cfi::simTracks, HGCalValidator_cfi::simVertices, submitPVValidationJobs::t, theTable(), track(), SimTrack::trackerSurfaceMomentum(), SimTrack::trackerSurfacePosition(), CoreSimTrack::type(), FSimTrack::vertex(), vertex(), RawParticle::vertex(), SimTrack::vertIndex(), x, y, and z.
|
inline |
Definition at line 121 of file FBaseSimEvent.h.
References myFilter.
Referenced by TrajectoryManager::reconstruct().
|
inlineprotected |
The pointer to the vector of GenParticle's.
Definition at line 131 of file FBaseSimEvent.h.
References theGenParticles.
void FBaseSimEvent::initializePdt | ( | const HepPDT::ParticleDataTable * | aPdt | ) |
Initialize the particle data table.
Definition at line 80 of file FBaseSimEvent.cc.
References pdt.
Referenced by FamosManager::setupGeometryAndField().
|
inline |
Number of "reconstructed" charged tracks.
Definition at line 87 of file FBaseSimEvent.h.
References nChargedParticleTracks.
|
inline |
Number of generator particles.
Definition at line 84 of file FBaseSimEvent.h.
References nGenParticles.
Referenced by addParticles(), and FSimEvent::nGenParts().
|
inline |
Number of tracks.
Definition at line 78 of file FBaseSimEvent.h.
References nSimTracks.
Referenced by fill(), FSimEvent::nTracks(), and print().
|
inline |
Number of vertices.
Definition at line 81 of file FBaseSimEvent.h.
References nSimVertices.
Referenced by FSimEvent::nVertices(), and print().
void FBaseSimEvent::print | ( | void | ) | const |
print the FBaseSimEvent in an intelligible way
Definition at line 632 of file FBaseSimEvent.cc.
References gather_cfg::cout, mps_fire::i, createfilelist::int, nTracks(), nVertices(), track(), and vertexType().
Referenced by CalorimetryManager::reconstruct().
void FBaseSimEvent::printMCTruth | ( | const HepMC::GenEvent & | hev | ) |
print the original MCTruth event
Definition at line 551 of file FBaseSimEvent.cc.
References class-composition::children, gather_cfg::cout, PVValHelper::eta, alignBH_cfg::fixed, GenParticle::GenParticle, triggerObjects_cff::id, dqmdumpme::k, Skims_PA_cff::name, AlCaHLTBitMon_ParallelJobs::p, LHEGenericFilter_cfi::ParticleID, pdt, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Get the pointer to the particle data table.
Definition at line 54 of file FBaseSimEvent.h.
References pdt.
Referenced by addParticles(), addSimTrack(), fill(), FSimTrack::FSimTrack(), CalorimetryManager::MuonMipSimulation(), and TrajectoryManager::reconstruct().
|
inline |
Return track with given Id.
Referenced by addSimTrack(), addSimVertex(), fill(), MaterialEffects::interact(), FSimEvent::load(), TrajectoryManager::makeSinglePSimHit(), TrajectoryManager::moveAllDaughters(), print(), TrajectoryManager::propagateToCalorimeters(), CalorimetryManager::reconstruct(), TrajectoryManager::reconstruct(), and TrajectoryManager::updateWithDaughters().
|
inlineprotected |
The pointer to the vector of FSimTrack's.
Definition at line 125 of file FBaseSimEvent.h.
References theSimTracks.
|
inline |
Return vertex with given Id.
Referenced by addParticles(), addSimTrack(), Tau.Tau::dxy(), fill(), and TrajectoryManager::updateWithDaughters().
|
inline |
Return vertex with given Id.
Referenced by print().
|
inlineprotected |
The pointer to the vector of FSimVertex's.
Definition at line 128 of file FBaseSimEvent.h.
References theSimVertices.
|
private |
Definition at line 150 of file FBaseSimEvent.h.
Referenced by FBaseSimEvent().
|
private |
Definition at line 161 of file FBaseSimEvent.h.
Referenced by addParticles(), FBaseSimEvent(), and fill().
|
private |
The particle filter.
Definition at line 153 of file FBaseSimEvent.h.
Referenced by filter(), and ~FBaseSimEvent().
|
private |
Definition at line 144 of file FBaseSimEvent.h.
Referenced by addChargedTrack(), chargedTrack(), clear(), and nChargedTracks().
|
private |
Definition at line 143 of file FBaseSimEvent.h.
Referenced by addParticles(), clear(), and nGenParts().
|
private |
Definition at line 141 of file FBaseSimEvent.h.
Referenced by addSimTrack(), clear(), and nTracks().
|
private |
Definition at line 142 of file FBaseSimEvent.h.
Referenced by addSimVertex(), clear(), and nVertices().
|
private |
Definition at line 159 of file FBaseSimEvent.h.
Referenced by initializePdt(), printMCTruth(), and theTable().
|
private |
Definition at line 155 of file FBaseSimEvent.h.
|
private |
Definition at line 156 of file FBaseSimEvent.h.
|
private |
Definition at line 157 of file FBaseSimEvent.h.
|
private |
Definition at line 149 of file FBaseSimEvent.h.
Referenced by addChargedTrack(), and FBaseSimEvent().
|
private |
Definition at line 139 of file FBaseSimEvent.h.
Referenced by addChargedTrack(), chargedTrack(), FBaseSimEvent(), and ~FBaseSimEvent().
|
private |
Definition at line 136 of file FBaseSimEvent.h.
Referenced by addSimVertex(), FBaseSimEvent(), and ~FBaseSimEvent().
|
private |
Definition at line 137 of file FBaseSimEvent.h.
Referenced by addParticles(), embdGenpart(), FBaseSimEvent(), genparts(), and ~FBaseSimEvent().
|
private |
Definition at line 148 of file FBaseSimEvent.h.
Referenced by addParticles(), and FBaseSimEvent().
|
private |
Definition at line 134 of file FBaseSimEvent.h.
Referenced by addSimTrack(), FBaseSimEvent(), tracks(), and ~FBaseSimEvent().
|
private |
Definition at line 135 of file FBaseSimEvent.h.
Referenced by addSimVertex(), FBaseSimEvent(), vertices(), and ~FBaseSimEvent().
|
private |
Definition at line 146 of file FBaseSimEvent.h.
Referenced by addSimTrack(), and FBaseSimEvent().
|
private |
Definition at line 147 of file FBaseSimEvent.h.
Referenced by addSimVertex(), and FBaseSimEvent().