|
| 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 55 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_.
168 for (
size_t k = 0; k <
nCats_; ++
k) {
188 vars_.push_back(0.0);
200 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
const edm::EDGetToken src_
const edm::EDGetToken verticesMiniAOD_
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_
const edm::EDGetToken pileupMiniAOD_
std::vector< int > mvaPasses_
const std::vector< std::string > valMapTags_
std::vector< float > mvaValues_
std::vector< edm::EDGetTokenT< edm::ValueMap< int > > > mvaCatTokens_
const edm::EDGetToken pileup_
const edm::EDGetToken srcMiniAOD_
const edm::EDGetToken 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 221 of file PhotonMVANtuplizer.cc.
References edm::EventID::event(), genNpu_, edm::Event::getByToken(), edm::EventBase::id(), createfilelist::int, isMC_, edm::HandleBase::isValid(), gen::k, edm::EventBase::luminosityBlock(), mvaCats_, mvaCatTokens_, mvaPasses_, mvaValues_, nCats_, nEvent_, nLumi_, nPhoMaps_, nRun_, nValMaps_, phoMapTokens_, ElectronMVANtuplizer_cfg::pileup, pileup_, pileupMiniAOD_, ptThreshold_, muons2muons_cfi::pu, edm::EventID::run(), TrackRefitter_38T_cff::src, src_, srcMiniAOD_, tree_, valMapTokens_, MuonErrorMatrixValues_cff::values, electrons_cff::vertices, vertices_, verticesMiniAOD_, and vtxN_.
236 <<
" failed to find a standard AOD or miniAOD vertex collection " << std::endl;
239 vtxN_ = vertices->size();
248 <<
" failed to find a standard AOD or miniAOD pileup collection " << std::endl;
253 for(
const auto&
pu : *pileup)
255 int bx =
pu.getBunchCrossing();
274 <<
" failed to find a standard AOD or miniAOD particle collection " << std::endl;
295 int nPho = src->size();
297 for(
int iPho = 0; iPho < nPho; ++iPho) {
299 const auto pho = src->ptrAt(iPho);
EventNumber_t event() const
const double ptThreshold_
const edm::EDGetToken src_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::EDGetToken verticesMiniAOD_
edm::LuminosityBlockNumber_t luminosityBlock() const
std::vector< int > mvaCats_
const edm::EDGetToken pileupMiniAOD_
std::vector< int > mvaPasses_
std::vector< float > mvaValues_
std::vector< edm::EDGetTokenT< edm::ValueMap< int > > > mvaCatTokens_
const edm::EDGetToken pileup_
const edm::EDGetToken srcMiniAOD_
const edm::EDGetToken vertices_
std::vector< edm::EDGetTokenT< edm::ValueMap< bool > > > phoMapTokens_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > valMapTokens_