#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=0) |
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 30 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 68 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 721 of file FBaseSimEvent.cc.
References 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 342 of file FBaseSimEvent.cc.
References funct::abs(), addSimTrack(), addSimVertex(), FSimVertexType::DECAY_VERTEX, alignCSCRings::e, GenParticle::GenParticle, lateVertexPosition, nGenParticles, nGenParts(), hltrates_dqm_sourceclient-live_cfg::offset, AlCaHLTBitMon_ParallelJobs::p, position, FSimVertexType::PRIMARY_VERTEX, HLT_25ns10e33_v2_cff::primaryVertex, theGenParticles, theGenSize, and vertex().
Referenced by fill().
int FBaseSimEvent::addSimTrack | ( | const RawParticle * | p, |
int | iv, | ||
int | ig = -1 , |
||
const HepMC::GenVertex * | ev = 0 |
||
) |
Add a new track to the Event and to the various lists.
Definition at line 533 of file FBaseSimEvent.cc.
References FSimVertex::addDaughter(), FSimTrack::addDaughter(), SimTrack::genpartIndex(), RawParticle::momentum(), nSimTracks, RawParticle::PDGmass(), mathSSE::sqrt(), RawParticle::t(), theSimTracks, 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 573 of file FBaseSimEvent.cc.
References nSimVertices, FSimTrack::setEndVertex(), theFSimVerticesType, theSimVertices, theVertexSize, and track().
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 731 of file FBaseSimEvent.cc.
References nChargedParticleTracks, and theChargedTracks.
void FBaseSimEvent::clear | ( | void | ) |
clear the FBaseSimEvent content before the next event
Definition at line 711 of file FBaseSimEvent.cc.
References nChargedParticleTracks, nGenParticles, nSimTracks, and nSimVertices.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), fill(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
const HepMC::GenParticle * FBaseSimEvent::embdGenpart | ( | int | i | ) | const |
return MC track with a given id
Definition at line 751 of file FBaseSimEvent.cc.
References 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 95 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 106 of file FBaseSimEvent.cc.
References funct::abs(), addSimTrack(), addSimVertex(), FSimTrack::charge(), clear(), RawParticle::cos2ThetaV(), SimTrack::genpartIndex(), BaseParticlePropagator::getSuccess(), lateVertexPosition, CoreSimTrack::momentum(), FSimTrack::momentum(), SimVertex::noParent(), FSimTrack::notYetToEndVertex(), nTracks(), SimVertex::parentIndex(), CoreSimVertex::position(), FSimVertex::position(), position, FSimVertexType::PRIMARY_VERTEX, HLT_25ns10e33_v2_cff::primaryVertex, BaseParticlePropagator::propagateToEcalEntrance(), BaseParticlePropagator::propagateToHcalEntrance(), BaseParticlePropagator::propagateToHcalExit(), BaseParticlePropagator::propagateToHOLayer(), BaseParticlePropagator::propagateToPreshowerLayer1(), BaseParticlePropagator::propagateToPreshowerLayer2(), BaseParticlePropagator::propagateToVFcalEntrance(), RawParticle::setCharge(), FSimTrack::setEcal(), FSimTrack::setHcal(), FSimTrack::setHcalExit(), FSimTrack::setHO(), FSimTrack::setLayer1(), FSimTrack::setLayer2(), BaseParticlePropagator::setMagneticField(), FSimTrack::setVFcal(), lumiQTWidget::t, track(), SimTrack::trackerSurfaceMomentum(), SimTrack::trackerSurfacePosition(), CoreSimTrack::type(), FSimTrack::vertex(), vertex(), RawParticle::vertex(), SimTrack::vertIndex(), x, y, and z.
|
inline |
Definition at line 135 of file FBaseSimEvent.h.
References myFilter.
Referenced by Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filter(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), TrajectoryManager::reconstruct(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setDataAccessor(), and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView().
|
inlineprotected |
The pointer to the vector of GenParticle's.
Definition at line 150 of file FBaseSimEvent.h.
References theGenParticles.
void FBaseSimEvent::initializePdt | ( | const HepPDT::ParticleDataTable * | aPdt | ) |
Initialize the particle data table.
Definition at line 88 of file FBaseSimEvent.cc.
References pdt.
Referenced by FamosManager::setupGeometryAndField().
|
inline |
Number of "reconstructed" charged tracks.
Definition at line 99 of file FBaseSimEvent.h.
References nChargedParticleTracks.
|
inline |
Number of generator particles.
Definition at line 94 of file FBaseSimEvent.h.
References nGenParticles.
Referenced by addParticles(), and FSimEvent::nGenParts().
|
inline |
Number of tracks.
Definition at line 84 of file FBaseSimEvent.h.
References nSimTracks.
Referenced by fill(), FSimEvent::nTracks(), and print().
|
inline |
Number of vertices.
Definition at line 89 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 694 of file FBaseSimEvent.cc.
References gather_cfg::cout, i, nTracks(), nVertices(), track(), and vertexType().
Referenced by CalorimetryManager::reconstruct().
void FBaseSimEvent::printMCTruth | ( | const HepMC::GenEvent & | hev | ) |
print the original MCTruth event
Definition at line 599 of file FBaseSimEvent.cc.
References gather_cfg::cout, eta, GenParticle::GenParticle, relval_2017::k, mergeVDriftHistosByStation::name, AlCaHLTBitMon_ParallelJobs::p, pdt, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Get the pointer to the particle data table.
Definition at line 57 of file FBaseSimEvent.h.
References pdt.
Referenced by FSimTrack::FSimTrack(), and FamosProducer::produce().
|
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 140 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 145 of file FBaseSimEvent.h.
References theSimVertices.
|
private |
Definition at line 172 of file FBaseSimEvent.h.
Referenced by FBaseSimEvent().
|
private |
Definition at line 183 of file FBaseSimEvent.h.
Referenced by addParticles(), FBaseSimEvent(), and fill().
|
private |
The particle filter.
Definition at line 175 of file FBaseSimEvent.h.
Referenced by filter(), and ~FBaseSimEvent().
|
private |
Definition at line 166 of file FBaseSimEvent.h.
Referenced by addChargedTrack(), chargedTrack(), clear(), and nChargedTracks().
|
private |
Definition at line 165 of file FBaseSimEvent.h.
Referenced by addParticles(), clear(), and nGenParts().
|
private |
Definition at line 163 of file FBaseSimEvent.h.
Referenced by addSimTrack(), clear(), and nTracks().
|
private |
Definition at line 164 of file FBaseSimEvent.h.
Referenced by addSimVertex(), clear(), and nVertices().
|
private |
Definition at line 181 of file FBaseSimEvent.h.
Referenced by initializePdt(), printMCTruth(), and theTable().
|
private |
Definition at line 177 of file FBaseSimEvent.h.
|
private |
Definition at line 178 of file FBaseSimEvent.h.
|
private |
Definition at line 179 of file FBaseSimEvent.h.
|
private |
Definition at line 171 of file FBaseSimEvent.h.
Referenced by addChargedTrack(), and FBaseSimEvent().
|
private |
Definition at line 161 of file FBaseSimEvent.h.
Referenced by addChargedTrack(), chargedTrack(), FBaseSimEvent(), and ~FBaseSimEvent().
|
private |
Definition at line 158 of file FBaseSimEvent.h.
Referenced by addSimVertex(), FBaseSimEvent(), and ~FBaseSimEvent().
|
private |
Definition at line 159 of file FBaseSimEvent.h.
Referenced by addParticles(), embdGenpart(), FBaseSimEvent(), genparts(), and ~FBaseSimEvent().
|
private |
Definition at line 170 of file FBaseSimEvent.h.
Referenced by addParticles(), and FBaseSimEvent().
|
private |
Definition at line 156 of file FBaseSimEvent.h.
Referenced by addSimTrack(), FBaseSimEvent(), tracks(), and ~FBaseSimEvent().
|
private |
Definition at line 157 of file FBaseSimEvent.h.
Referenced by addSimVertex(), FBaseSimEvent(), vertices(), and ~FBaseSimEvent().
|
private |
Definition at line 168 of file FBaseSimEvent.h.
Referenced by addSimTrack(), and FBaseSimEvent().
|
private |
Definition at line 169 of file FBaseSimEvent.h.
Referenced by addSimVertex(), and FBaseSimEvent().