|
| TrackingParticleCategoriesAnalyzer (const edm::ParameterSet &) |
|
| ~TrackingParticleCategoriesAnalyzer () |
|
| EDAnalyzer ()=default |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDAnalyzerBase () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
TrackingParticleCategoriesAnalyzer::TrackingParticleCategoriesAnalyzer |
( |
const edm::ParameterSet & |
config | ) |
|
|
explicit |
Definition at line 49 of file TrackingParticleCategoriesAnalyser.cc.
References createBeamHaloJobs::directory, edm::ParameterSet::getUntrackedParameter(), i, TFileService::make(), TFileService::mkdir(), TrackCategories::Names, numberTrackingParticleCategories_, trackingParticleCategories_, trackingTruth_, and TrackCategories::Unknown.
55 usesResource(
"TFileService");
67 "Frequency for the different track categories",
70 numberTrackingParticleCategories_ - 0.5
T getUntrackedParameter(std::string const &, T const &) const
TH1F * trackingParticleCategories_
static const char *const Names[]
Name of the different categories.
T * make(const Args &...args) const
make new ROOT object
Int_t numberTrackingParticleCategories_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::EDGetTokenT< TrackingParticleCollection > trackingTruth_
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
TrackClassifier classifier_
TrackingParticleCategoriesAnalyzer::~TrackingParticleCategoriesAnalyzer |
( |
| ) |
|
Implements edm::one::EDAnalyzerBase.
Definition at line 82 of file TrackingParticleCategoriesAnalyser.cc.
References classifier_, TrackClassifier::evaluate(), i, cmsHarvester::index, TrackCategories::is(), TrackClassifier::newEvent(), numberTrackingParticleCategories_, ecalTPGAnalyzer_cfg::TPCollection, trackingParticleCategories_, and trackingTruth_.
TH1F * trackingParticleCategories_
Int_t numberTrackingParticleCategories_
TrackClassifier const & evaluate(reco::TrackBaseRef const &)
Classify the RecoTrack in categories.
void newEvent(edm::Event const &, edm::EventSetup const &)
Pre-process event information (for accessing reconstraction information)
edm::EDGetTokenT< TrackingParticleCollection > trackingTruth_
bool is(Category category) const
Returns track flag for a given category.
TrackClassifier classifier_
Category
Categories available to vertex.
Int_t TrackingParticleCategoriesAnalyzer::numberTrackingParticleCategories_ |
|
private |
std::size_t TrackingParticleCategoriesAnalyzer::totalTrakingParticles_ |
|
private |
TH1F* TrackingParticleCategoriesAnalyzer::trackingParticleCategories_ |
|
private |