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
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () 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
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > 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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices 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 edm::EDGetTokenT< EcalRecHitCollectionebRecHits_
 
const EcalClusterLazyTools::ESGetTokens ecalClusterToolsESGetTokens_
 
const edm::EDGetTokenT< EcalRecHitCollectioneeRecHits_
 
std::vector< float > energyMatrix_
 
const int energyMatrixSize_
 
double eta_
 
int genNpu_
 
const edm::EDGetTokenT< 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 edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileup_
 
double pT_
 
const double ptThreshold_
 
const edm::EDGetTokenT< 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 variableHelper_
 
std::vector< float > vars_
 
const edm::EDGetTokenT< 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)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

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::PhotonMVANtuplizer ( const edm::ParameterSet iConfig)
explicit

Definition at line 159 of file PhotonMVANtuplizer.cc.

References edm::EDConsumerBase::consumesCollector().

160  : phoMapTags_(iConfig.getParameter<std::vector<std::string>>("phoMVAs")),
161  phoMapBranchNames_(iConfig.getParameter<std::vector<std::string>>("phoMVALabels")),
163  valMapTags_(iConfig.getParameter<std::vector<std::string>>("phoMVAValMaps")),
164  valMapBranchNames_(iConfig.getParameter<std::vector<std::string>>("phoMVAValMapLabels")),
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")),
173  vertices_(consumes<std::vector<reco::Vertex>>(iConfig.getParameter<edm::InputTag>("vertices"))),
174  pileup_(consumes<std::vector<PileupSummaryInfo>>(iConfig.getParameter<edm::InputTag>("pileup"))),
176  ebRecHits_(consumes<EcalRecHitCollection>(iConfig.getParameter<edm::InputTag>("ebReducedRecHitCollection"))),
177  eeRecHits_(consumes<EcalRecHitCollection>(iConfig.getParameter<edm::InputTag>("eeReducedRecHitCollection"))),
181  mvaCats_(nCats_),
183  mvaVarMngr_(iConfig.getParameter<std::string>("variableDefinition"), MVAVariableHelper::indexMap()),
185  vars_(nVars_),
186  doEnergyMatrix_(iConfig.getParameter<bool>("doEnergyMatrix")),
187  energyMatrixSize_(iConfig.getParameter<int>("energyMatrixSize")) {
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_)
218  tree_->Branch("energyMatrix", &energyMatrix_);
219 
220  for (int i = 0; i < nVars_; ++i) {
221  tree_->Branch(mvaVarMngr_.getName(i).c_str(), &vars_[i]);
222  }
223 
224  // IDs
225  for (size_t k = 0; k < nValMaps_; ++k) {
226  tree_->Branch(valMapBranchNames_[k].c_str(), &mvaValues_[k]);
227  }
228 
229  for (size_t k = 0; k < nPhoMaps_; ++k) {
230  tree_->Branch(phoMapBranchNames_[k].c_str(), &mvaPasses_[k]);
231  }
232 
233  for (size_t k = 0; k < nCats_; ++k) {
234  tree_->Branch(mvaCatBranchNames_[k].c_str(), &mvaCats_[k]);
235  }
236 }
static const std::string kSharedResource
Definition: TFileService.h:76
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
const edm::EDGetTokenT< EcalRecHitCollection > eeRecHits_
MVAVariableManager< reco::Photon > mvaVarMngr_
const std::vector< std::string > mvaCatBranchNames_
const edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileup_
static std::unordered_map< std::string, int > indexMap()
const std::vector< std::string > valMapTags_
std::vector< int > mvaCats_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const std::string & getName(int index) const
std::vector< edm::EDGetTokenT< edm::ValueMap< int > > > mvaCatTokens_
std::vector< int > mvaPasses_
std::vector< float > mvaValues_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
const std::vector< std::string > mvaCatTags_
const EcalClusterLazyTools::ESGetTokens ecalClusterToolsESGetTokens_
std::vector< edm::EDGetTokenT< edm::ValueMap< bool > > > phoMapTokens_
const std::vector< std::string > valMapBranchNames_
const edm::EDGetTokenT< EcalRecHitCollection > ebRecHits_
const std::vector< std::string > phoMapBranchNames_
const edm::EDGetTokenT< edm::View< reco::Photon > > src_
const edm::EDGetTokenT< std::vector< reco::Vertex > > vertices_
const edm::EDGetTokenT< edm::View< reco::GenParticle > > genParticles_
const MVAVariableHelper variableHelper_
const std::vector< std::string > phoMapTags_
std::vector< float > energyMatrix_
std::vector< float > vars_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > valMapTokens_

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 239 of file PhotonMVANtuplizer.cc.

