CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
PhotonMVANtuplizer Class Reference

#include <RecoEgamma/PhotonIdentification/plugins/PhotonMVANtuplizer.cc>

Inheritance diagram for PhotonMVANtuplizer:
edm::one::EDAnalyzer< edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 PhotonMVANtuplizer (const edm::ParameterSet &)
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::SharedResources >
 EDAnalyzer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () 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
 
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 const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (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)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 

Private Attributes

const double deltaR_
 
const bool doEnergyMatrix_
 
const MultiTokenT< EcalRecHitCollectionebRecHits_
 
const MultiTokenT< EcalRecHitCollectioneeRecHits_
 
std::vector< float > energyMatrix_
 
const int energyMatrixSize_
 
double eta_
 
int genNpu_
 
const MultiTokenT< edm::View< reco::GenParticle > > genParticles_
 
const bool isMC_
 
int matchedGenIdx_
 
int matchedToGenPh_
 
const std::vector< std::string > mvaCatBranchNames_
 
std::vector< int > mvaCats_
 
const std::vector< std::string > mvaCatTags_
 
std::vector< edm::EDGetTokenT< edm::ValueMap< int > > > mvaCatTokens_
 
std::vector< int > mvaPasses_
 
std::vector< float > mvaValues_
 
MVAVariableManager< reco::PhotonmvaVarMngr_
 
const size_t nCats_
 
int nEvent_
 
int nLumi_
 
const size_t nPhoMaps_
 
int nRun_
 
const size_t nValMaps_
 
const int nVars_
 
const std::vector< std::string > phoMapBranchNames_
 
const std::vector< std::string > phoMapTags_
 
std::vector< edm::EDGetTokenT< edm::ValueMap< bool > > > phoMapTokens_
 
const MultiTokenT< std::vector< PileupSummaryInfo > > pileup_
 
double pT_
 
const double ptThreshold_
 
const MultiTokenT< edm::View< reco::Photon > > src_
 
TTree * tree_
 
const std::vector< std::string > valMapBranchNames_
 
const std::vector< std::string > valMapTags_
 
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > valMapTokens_
 
const MVAVariableHelper< reco::PhotonvariableHelper_
 
std::vector< float > vars_
 
const MultiTokenT< std::vector< reco::Vertex > > vertices_
 
int vtxN_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, 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)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Description: Ntuplizer to use for testing photon MVA IDs.

Implementation: [Notes on implementation]

Definition at line 45 of file PhotonMVANtuplizer.cc.

Constructor & Destructor Documentation

PhotonMVANtuplizer::PhotonMVANtuplizer ( const edm::ParameterSet iConfig)
explicit

Definition at line 159 of file PhotonMVANtuplizer.cc.

References edm::EDConsumerBase::consumes(), doEnergyMatrix_, energyMatrix_, eta_, genNpu_, MVAVariableManager< ParticleType >::getName(), mps_fire::i, isMC_, gen::k, TFileService::kSharedResource, TFileService::make(), matchedToGenPh_, mvaCatBranchNames_, mvaCats_, mvaCatTags_, mvaCatTokens_, mvaPasses_, mvaValues_, mvaVarMngr_, nCats_, nEvent_, nLumi_, nPhoMaps_, nRun_, nValMaps_, nVars_, phoMapBranchNames_, phoMapTags_, phoMapTokens_, pT_, GlobalPosition_Frontier_DevDB_cff::tag, tree_, valMapBranchNames_, valMapTags_, valMapTokens_, vars_, and vtxN_.

