Get track history and classify it in function of their . More...
#include <TrackClassifier.h>
Classes | |
struct | GeneratedPrimaryVertex |
Auxiliary class holding simulated primary vertices. More... | |
Public Member Functions | |
TrackClassifier const & | evaluate (reco::TrackBaseRef const &) |
Classify the RecoTrack in categories. More... | |
TrackClassifier const & | evaluate (TrackingParticleRef const &) |
Classify the TrackingParticle in categories. More... | |
TrackClassifier const & | evaluate (reco::TrackRef const &track) |
Classify the RecoTrack in categories. More... | |
TrackHistory const & | history () const |
Returns a reference to the track history used in the classification. More... | |
void | newEvent (edm::Event const &, edm::EventSetup const &) |
Pre-process event information (for accessing reconstraction information) More... | |
TrackQuality const & | quality () const |
Returns a reference to the track quality used in the classification. More... | |
TrackClassifier (edm::ParameterSet const &, edm::ConsumesCollector &&) | |
Constructor by ParameterSet. More... | |
Public Member Functions inherited from TrackCategories | |
const Flags & | flags () const |
Returns flags with the category descriptions. More... | |
bool | is (Category category) const |
Returns track flag for a given category. More... | |
TrackCategories () | |
Void constructor. More... | |
Private Member Functions | |
void | genPrimaryVertices () |
void | hadronFlavor () |
Get hadron flavor of the initial hadron. More... | |
bool | isCharged (const HepMC::GenParticle *) |
bool | isFinalstateParticle (const HepMC::GenParticle *) |
void | processesAtGenerator () |
Get all the information related to decay process. More... | |
void | processesAtSimulation () |
Get information about conversion and other interactions. More... | |
void | qualityInformation (reco::TrackBaseRef const &) |
Classify all the tracks by their reconstruction quality. More... | |
void | reconstructionInformation (reco::TrackBaseRef const &) |
void | simulationInformation () |
Get all the information related to the simulation details. More... | |
void | vertexInformation () |
Get geometrical information about the vertices. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from TrackCategories | |
static const char *const | Names [] |
Name of the different categories. More... | |
Protected Member Functions inherited from TrackCategories | |
void | reset () |
Reset the categories flags. More... | |
void | unknownTrack () |
Protected Attributes inherited from TrackCategories | |
Flags | flags_ |
Flag containers. More... | |
Get track history and classify it in function of their .
Definition at line 29 of file TrackClassifier.h.
Type to the associate category.
Definition at line 32 of file TrackClassifier.h.
TrackClassifier::TrackClassifier | ( | edm::ParameterSet const & | config, |
edm::ConsumesCollector && | collector | ||
) |
Constructor by ParameterSet.
Definition at line 15 of file TrackClassifier.cc.
References badPull_, beamSpotLabel_, HistoryBase::depth(), hepMCLabel_, longLivedDecayLength_, minTrackerSimHits_, numberOfInnerLayers_, tracer_, MuonClassifier_cff::vertexClusteringDistance, and vertexClusteringSqDistance_.
TrackClassifier const & TrackClassifier::evaluate | ( | reco::TrackBaseRef const & | track | ) |
Classify the RecoTrack in categories.
Definition at line 77 of file TrackClassifier.cc.
References TrackHistory::evaluate(), TrackCategories::Fake, TrackCategories::flags_, hadronFlavor(), processesAtGenerator(), processesAtSimulation(), qualityInformation(), reconstructionInformation(), TrackCategories::reset(), simulationInformation(), tracer_, HLT_2022v15_cff::track, TrackCategories::unknownTrack(), and vertexInformation().
Referenced by TrackCategoriesAnalyzer::analyze(), TrackingParticleCategoriesAnalyzer::analyze(), TrackHistoryAnalyzer::analyze(), BDHadronTrackMonitoringAnalyzer::analyze(), QualityCutsAnalyzer::LoopOverJetTracksAssociation(), and JetVetoedTracksAssociationDRVertex::produce().
TrackClassifier const & TrackClassifier::evaluate | ( | TrackingParticleRef const & | track | ) |
Classify the TrackingParticle in categories.
Definition at line 113 of file TrackClassifier.cc.
References TrackHistory::evaluate(), TrackCategories::flags_, hadronFlavor(), edm::RefToBase< T >::isNonnull(), processesAtGenerator(), processesAtSimulation(), qualityInformation(), TrackCategories::Reconstructed, reconstructionInformation(), TrackHistory::recoTrack(), TrackCategories::reset(), simulationInformation(), tracer_, HLT_2022v15_cff::track, TrackCategories::unknownTrack(), and vertexInformation().
|
inline |
Classify the RecoTrack in categories.
Definition at line 47 of file TrackClassifier.h.
References evaluate(), and HLT_2022v15_cff::track.
Referenced by evaluate().
|
private |
Definition at line 503 of file TrackClassifier.cc.
References funct::abs(), spr::find(), genpvs_, edm::HepMCProduct::GetEvent(), heavyIonCSV_trainingSettings::idx, isCharged(), isFinalstateParticle(), visualization-live-secondInstance_cfg::m, mcInformation_, parents, funct::pow(), MetAnalyzer::pv(), jetUpdater_cfi::sort, and vertexClusteringSqDistance_.
Referenced by newEvent().
|
private |
Get hadron flavor of the initial hadron.
Definition at line 236 of file TrackClassifier.cc.
References TrackCategories::Bottom, TrackCategories::Charm, TrackCategories::flags_, TrackCategories::Light, LHEGenericFilter_cfi::ParticleID, reco::LeafCandidate::pdgId(), HistoryBase::recoGenParticle(), and tracer_.
Referenced by evaluate().
|
inline |
Returns a reference to the track history used in the classification.
Definition at line 50 of file TrackClassifier.h.
References tracer_.
Referenced by TrackHistoryAnalyzer::analyze(), and BDHadronTrackMonitoringAnalyzer::analyze().
|
private |
Definition at line 493 of file TrackClassifier.cc.
References AlCaHLTBitMon_ParallelJobs::p, and particleDataTable_.
Referenced by genPrimaryVertices().
|
private |
Definition at line 491 of file TrackClassifier.cc.
References AlCaHLTBitMon_ParallelJobs::p.
Referenced by genPrimaryVertices().
void TrackClassifier::newEvent | ( | edm::Event const & | event, |
edm::EventSetup const & | setup | ||
) |
Pre-process event information (for accessing reconstraction information)
Definition at line 48 of file TrackClassifier.cc.
References beamSpot_, beamSpotLabel_, genPrimaryVertices(), hepMCLabel_, magneticField_, magneticFieldToken_, mcInformation_, TrackHistory::newEvent(), TrackQuality::newEvent(), particleDataTable_, particleDataTableToken_, quality_, singleTopDQM_cfi::setup, tracer_, transientTrackBuilder_, transientTrackBuilderToken_, tTopo_, and tTopoHandToken_.
Referenced by TrackCategoriesAnalyzer::analyze(), TrackingParticleCategoriesAnalyzer::analyze(), TrackHistoryAnalyzer::analyze(), QualityCutsAnalyzer::analyze(), BDHadronTrackMonitoringAnalyzer::analyze(), and JetVetoedTracksAssociatorAtVertex::produce().
|
private |
Get all the information related to decay process.
Definition at line 249 of file TrackClassifier.cc.
References funct::abs(), TrackCategories::BWeakDecay, TrackCategories::ChargeKaonDecay, TrackCategories::ChargePionDecay, TrackCategories::CWeakDecay, TrackCategories::DecayOnFlightMuon, TrackCategories::flags_, TrackCategories::FromBWeakDecayMuon, TrackCategories::FromChargeKaonMuon, TrackCategories::FromChargePionMuon, TrackCategories::FromCWeakDecayMuon, mps_fire::i, TrackCategories::JpsiDecay, TrackCategories::KsDecay, TrackCategories::LambdaDecay, TrackCategories::LongLivedDecay, longLivedDecayLength_, particleDataTable_, EgammaObjectsElectrons_cfi::particleID, LHEGenericFilter_cfi::ParticleID, EgammaValidation_cff::pdgid, HistoryBase::recoGenParticleTrail(), TrackCategories::SigmaMinusDecay, TrackCategories::SigmaPlusDecay, tracer_, update, and TrackCategories::XiDecay.
Referenced by evaluate().
|
private |
Get information about conversion and other interactions.
Definition at line 305 of file TrackClassifier.cc.
References funct::abs(), CMS::Annihilation, TrackCategories::AnnihilationProcess, TrackCategories::BWeakDecay, TrackCategories::ChargeKaonDecay, TrackCategories::ChargePionDecay, CMS::Compton, TrackCategories::ComptonProcess, CMS::Conversions, TrackCategories::ConversionsProcess, TrackCategories::CWeakDecay, CMS::Decay, TrackCategories::DecayOnFlightMuon, TrackCategories::DecayProcess, CMS::EBrem, TrackCategories::EBremProcess, CMS::EIoni, TrackCategories::EIoniProcess, RemoveAddSevLevel::flag, TrackCategories::flags_, TrackCategories::FromBWeakDecayMuon, TrackCategories::FromChargeKaonMuon, TrackCategories::FromChargePionMuon, TrackCategories::FromCWeakDecayMuon, g4toCMSProcMap_, CMS::Hadronic, TrackCategories::HadronicProcess, CMS::HIoni, TrackCategories::HIoniProcess, edm::Ref< C, T, F >::isNonnull(), TrackCategories::JpsiDecay, TrackCategories::KnownProcess, TrackCategories::KsDecay, TrackCategories::LambdaDecay, TrackCategories::LongLivedDecay, longLivedDecayLength_, CMS::MuBrem, TrackCategories::MuBremProcess, CMS::MuIoni, TrackCategories::MuIoniProcess, CMS::MuNucl, TrackCategories::MuNuclProcess, CMS::MuPairProd, TrackCategories::MuPairProdProcess, TrackCategories::OmegaDecay, particleDataTable_, EgammaObjectsElectrons_cfi::particleID, LHEGenericFilter_cfi::ParticleID, EgammaValidation_cff::pdgid, CMS::Photon, TrackCategories::PhotonProcess, CMS::Primary, TrackCategories::PrimaryProcess, LaserDQM_cfg::process, G4toCMSLegacyProcTypeMap::processId(), TrackCategories::SigmaMinusDecay, TrackCategories::SigmaPlusDecay, HistoryBase::simParticleTrail(), CMS::SynchrotronRadiation, TrackCategories::SynchrotronRadiationProcess, tracer_, CMS::Undefined, TrackCategories::UndefinedProcess, CMS::Unknown, TrackCategories::UnknownProcess, update, and TrackCategories::XiDecay.
Referenced by evaluate().
|
inline |
Returns a reference to the track quality used in the classification.
Definition at line 53 of file TrackClassifier.h.
References quality_.
|
private |
Classify all the tracks by their reconstruction quality.
Definition at line 213 of file TrackClassifier.cc.
References TrackCategories::BadInnerHits, TrackQuality::evaluate(), TrackCategories::flags_, mps_fire::i, dqmiolumiharvest::j, TrackQuality::layer(), pixelTopology::layer, pixelTopology::maxLayers, SiStripPI::min, TrackQuality::Layer::Misassoc, TrackQuality::Layer::Noise, numberOfInnerLayers_, TrackQuality::numberOfLayers(), quality_, TrackQuality::Layer::Shared, TrackCategories::SharedInnerHits, HistoryBase::simParticleTrail(), tracer_, HLT_2022v15_cff::track, and tTopo_.
Referenced by evaluate().
|
private |
Classify all the tracks by their association and reconstruction information
Definition at line 155 of file TrackClassifier.cc.
References funct::abs(), TrackCategories::Bad, badPull_, beamSpot_, funct::cos(), TrackCategories::flags_, magneticField_, CoreSimTrack::momentum(), FreeTrajectoryState::momentum(), AlCaHLTBitMon_ParallelJobs::p, FreeTrajectoryState::position(), edm::ESHandle< T >::product(), HistoryBase::simParticle(), funct::sin(), TrajectoryStateClosestToPoint::theState(), tracer_, HLT_2022v15_cff::track, findQualityFiles::v, reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
Referenced by evaluate().
|
private |
Get all the information related to the simulation details.
Definition at line 202 of file TrackClassifier.cc.
References funct::abs(), EncodedEventId::bunchCrossing(), EncodedEventId::event(), TrackCategories::flags_, createfilelist::int, minTrackerSimHits_, TrackCategories::Muon, TrackCategories::SignalEvent, HistoryBase::simParticle(), tracer_, and TrackCategories::TrackerSimHits.
Referenced by evaluate().
|
private |
Get geometrical information about the vertices.
Definition at line 415 of file TrackClassifier.cc.
References TrackCategories::flags_, HistoryBase::genParticleTrail(), genpvs_, AlCaHLTBitMon_ParallelJobs::p, class-composition::parent, funct::pow(), TrackCategories::PrimaryVertex, TrackCategories::SecondaryVertex, HistoryBase::simParticleTrail(), TrackCategories::TertiaryVertex, tracer_, vertexClusteringSqDistance_, TrackClassifier::GeneratedPrimaryVertex::x, TrackClassifier::GeneratedPrimaryVertex::y, and TrackClassifier::GeneratedPrimaryVertex::z.
Referenced by evaluate().
|
private |
Definition at line 59 of file TrackClassifier.h.
Referenced by reconstructionInformation(), and TrackClassifier().
|
private |
Definition at line 82 of file TrackClassifier.h.
Referenced by newEvent(), and reconstructionInformation().
|
private |
Definition at line 57 of file TrackClassifier.h.
Referenced by newEvent(), and TrackClassifier().
|
private |
Definition at line 69 of file TrackClassifier.h.
Referenced by processesAtSimulation().
|
private |
Definition at line 126 of file TrackClassifier.h.
Referenced by genPrimaryVertices(), and vertexInformation().
|
private |
Definition at line 56 of file TrackClassifier.h.
Referenced by newEvent(), and TrackClassifier().
|
private |
Definition at line 60 of file TrackClassifier.h.
Referenced by processesAtGenerator(), processesAtSimulation(), and TrackClassifier().
|
private |
Definition at line 71 of file TrackClassifier.h.
Referenced by newEvent(), and reconstructionInformation().
|
private |
Definition at line 72 of file TrackClassifier.h.
Referenced by newEvent().
|
private |
Definition at line 74 of file TrackClassifier.h.
Referenced by genPrimaryVertices(), and newEvent().
|
private |
Definition at line 63 of file TrackClassifier.h.
Referenced by simulationInformation(), and TrackClassifier().
|
private |
Definition at line 62 of file TrackClassifier.h.
Referenced by qualityInformation(), and TrackClassifier().
|
private |
Definition at line 76 of file TrackClassifier.h.
Referenced by isCharged(), newEvent(), processesAtGenerator(), and processesAtSimulation().
|
private |
Definition at line 77 of file TrackClassifier.h.
Referenced by newEvent().
|
private |
Definition at line 67 of file TrackClassifier.h.
Referenced by newEvent(), quality(), and qualityInformation().
|
private |
Definition at line 65 of file TrackClassifier.h.
Referenced by evaluate(), hadronFlavor(), history(), newEvent(), processesAtGenerator(), processesAtSimulation(), qualityInformation(), reconstructionInformation(), simulationInformation(), TrackClassifier(), and vertexInformation().
|
private |
Definition at line 79 of file TrackClassifier.h.
Referenced by newEvent().
|
private |
Definition at line 80 of file TrackClassifier.h.
Referenced by newEvent().
|
private |
Definition at line 84 of file TrackClassifier.h.
Referenced by newEvent(), and qualityInformation().
|
private |
Definition at line 85 of file TrackClassifier.h.
Referenced by newEvent().
|
private |
Definition at line 61 of file TrackClassifier.h.
Referenced by genPrimaryVertices(), TrackClassifier(), and vertexInformation().