|
| TrackHistoryAnalyzer (const edm::ParameterSet &) |
|
| ~TrackHistoryAnalyzer () override |
|
| EDAnalyzer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDAnalyzerBase () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzerBase | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Definition at line 35 of file TrackHistoryAnalyzer.cc.
◆ TrackHistoryAnalyzer()
◆ ~TrackHistoryAnalyzer()
TrackHistoryAnalyzer::~TrackHistoryAnalyzer |
( |
| ) |
|
|
override |
◆ analyze()
Implements edm::one::EDAnalyzerBase.
Definition at line 72 of file TrackHistoryAnalyzer.cc.
85 std::cout << std::endl <<
"History for track #" <<
index <<
" : " << std::endl;
93 for (std::size_t hindex = 0; hindex < simParticles.size(); hindex++) {
102 if (!simVertexes.empty()) {
103 for (std::size_t hindex = 0; hindex < simVertexes.size(); hindex++) {
104 std::cout <<
" simVertex [" << hindex <<
"] : "
105 <<
vertexString(simVertexes[hindex]->sourceTracks(), simVertexes[hindex]->daughterTracks())
109 std::cout <<
" simVertex no found" << std::endl;
115 for (std::size_t hindex = 0; hindex <
genParticles.size(); hindex++) {
124 if (!genVertexes.empty()) {
125 for (std::size_t hindex = 0; hindex < genVertexes.size(); hindex++) {
126 std::cout <<
" genVertex [" << hindex <<
"] : "
127 <<
vertexString(genVertexes[hindex]->particles_in_const_begin(),
128 genVertexes[hindex]->particles_in_const_end(),
129 genVertexes[hindex]->particles_out_const_begin(),
130 genVertexes[hindex]->particles_out_const_end())
134 std::cout <<
" genVertex no found" << std::endl;
References classifier_, gather_cfg::cout, TrackClassifier::evaluate(), TrackCategories::Fake, genParticles2HepMC_cfi::genParticles, HistoryBase::genParticleTrail(), HistoryBase::genVertexTrail(), TrackClassifier::history(), TrackCategories::is(), TrackClassifier::newEvent(), particleString(), HiggsValidation_cfi::pdg_id, EgammaValidation_cff::pdgId, singleTopDQM_cfi::setup, HistoryBase::simParticleTrail(), HistoryBase::simVertexTrail(), duplicaterechits_cfi::trackCollection, trackProducer_, and vertexString().
◆ beginJob()
void TrackHistoryAnalyzer::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ beginRun()
◆ particleString()
std::string TrackHistoryAnalyzer::particleString |
( |
int |
pdgId | ) |
const |
|
private |
◆ vertexString() [1/2]
◆ vertexString() [2/2]
std::string TrackHistoryAnalyzer::vertexString |
( |
HepMC::GenVertex::particles_in_const_iterator |
in_begin, |
|
|
HepMC::GenVertex::particles_in_const_iterator |
in_end, |
|
|
HepMC::GenVertex::particles_out_const_iterator |
out_begin, |
|
|
HepMC::GenVertex::particles_out_const_iterator |
out_end |
|
) |
| const |
|
private |
◆ classifier_
◆ pdt_
◆ totalTracks_
std::size_t TrackHistoryAnalyzer::totalTracks_ |
|
private |
◆ trackProducer_
std::vector< TrackingParticleRef > SimParticleTrail
SimParticle trail type.
std::vector< const HepMC::GenParticle * > GenParticleTrail
HepMC::GenParticle trail type.
TrackClassifier classifier_
HepPDT::ParticleData ParticleData
std::string particleString(int) const
const SimVertexTrail & simVertexTrail() const
Return all the simulated vertices in the history.
std::vector< const HepMC::GenVertex * > GenVertexTrail
GenVertex trail type.
const GenParticleTrail & genParticleTrail() const
Return all generated particle (HepMC::GenParticle) in the history.
const GenVertexTrail & genVertexTrail() const
Return all generated vertex in the history.
std::string vertexString(const TrackingParticleRefVector &, const TrackingParticleRefVector &) const
edm::ESHandle< ParticleDataTable > pdt_
const SimParticleTrail & simParticleTrail() const
Return all the simulated particle in the history.
This class traces the simulated and generated history of a given track.
edm::InputTag trackProducer_
std::vector< TrackingVertexRef > SimVertexTrail
SimVertex trail type.