References nano_mu_digi_cff::bx, deltaR_, doEnergyMatrix_, ebRecHits_, ecalClusterToolsESGetTokens_, eeRecHits_, energyMatrix_, energyMatrixSize_, eta_, genNpu_, AJJGenJetFilter_cfi::genParticles, genParticles_, EcalClusterLazyToolsBase::ESGetTokens::get(), MVAVariableHelper::getAuxVariables(), MVAVariableManager< ParticleType >::getValue(), iEvent, isMC_, dqmdumpme::k, matchedToGenPh_, mvaCats_, mvaCatTokens_, mvaPasses_, mvaValues_, mvaVarMngr_, nCats_, nEvent_, nLumi_, nPhoMaps_, nRun_, nValMaps_, nVars_, phoMapTokens_, mixOne_premix_on_sim_cfi::pileup, pileup_, pT_, ptThreshold_, displacedMuons_cfi::pu, fileCollector::seed, TrackRefitter_38T_cff::src, src_, tree_, valMapTokens_, contentValuesCheck::values, variableHelper_, vars_, AlignmentTracksFromVertexSelector_cfi::vertices, vertices_, and vtxN_.

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

◆ fillDescriptions()

void PhotonMVANtuplizer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 328 of file PhotonMVANtuplizer.cc.

References edm::ConfigurationDescriptions::addDefault(), submitPVResolutionJobs::desc, ProducerED_cfi::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

328  {
330  desc.add<edm::InputTag>("src", edm::InputTag("slimmedPhotons"));
331  desc.add<edm::InputTag>("vertices", edm::InputTag("offlineSlimmedPrimaryVertices"));
332  desc.add<edm::InputTag>("pileup", edm::InputTag("slimmedAddPileupInfo"));
333  desc.add<edm::InputTag>("genParticles", edm::InputTag("prunedGenParticles"));
334  desc.add<edm::InputTag>("ebReducedRecHitCollection", edm::InputTag("reducedEgamma", "reducedEBRecHits"));
335  desc.add<edm::InputTag>("eeReducedRecHitCollection", edm::InputTag("reducedEgamma", "reducedEERecHits"));
336  desc.add<std::vector<std::string>>("phoMVAs", {});
337  desc.add<std::vector<std::string>>("phoMVALabels", {});
338  desc.add<std::vector<std::string>>("phoMVAValMaps", {});
339  desc.add<std::vector<std::string>>("phoMVAValMapLabels", {});
340  desc.add<std::vector<std::string>>("phoMVACats", {});
341  desc.add<std::vector<std::string>>("phoMVACatLabels", {});
342  desc.add<bool>("doEnergyMatrix", false);
343  desc.add<int>("energyMatrixSize", 2)->setComment("extension of crystals in each direction away from the seed");
344  desc.add<bool>("isMC", true);
345  desc.add<double>("ptThreshold", 15.0);
346  desc.add<double>("deltaR", 0.1);
347  desc.add<std::string>("variableDefinition");
348  descriptions.addDefault(desc);
349 }
void addDefault(ParameterSetDescription const &psetDescription)

Member Data Documentation

◆ deltaR_

const double PhotonMVANtuplizer::deltaR_
private

Definition at line 92 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ doEnergyMatrix_

const bool PhotonMVANtuplizer::doEnergyMatrix_
private

