#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 719 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 342 of file FBaseSimEvent.cc.
References funct::abs(), addSimTrack(), addSimVertex(), FSimVertexType::DECAY_VERTEX, MillePedeFileConverter_cfg::e, GenParticle::GenParticle, lateVertexPosition, objects.autophobj::motherId, nGenParticles, nGenParts(), PFRecoTauDiscriminationByIsolation_cfi::offset, AlCaHLTBitMon_ParallelJobs::p, position, FSimVertexType::PRIMARY_VERTEX, impactParameterTagInfos_cfi::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 531 of file FBaseSimEvent.cc.
References FSimVertex::addDaughter(), FSimTrack::addDaughter(), SimTrack::genpartIndex(), RawParticle::momentum(), objects.autophobj::motherId, nSimTracks, class-composition::parent, 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 571 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 729 of file FBaseSimEvent.cc.
References GenParticle::GenParticle, triggerObjects_cff::id, nChargedParticleTracks, and theChargedTracks.
void FBaseSimEvent::clear | ( | void | ) |
clear the FBaseSimEvent content before the next event
Definition at line 709 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 737 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 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(), TrackValidation_cff::association, FSimTrack::charge(), clear(), RawParticle::cos2ThetaV(), SimTrack::genpartIndex(), BaseParticlePropagator::getSuccess(), createfilelist::int, lateVertexPosition, CoreSimTrack::momentum(), FSimTrack::momentum(), objects.autophobj::motherId, SimVertex::noParent(), FSimTrack::notYetToEndVertex(), nTracks(), SimVertex::parentIndex(), CoreSimVertex::position(), FSimVertex::position(), position, FSimVertexType::PRIMARY_VERTEX, impactParameterTagInfos_cfi::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.
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.
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 FSimVertexType::ANY, ev, GenParticle::GenParticle, mps_fire::i, AlCaHLTBitMon_ParallelJobs::p, and HiIsolationCommonParameters_cff::track.
|
inline |
Number of generator particles.
Definition at line 94 of file FBaseSimEvent.h.
Referenced by addParticles(), and FSimEvent::nGenParts().
|
inline |
Number of tracks.
Definition at line 84 of file FBaseSimEvent.h.
Referenced by fill(), FSimEvent::nTracks(), and print().
|
inline |
Number of vertices.
Definition at line 89 of file FBaseSimEvent.h.
Referenced by FSimEvent::nVertices(), and print().
void FBaseSimEvent::print | ( | void | ) | const |
print the FBaseSimEvent in an intelligible way
Definition at line 692 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 597 of file FBaseSimEvent.cc.
References class-composition::children, gather_cfg::cout, PVValHelper::eta, alignBH_cfg::fixed, GenParticle::GenParticle, triggerObjects_cff::id, gen::k, dataset::name, nullptr, AlCaHLTBitMon_ParallelJobs::p, source_particleGun_cfi::ParticleID, pdt, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Get the pointer to the particle data table.
Definition at line 57 of file FBaseSimEvent.h.
References hitfit::clear(), lumiContext::fill, and edm::print().
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 |
|
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.
|
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 ~FBaseSimEvent().
|
private |
Definition at line 166 of file FBaseSimEvent.h.
Referenced by addChargedTrack(), chargedTrack(), and clear().
|
private |
Definition at line 165 of file FBaseSimEvent.h.
Referenced by addParticles(), and clear().
|
private |
Definition at line 163 of file FBaseSimEvent.h.
Referenced by addSimTrack(), and clear().
|
private |
Definition at line 164 of file FBaseSimEvent.h.
Referenced by addSimVertex(), and clear().
|
private |
Definition at line 181 of file FBaseSimEvent.h.
Referenced by initializePdt(), and printMCTruth().
|
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(), 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(), and ~FBaseSimEvent().
|
private |
Definition at line 157 of file FBaseSimEvent.h.
Referenced by addSimVertex(), FBaseSimEvent(), 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().