160  : phoMapTags_ (iConfig.getParameter<std::vector<std::string>>("phoMVAs"))
161  , phoMapBranchNames_ (iConfig.getParameter<std::vector<std::string>>("phoMVALabels"))
162  , nPhoMaps_ (phoMapBranchNames_.size())
163  , valMapTags_ (iConfig.getParameter<std::vector<std::string>>("phoMVAValMaps"))
164  , valMapBranchNames_ (iConfig.getParameter<std::vector<std::string>>("phoMVAValMapLabels"))
165  , nValMaps_ (valMapBranchNames_.size())
166  , mvaCatTags_ (iConfig.getParameter<std::vector<std::string>>("phoMVACats"))
167  , mvaCatBranchNames_ (iConfig.getParameter<std::vector<std::string>>("phoMVACatLabels"))
168  , nCats_ (mvaCatBranchNames_.size())
169  , isMC_ (iConfig.getParameter<bool>("isMC"))
170  , ptThreshold_ (iConfig.getParameter<double>("ptThreshold"))
171  , deltaR_ (iConfig.getParameter<double>("deltaR"))
172  , src_ (consumesCollector(), iConfig, "src" , "srcMiniAOD")
173  , vertices_ (src_, consumesCollector(), iConfig, "vertices", "verticesMiniAOD")
174  , pileup_ (src_, consumesCollector(), iConfig, "pileup" , "pileupMiniAOD")
175  , genParticles_ (src_, consumesCollector(), iConfig, "genParticles", "genParticlesMiniAOD")
176  , ebRecHits_ (src_, consumesCollector(), iConfig, "ebReducedRecHitCollection", "ebReducedRecHitCollectionMiniAOD")
177  , eeRecHits_ (src_, consumesCollector(), iConfig, "eeReducedRecHitCollection", "eeReducedRecHitCollectionMiniAOD")
180  , mvaCats_ (nCats_)
182  , mvaVarMngr_ (iConfig.getParameter<std::string>("variableDefinition"))
184  , vars_ (nVars_)
185  , doEnergyMatrix_ (iConfig.getParameter<bool>("doEnergyMatrix"))
186  , energyMatrixSize_ (iConfig.getParameter<int>("energyMatrixSize"))
187 {
188  // phoMaps
189  for (auto const& tag : phoMapTags_) {
191  }
192  // valMaps
193  for (auto const& tag : valMapTags_) {
195  }
196  // categories
197  for (auto const& tag : mvaCatTags_) {
199  }
200 
201  // Book tree
202  usesResource(TFileService::kSharedResource);
204  tree_ = fs->make<TTree>("tree","tree");
205 
206  tree_->Branch("nEvent", &nEvent_);
207  tree_->Branch("nRun", &nRun_);
208  tree_->Branch("nLumi", &nLumi_);
209  if (isMC_) {
210  tree_->Branch("genNpu", &genNpu_);
211  tree_->Branch("matchedToGenPh", &matchedToGenPh_);
212  }
213  tree_->Branch("vtxN", &vtxN_);
214  tree_->Branch("pT", &pT_);
215  tree_->Branch("eta", &eta_);
216 
217  if (doEnergyMatrix_) tree_->Branch("energyMatrix",&energyMatrix_);
218 
219  for (int i = 0; i < nVars_; ++i) {
220  tree_->Branch(mvaVarMngr_.getName(i).c_str(), &vars_[i]);
221  }
222 
223  // IDs
224  for (size_t k = 0; k < nValMaps_; ++k) {
225  tree_->Branch(valMapBranchNames_[k].c_str() , &mvaValues_[k]);
226  }
227 
228  for (size_t k = 0; k < nPhoMaps_; ++k) {
229  tree_->Branch(phoMapBranchNames_[k].c_str() , &mvaPasses_[k]);
230  }
231 
232  for (size_t k = 0; k < nCats_; ++k) {
233  tree_->Branch(mvaCatBranchNames_[k].c_str() , &mvaCats_[k]);
234  }
235 }
static const std::string kSharedResource
Definition: TFileService.h:76
T getParameter(std::string const &) const
const std::string & getName(int index) const
const MVAVariableHelper< reco::Photon > variableHelper_
MVAVariableManager< reco::Photon > mvaVarMngr_
const MultiTokenT< edm::View< reco::Photon > > src_
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
const MultiTokenT< EcalRecHitCollection > ebRecHits_
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_
const MultiTokenT< EcalRecHitCollection > eeRecHits_
const MultiTokenT< std::vector< reco::Vertex > > vertices_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::vector< edm::EDGetTokenT< edm::ValueMap< int > > > mvaCatTokens_
int k[5][pyjets_maxn]
std::vector< edm::EDGetTokenT< edm::ValueMap< bool > > > phoMapTokens_
const MultiTokenT< edm::View< reco::GenParticle > > genParticles_
const std::vector< std::string > mvaCatBranchNames_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > valMapTokens_
const MultiTokenT< std::vector< PileupSummaryInfo > > pileup_
const std::vector< std::string > phoMapBranchNames_
std::vector< float > energyMatrix_
std::vector< float > vars_
const std::vector< std::string > mvaCatTags_

Member Function Documentation

void PhotonMVANtuplizer::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 239 of file PhotonMVANtuplizer.cc.