Definition at line 118 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ ebRecHits_

const edm::EDGetTokenT<EcalRecHitCollection> PhotonMVANtuplizer::ebRecHits_
private

Definition at line 99 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ ecalClusterToolsESGetTokens_

const EcalClusterLazyTools::ESGetTokens PhotonMVANtuplizer::ecalClusterToolsESGetTokens_
private

Definition at line 102 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ eeRecHits_

const edm::EDGetTokenT<EcalRecHitCollection> PhotonMVANtuplizer::eeRecHits_
private

Definition at line 100 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ energyMatrix_

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

Definition at line 66 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ energyMatrixSize_

const int PhotonMVANtuplizer::energyMatrixSize_
private

Definition at line 119 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ eta_

double PhotonMVANtuplizer::eta_
private

Definition at line 65 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ genNpu_

int PhotonMVANtuplizer::genNpu_
private

Definition at line 61 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ genParticles_

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

Definition at line 98 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ isMC_

const bool PhotonMVANtuplizer::isMC_
private

Definition at line 90 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ matchedGenIdx_

int PhotonMVANtuplizer::matchedGenIdx_
private

Definition at line 70 of file PhotonMVANtuplizer.cc.

◆ matchedToGenPh_

int PhotonMVANtuplizer::matchedToGenPh_
private

Definition at line 69 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ mvaCatBranchNames_

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

Definition at line 86 of file PhotonMVANtuplizer.cc.

◆ mvaCats_

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

Definition at line 107 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ mvaCatTags_

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

Definition at line 84 of file PhotonMVANtuplizer.cc.

◆ mvaCatTokens_

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

Definition at line 85 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ mvaPasses_

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

Definition at line 105 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ mvaValues_

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

Definition at line 106 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ mvaVarMngr_

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

Definition at line 113 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ nCats_

const size_t PhotonMVANtuplizer::nCats_
private

Definition at line 87 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ nEvent_

int PhotonMVANtuplizer::nEvent_
private

Definition at line 60 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ nLumi_

int PhotonMVANtuplizer::nLumi_
private

Definition at line 60 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ nPhoMaps_

const size_t PhotonMVANtuplizer::nPhoMaps_
private

Definition at line 76 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ nRun_

int PhotonMVANtuplizer::nRun_
private

Definition at line 60 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ nValMaps_

const size_t PhotonMVANtuplizer::nValMaps_
private

Definition at line 82 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ nVars_

const int PhotonMVANtuplizer::nVars_
private

Definition at line 115 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ phoMapBranchNames_

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

Definition at line 75 of file PhotonMVANtuplizer.cc.

◆ phoMapTags_

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

Definition at line 73 of file PhotonMVANtuplizer.cc.

◆ phoMapTokens_

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

Definition at line 74 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ pileup_

const edm::EDGetTokenT<std::vector<PileupSummaryInfo> > PhotonMVANtuplizer::pileup_
private

Definition at line 97 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ pT_

double PhotonMVANtuplizer::pT_
private

Definition at line 65 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ ptThreshold_

const double PhotonMVANtuplizer::ptThreshold_
private

Definition at line 91 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ src_

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

Definition at line 95 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ tree_

TTree* PhotonMVANtuplizer::tree_
private

Definition at line 57 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ valMapBranchNames_

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

Definition at line 81 of file PhotonMVANtuplizer.cc.

◆ valMapTags_

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

Definition at line 79 of file PhotonMVANtuplizer.cc.

◆ valMapTokens_

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

Definition at line 80 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ variableHelper_

const MVAVariableHelper PhotonMVANtuplizer::variableHelper_
private

Definition at line 110 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ vars_

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

Definition at line 116 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ vertices_

const edm::EDGetTokenT<std::vector<reco::Vertex> > PhotonMVANtuplizer::vertices_
private

Definition at line 96 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ vtxN_

int PhotonMVANtuplizer::vtxN_
private

Definition at line 62 of file PhotonMVANtuplizer.cc.

Referenced by analyze().