|
void | analyze (const edm::Event &e, const edm::EventSetup &c) override |
|
void | beginJob () override |
|
void | endJob () override |
|
| SimplePi0DiscAnalyzer (const edm::ParameterSet &conf) |
|
| ~SimplePi0DiscAnalyzer () override |
|
| EDAnalyzer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () 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 |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (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 = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) noexcept |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
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) |
|
Description: Pi0Disc analyzer using reco data
Implementation: <Notes on="" implementation>="">
Definition at line 40 of file SimplePi0DiscAnalyzer.h.
Implements edm::one::EDAnalyzerBase.
Definition at line 120 of file SimplePi0DiscAnalyzer.cc.
122 std::cout <<
" -------------- NEW EVENT : Run, Event = " <<
iEvent.id() << std::endl;
131 iEvent.getByLabel(
"piZeroDiscriminators",
"PhotonPi0DiscriminatorAssociationMap",
map);
136 for (reco::PhotonCollection::const_iterator iPho =
photons.begin(); iPho !=
photons.end();
141 float Photon_et = localPho.et();
142 float Photon_eta = localPho.eta();
143 float Photon_phi = localPho.phi();
144 float Photon_r9 = localPho.r9();
145 bool isPhotConv = localPho.hasConversionTracks();
147 std::cout <<
"Photon Id = " << iPho -
photons.begin() <<
" with Et = " << Photon_et <<
" Eta = " << Photon_eta
148 <<
" Phi = " << Photon_phi <<
" R9 = " << Photon_r9 <<
" and conv_id = " << isPhotConv << std::endl;
157 if (mapIter !=
map->end()) {
160 if (fabs(it_super->eta()) <= 1.442) {
163 std::cout <<
"AssociationMap Barrel NN = " <<
nn << std::endl;
168 if (Photon_r9 > 0.93) {
172 }
else if ((fabs(it_super->eta()) >= 1.556 && fabs(it_super->eta()) < 1.65) || fabs(it_super->eta()) > 2.5) {
175 std::cout <<
"AssociationMap EndcNoPresh NN = " <<
nn << std::endl;
180 if (Photon_r9 > 0.93) {
184 }
else if (fabs(it_super->eta()) >= 1.65 && fabs(it_super->eta()) <= 2.5) {
187 std::cout <<
"AssociationMap EndcWithPresh NN = " <<
nn << std::endl;
192 if (Photon_r9 > 0.93) {
References gather_cfg::cout, reco::LeafCandidate::et(), reco::LeafCandidate::eta(), reco::Photon::hasConversionTracks(), iEvent, genParticles_cff::map, groupFilesInBlocks::nn, reco::LeafCandidate::phi(), BPHMonitor_cfi::photons, edm::Handle< T >::product(), reco::Photon::r9(), reco::Photon::superCluster(), and edm::helpers::KeyVal< K, V >::val.