References deltaR_, doEnergyMatrix_, ebRecHits_, eeRecHits_, energyMatrix_, energyMatrixSize_, eta_, edm::EventID::event(), genNpu_, GenHFHadronMatcher_cfi::genParticles, genParticles_, MVAVariableHelper< ParticleType >::getAuxVariables(), edm::Event::getByToken(), MultiTokenT< T >::getValidHandle(), MVAVariableManager< ParticleType >::getValue(), edm::EventBase::id(), iEvent, isMC_, gen::k, edm::EventBase::luminosityBlock(), matchedToGenPh_, mvaCats_, mvaCatTokens_, mvaValues_, mvaVarMngr_, nCats_, nEvent_, nLumi_, nPhoMaps_, nRun_, nValMaps_, nVars_, phoMapTokens_, estimatePileup_makeJSON::pileup, pileup_, pT_, ptThreshold_, muons2muons_cfi::pu, edm::EventID::run(), SurveyInfoScenario_cff::seed, TrackRefitter_38T_cff::src, src_, tree_, valMapTokens_, MuonErrorMatrixValues_cff::values, variableHelper_, vars_, electrons_cff::vertices, vertices_, and vtxN_.

240 {
241  // Fill global event info
242  nEvent_ = iEvent.id().event();
243  nRun_ = iEvent.id().run();
244  nLumi_ = iEvent.luminosityBlock();
245 
246  // Get Handles
247  auto src = src_.getValidHandle(iEvent);
248  auto vertices = vertices_.getValidHandle(iEvent);
249  auto pileup = pileup_.getValidHandle(iEvent);
251 
252  vtxN_ = vertices->size();
253 
254  // initialize cluster tools
255  std::unique_ptr<noZS::EcalClusterLazyTools> lazyTools;
256  if(doEnergyMatrix_) {
257  // Configure Lazy Tools, which will compute 5x5 quantities
258  lazyTools = std::make_unique<noZS::EcalClusterLazyTools>(
259  iEvent, iSetup, ebRecHits_.get(iEvent), eeRecHits_.get(iEvent));
260  }
261 
262  // Fill with true number of pileup
263  if(isMC_) {
264  for(const auto& pu : *pileup)
265  {
266  int bx = pu.getBunchCrossing();
267  if(bx == 0)
268  {
269  genNpu_ = pu.getPU_NumInteractions();
270  break;
271  }
272  }
273  }
274 
275  // Get MVA decisions
277  for (size_t k = 0; k < nPhoMaps_; ++k) {
278  iEvent.getByToken(phoMapTokens_[k],decisions[k]);
279  }
280 
281  // Get MVA values
283  for (size_t k = 0; k < nValMaps_; ++k) {
284  iEvent.getByToken(valMapTokens_[k],values[k]);
285  }
286 
287  // Get MVA categories
289  for (size_t k = 0; k < nCats_; ++k) {
290  iEvent.getByToken(mvaCatTokens_[k],mvaCats[k]);
291  }
292 
293  for(auto const& pho : src->ptrs())
294  {
295  if (pho->pt() < ptThreshold_) continue;
296 
297  pT_ = pho->pt();
298  eta_ = pho->eta();
299 
300  // Fill the energy matrix around the seed
301  if(doEnergyMatrix_) {
302  const auto& seed = *(pho->superCluster()->seed());
303  energyMatrix_ = lazyTools->energyMatrix(seed, energyMatrixSize_);
304  }
305 
306  // variables from the text file
307  for (int iVar = 0; iVar < nVars_; ++iVar) {
308  std::vector<float> extraVariables = variableHelper_.getAuxVariables(pho, iEvent);
309  vars_[iVar] = mvaVarMngr_.getValue(iVar, *pho, extraVariables);
310  }
311 
312  if (isMC_) matchedToGenPh_ = matchToTruth( *pho, *genParticles, deltaR_);
313 
314  //
315  // Look up and save the ID decisions
316  //
317  for (size_t k = 0; k < nPhoMaps_; ++k) mvaPasses_[k] = static_cast<int>((*decisions[k])[pho]);
318  for (size_t k = 0; k < nValMaps_; ++k) mvaValues_[k] = (*values[k])[pho];
319  for (size_t k = 0; k < nCats_ ; ++k) mvaCats_[k] = (*mvaCats[k])[pho];
320 
321  tree_->Fill();
322  }
323 
324 }
RunNumber_t run() const
Definition: EventID.h:39
EventNumber_t event() const
Definition: EventID.h:41
const MVAVariableHelper< reco::Photon > variableHelper_
MVAVariableManager< reco::Photon > mvaVarMngr_
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:61
const MultiTokenT< edm::View< reco::Photon > > src_
float getValue(int index, const ParticleType &particle, const std::vector< float > &auxVariables) const
const MultiTokenT< EcalRecHitCollection > ebRecHits_
std::vector< int > mvaCats_
int iEvent
Definition: GenABIO.cc:224
std::vector< float > mvaValues_
const MultiTokenT< EcalRecHitCollection > eeRecHits_
const MultiTokenT< std::vector< reco::Vertex > > vertices_
edm::Handle< T > getValidHandle(const edm::Event &iEvent) const
Definition: MultiToken.h:95
std::vector< edm::EDGetTokenT< edm::ValueMap< int > > > mvaCatTokens_
int k[5][pyjets_maxn]
const std::vector< float > getAuxVariables(edm::Ptr< ParticleType > const &particlePtr, const edm::Event &iEvent) const
std::vector< edm::EDGetTokenT< edm::ValueMap< bool > > > phoMapTokens_
const MultiTokenT< edm::View< reco::GenParticle > > genParticles_
edm::EventID id() const
Definition: EventBase.h:59
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > valMapTokens_
const MultiTokenT< std::vector< PileupSummaryInfo > > pileup_
std::vector< float > energyMatrix_
std::vector< float > vars_
void PhotonMVANtuplizer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 328 of file PhotonMVANtuplizer.cc.

