|
| PhotonMVANtuplizer (const edm::ParameterSet &) |
|
| ~PhotonMVANtuplizer () 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 const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
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 const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Description: Ntuplizer to use for testing photon MVA IDs.
Implementation: [Notes on implementation]
Definition at line 56 of file PhotonMVANtuplizer.cc.
Definition at line 130 of file PhotonMVANtuplizer.cc.
References edm::EDConsumerBase::consumes(), genNpu_, mps_fire::i, isMC_, gen::k, TFileService::kSharedResource, TFileService::make(), mvaCatBranchNames_, mvaCats_, mvaCatTags_, mvaCatTokens_, mvaPasses_, mvaValues_, nCats_, nEvent_, nLumi_, nPhoMaps_, nRun_, nValMaps_, nVars_, phoMapBranchNames_, phoMapTags_, phoMapTokens_, tree_, valMapBranchNames_, valMapTags_, valMapTokens_, vars_, and vtxN_.
164 for (
size_t k = 0; k <
nCats_; ++
k) {
184 vars_.push_back(0.0);
196 for (
size_t k = 0; k <
nCats_; ++
k) {
static const std::string kSharedResource
T getParameter(std::string const &) const
const double ptThreshold_
T getUntrackedParameter(std::string const &, T const &) const
MultiTokenT< std::vector< PileupSummaryInfo > > pileup_
MultiTokenT< edm::View< reco::Photon > > src_
T * make(const Args &...args) const
make new ROOT object
const std::vector< std::string > valMapBranchNames_
std::vector< int > mvaCats_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const std::vector< std::string > phoMapTags_
std::vector< int > mvaPasses_
const std::vector< std::string > valMapTags_
std::vector< float > mvaValues_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::vector< edm::EDGetTokenT< edm::ValueMap< int > > > mvaCatTokens_
MultiTokenT< std::vector< reco::Vertex > > vertices_
std::vector< edm::EDGetTokenT< edm::ValueMap< bool > > > phoMapTokens_
const std::vector< std::string > mvaCatBranchNames_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > valMapTokens_
const std::vector< std::string > phoMapBranchNames_
std::vector< float > vars_
const std::vector< std::string > mvaCatTags_
Definition at line 217 of file PhotonMVANtuplizer.cc.
References edm::EventID::event(), genNpu_, edm::Event::getByToken(), MultiTokenT< T >::getValidHandle(), edm::EventBase::id(), createfilelist::int, isMC_, gen::k, edm::EventBase::luminosityBlock(), mvaCats_, mvaCatTokens_, mvaPasses_, mvaValues_, nCats_, nEvent_, nLumi_, nPhoMaps_, nRun_, nValMaps_, phoMapTokens_, ElectronMVANtuplizer_cfg::pileup, pileup_, ptThreshold_, muons2muons_cfi::pu, edm::EventID::run(), TrackRefitter_38T_cff::src, src_, tree_, valMapTokens_, MuonErrorMatrixValues_cff::values, electrons_cff::vertices, vertices_, and vtxN_.
235 int bx =
pu.getBunchCrossing();
262 int nPho =
src->size();
264 for(
int iPho = 0; iPho < nPho; ++iPho) {
266 const auto pho =
src->ptrAt(iPho);
EventNumber_t event() const
const double ptThreshold_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MultiTokenT< std::vector< PileupSummaryInfo > > pileup_
MultiTokenT< edm::View< reco::Photon > > src_
edm::LuminosityBlockNumber_t luminosityBlock() const
std::vector< int > mvaCats_
std::vector< int > mvaPasses_
std::vector< float > mvaValues_
std::vector< edm::EDGetTokenT< edm::ValueMap< int > > > mvaCatTokens_
MultiTokenT< std::vector< reco::Vertex > > vertices_
edm::Handle< T > getValidHandle(const edm::Event &iEvent)
std::vector< edm::EDGetTokenT< edm::ValueMap< bool > > > phoMapTokens_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > valMapTokens_