|
| VertexHistoryAnalyzer (const edm::ParameterSet &) |
|
| 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 34 of file VertexHistoryAnalyzer.cc.
◆ VertexHistoryAnalyzer()
◆ analyze()
Implements edm::one::EDAnalyzerBase.
Definition at line 67 of file VertexHistoryAnalyzer.cc.
80 std::cout << std::endl <<
"History for vertex #" <<
index <<
" : " << std::endl;
88 for (std::size_t hindex = 0; hindex < simParticles.size(); hindex++) {
97 if (!simVertexes.empty()) {
98 for (std::size_t hindex = 0; hindex < simVertexes.size(); hindex++) {
99 std::cout <<
" simVertex [" << hindex <<
"] : "
100 <<
vertexString(simVertexes[hindex]->sourceTracks(), simVertexes[hindex]->daughterTracks())
104 std::cout <<
" simVertex no found" << std::endl;
110 for (std::size_t hindex = 0; hindex <
genParticles.size(); hindex++) {
119 if (!genVertexes.empty()) {
120 for (std::size_t hindex = 0; hindex < genVertexes.size(); hindex++) {
121 std::cout <<
" genVertex [" << hindex <<
"] : "
122 <<
vertexString(genVertexes[hindex]->particles_in_const_begin(),
123 genVertexes[hindex]->particles_in_const_end(),
124 genVertexes[hindex]->particles_out_const_begin(),
125 genVertexes[hindex]->particles_out_const_end())
129 std::cout <<
" genVertex no found" << std::endl;
131 std::cout <<
" fake vertex" << std::endl;
References classifier_, gather_cfg::cout, VertexClassifier::evaluate(), VertexCategories::Fake, genParticles2HepMC_cfi::genParticles, HistoryBase::genParticleTrail(), HistoryBase::genVertexTrail(), VertexClassifier::history(), VertexCategories::is(), VertexClassifier::newEvent(), particleString(), HiggsValidation_cfi::pdg_id, EgammaValidation_cff::pdgId, singleTopDQM_cfi::setup, HistoryBase::simParticleTrail(), HistoryBase::simVertexTrail(), spclusmultinvestigator_cfi::vertexCollection, vertexProducer_, and vertexString().
◆ beginJob()
void VertexHistoryAnalyzer::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ beginRun()
◆ particleString()
std::string VertexHistoryAnalyzer::particleString |
( |
int |
pdgId | ) |
const |
|
private |
◆ vertexString() [1/2]
◆ vertexString() [2/2]
std::string VertexHistoryAnalyzer::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_
◆ vertexProducer_
std::vector< TrackingParticleRef > SimParticleTrail
SimParticle trail type.
std::vector< const HepMC::GenParticle * > GenParticleTrail
HepMC::GenParticle trail type.
HepPDT::ParticleData ParticleData
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.
This class traces the simulated and generated history of a given track.
std::string particleString(int) const
edm::InputTag vertexProducer_
const SimParticleTrail & simParticleTrail() const
Return all the simulated particle in the history.
std::string vertexString(const TrackingParticleRefVector &, const TrackingParticleRefVector &) const
VertexClassifier classifier_
edm::ESHandle< ParticleDataTable > pdt_
std::vector< TrackingVertexRef > SimVertexTrail
SimVertex trail type.