References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), DEFINE_FWK_MODULE, and AlCaHLTBitMon_QueryRunRegistry::string.

329 {
331  desc.add<edm::InputTag>("src", edm::InputTag("gedPhotons"));
332  desc.add<edm::InputTag>("vertices", edm::InputTag("offlinePrimaryVertices"));
333  desc.add<edm::InputTag>("pileup", edm::InputTag("addPileupInfo"));
334  desc.add<edm::InputTag>("genParticles", edm::InputTag("genParticles"));
335  desc.add<edm::InputTag>("srcMiniAOD", edm::InputTag("slimmedPhotons"));
336  desc.add<edm::InputTag>("verticesMiniAOD", edm::InputTag("offlineSlimmedPrimaryVertices"));
337  desc.add<edm::InputTag>("pileupMiniAOD", edm::InputTag("slimmedAddPileupInfo"));
338  desc.add<edm::InputTag>("genParticlesMiniAOD", edm::InputTag("prunedGenParticles"));
339  desc.add<edm::InputTag>("ebReducedRecHitCollection", edm::InputTag("reducedEcalRecHitsEB"));
340  desc.add<edm::InputTag>("eeReducedRecHitCollection", edm::InputTag("reducedEcalRecHitsEE"));
341  desc.add<edm::InputTag>("ebReducedRecHitCollectionMiniAOD", edm::InputTag("reducedEgamma","reducedEBRecHits"));
342  desc.add<edm::InputTag>("eeReducedRecHitCollectionMiniAOD", edm::InputTag("reducedEgamma","reducedEERecHits"));
343  desc.add<std::vector<std::string>>("phoMVAs", {});
344  desc.add<std::vector<std::string>>("phoMVALabels", {});
345  desc.add<std::vector<std::string>>("phoMVAValMaps", {});
346  desc.add<std::vector<std::string>>("phoMVAValMapLabels", {});
347  desc.add<std::vector<std::string>>("phoMVACats", {});
348  desc.add<std::vector<std::string>>("phoMVACatLabels", {});
349  desc.add<bool>("doEnergyMatrix", false);
350  desc.add<int>("energyMatrixSize", 2)->setComment("extension of crystals in each direction away from the seed");
351  desc.add<bool>("isMC", true);
352  desc.add<double>("ptThreshold", 15.0);
353  desc.add<double>("deltaR", 0.1);
354  desc.add<std::string>("variableDefinition");
355  descriptions.addDefault(desc);
356 }
void addDefault(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)

Member Data Documentation

const double PhotonMVANtuplizer::deltaR_
private

Definition at line 94 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

const bool PhotonMVANtuplizer::doEnergyMatrix_
private

Definition at line 118 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const MultiTokenT<EcalRecHitCollection> PhotonMVANtuplizer::ebRecHits_
private

Definition at line 101 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

const MultiTokenT<EcalRecHitCollection> PhotonMVANtuplizer::eeRecHits_
private

Definition at line 102 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

std::vector<float> PhotonMVANtuplizer::energyMatrix_
private

Definition at line 68 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const int PhotonMVANtuplizer::energyMatrixSize_
private

Definition at line 119 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

double PhotonMVANtuplizer::eta_
private

Definition at line 67 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

int PhotonMVANtuplizer::genNpu_
private

Definition at line 63 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const MultiTokenT<edm::View<reco::GenParticle> > PhotonMVANtuplizer::genParticles_
private

Definition at line 100 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

const bool PhotonMVANtuplizer::isMC_
private

Definition at line 92 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

int PhotonMVANtuplizer::matchedGenIdx_
private

Definition at line 72 of file PhotonMVANtuplizer.cc.

int PhotonMVANtuplizer::matchedToGenPh_
private

Definition at line 71 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const std::vector< std::string > PhotonMVANtuplizer::mvaCatBranchNames_
private

Definition at line 88 of file PhotonMVANtuplizer.cc.

Referenced by PhotonMVANtuplizer().

std::vector<int> PhotonMVANtuplizer::mvaCats_
private

Definition at line 107 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const std::vector< std::string > PhotonMVANtuplizer::mvaCatTags_
private

Definition at line 86 of file PhotonMVANtuplizer.cc.

Referenced by PhotonMVANtuplizer().

std::vector< edm::EDGetTokenT<edm::ValueMap<int> > > PhotonMVANtuplizer::mvaCatTokens_
private

Definition at line 87 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

std::vector<int> PhotonMVANtuplizer::mvaPasses_
private

Definition at line 105 of file PhotonMVANtuplizer.cc.

Referenced by PhotonMVANtuplizer().

std::vector<float> PhotonMVANtuplizer::mvaValues_
private

Definition at line 106 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

MVAVariableManager<reco::Photon> PhotonMVANtuplizer::mvaVarMngr_
private

Definition at line 113 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const size_t PhotonMVANtuplizer::nCats_
private

Definition at line 89 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

int PhotonMVANtuplizer::nEvent_
private

Definition at line 62 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

int PhotonMVANtuplizer::nLumi_
private

Definition at line 62 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const size_t PhotonMVANtuplizer::nPhoMaps_
private

Definition at line 78 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

int PhotonMVANtuplizer::nRun_
private

Definition at line 62 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const size_t PhotonMVANtuplizer::nValMaps_
private

Definition at line 84 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const int PhotonMVANtuplizer::nVars_
private

Definition at line 115 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const std::vector< std::string > PhotonMVANtuplizer::phoMapBranchNames_
private

Definition at line 77 of file PhotonMVANtuplizer.cc.

Referenced by PhotonMVANtuplizer().

const std::vector< std::string > PhotonMVANtuplizer::phoMapTags_
private

Definition at line 75 of file PhotonMVANtuplizer.cc.

Referenced by PhotonMVANtuplizer().

std::vector< edm::EDGetTokenT< edm::ValueMap<bool> > > PhotonMVANtuplizer::phoMapTokens_
private

Definition at line 76 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const MultiTokenT<std::vector<PileupSummaryInfo> > PhotonMVANtuplizer::pileup_
private

Definition at line 99 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

double PhotonMVANtuplizer::pT_
private

Definition at line 67 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const double PhotonMVANtuplizer::ptThreshold_
private

Definition at line 93 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

const MultiTokenT<edm::View<reco::Photon> > PhotonMVANtuplizer::src_
private

Definition at line 97 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

TTree* PhotonMVANtuplizer::tree_
private

Definition at line 59 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const std::vector< std::string > PhotonMVANtuplizer::valMapBranchNames_
private

Definition at line 83 of file PhotonMVANtuplizer.cc.

Referenced by PhotonMVANtuplizer().

const std::vector< std::string > PhotonMVANtuplizer::valMapTags_
private

Definition at line 81 of file PhotonMVANtuplizer.cc.

Referenced by PhotonMVANtuplizer().

std::vector< edm::EDGetTokenT<edm::ValueMap<float> > > PhotonMVANtuplizer::valMapTokens_
private

Definition at line 82 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const MVAVariableHelper<reco::Photon> PhotonMVANtuplizer::variableHelper_
private

Definition at line 110 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

std::vector<float> PhotonMVANtuplizer::vars_
private

Definition at line 116 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

const MultiTokenT<std::vector<reco::Vertex> > PhotonMVANtuplizer::vertices_
private

Definition at line 98 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

int PhotonMVANtuplizer::vtxN_
private

Definition at line 64 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().