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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
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
 
EDConsumerBaseoperator= (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)
 

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 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
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>
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)
 
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)
 

Detailed Description

Description: Ntuplizer to use for testing photon MVA IDs.

Implementation: [Notes on implementation]

Definition at line 44 of file PhotonMVANtuplizer.cc.

Constructor & Destructor Documentation

◆ PhotonMVANtuplizer()

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

Definition at line 156 of file PhotonMVANtuplizer.cc.

157  : phoMapTags_(iConfig.getParameter<std::vector<std::string>>("phoMVAs")),
158  phoMapBranchNames_(iConfig.getParameter<std::vector<std::string>>("phoMVALabels")),
160  valMapTags_(iConfig.getParameter<std::vector<std::string>>("phoMVAValMaps")),
161  valMapBranchNames_(iConfig.getParameter<std::vector<std::string>>("phoMVAValMapLabels")),
163  mvaCatTags_(iConfig.getParameter<std::vector<std::string>>("phoMVACats")),
164  mvaCatBranchNames_(iConfig.getParameter<std::vector<std::string>>("phoMVACatLabels")),
165  nCats_(mvaCatBranchNames_.size()),
166  isMC_(iConfig.getParameter<bool>("isMC")),
167  ptThreshold_(iConfig.getParameter<double>("ptThreshold")),
168  deltaR_(iConfig.getParameter<double>("deltaR")),
170  vertices_(consumes<std::vector<reco::Vertex>>(iConfig.getParameter<edm::InputTag>("vertices"))),
171  pileup_(consumes<std::vector<PileupSummaryInfo>>(iConfig.getParameter<edm::InputTag>("pileup"))),
173  ebRecHits_(consumes<EcalRecHitCollection>(iConfig.getParameter<edm::InputTag>("ebReducedRecHitCollection"))),
174  eeRecHits_(consumes<EcalRecHitCollection>(iConfig.getParameter<edm::InputTag>("eeReducedRecHitCollection"))),
177  mvaCats_(nCats_),
179  mvaVarMngr_(iConfig.getParameter<std::string>("variableDefinition")),
181  vars_(nVars_),
182  doEnergyMatrix_(iConfig.getParameter<bool>("doEnergyMatrix")),
183  energyMatrixSize_(iConfig.getParameter<int>("energyMatrixSize")) {
184  // phoMaps
185  for (auto const& tag : phoMapTags_) {
187  }
188  // valMaps
189  for (auto const& tag : valMapTags_) {
191  }
192  // categories
193  for (auto const& tag : mvaCatTags_) {
195  }
196 
197  // Book tree
198  usesResource(TFileService::kSharedResource);
200  tree_ = fs->make<TTree>("tree", "tree");
201 
202  tree_->Branch("nEvent", &nEvent_);
203  tree_->Branch("nRun", &nRun_);
204  tree_->Branch("nLumi", &nLumi_);
205  if (isMC_) {
206  tree_->Branch("genNpu", &genNpu_);
207  tree_->Branch("matchedToGenPh", &matchedToGenPh_);
208  }
209  tree_->Branch("vtxN", &vtxN_);
210  tree_->Branch("pT", &pT_);
211  tree_->Branch("eta", &eta_);
212 
213  if (doEnergyMatrix_)
214  tree_->Branch("energyMatrix", &energyMatrix_);
215 
216  for (int i = 0; i < nVars_; ++i) {
217  tree_->Branch(mvaVarMngr_.getName(i).c_str(), &vars_[i]);
218  }
219 
220  // IDs
221  for (size_t k = 0; k < nValMaps_; ++k) {
222  tree_->Branch(valMapBranchNames_[k].c_str(), &mvaValues_[k]);
223  }
224 
225  for (size_t k = 0; k < nPhoMaps_; ++k) {
226  tree_->Branch(phoMapBranchNames_[k].c_str(), &mvaPasses_[k]);
227  }
228 
229  for (size_t k = 0; k < nCats_; ++k) {
230  tree_->Branch(mvaCatBranchNames_[k].c_str(), &mvaCats_[k]);
231  }
232 }

References edm::EDConsumerBase::consumes(), doEnergyMatrix_, energyMatrix_, eta_, genNpu_, MVAVariableManager< ParticleType >::getName(), mps_fire::i, isMC_, dqmdumpme::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_.

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 235 of file PhotonMVANtuplizer.cc.

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

References simKBmtfDigis_cfi::bx, deltaR_, doEnergyMatrix_, ebRecHits_, eeRecHits_, energyMatrix_, energyMatrixSize_, eta_, genNpu_, genParticles2HepMC_cfi::genParticles, genParticles_, 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_, muons2muons_cfi::pu, SurveyInfoScenario_cff::seed, TrackRefitter_38T_cff::src, src_, tree_, valMapTokens_, contentValuesCheck::values, variableHelper_, vars_, pwdgSkimBPark_cfi::vertices, vertices_, and vtxN_.

◆ fillDescriptions()

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

Definition at line 323 of file PhotonMVANtuplizer.cc.

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

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

Member Data Documentation

◆ deltaR_

const double PhotonMVANtuplizer::deltaR_
private

Definition at line 91 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ doEnergyMatrix_

const bool PhotonMVANtuplizer::doEnergyMatrix_
private

Definition at line 115 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ ebRecHits_

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

Definition at line 98 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ eeRecHits_

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

Definition at line 99 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ energyMatrix_

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

Definition at line 65 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ energyMatrixSize_

const int PhotonMVANtuplizer::energyMatrixSize_
private

Definition at line 116 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ eta_

double PhotonMVANtuplizer::eta_
private

Definition at line 64 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ genNpu_

int PhotonMVANtuplizer::genNpu_
private

Definition at line 60 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ genParticles_

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

Definition at line 97 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ isMC_

const bool PhotonMVANtuplizer::isMC_
private

Definition at line 89 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ matchedGenIdx_

int PhotonMVANtuplizer::matchedGenIdx_
private

Definition at line 69 of file PhotonMVANtuplizer.cc.

◆ matchedToGenPh_

int PhotonMVANtuplizer::matchedToGenPh_
private

Definition at line 68 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ mvaCatBranchNames_

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

Definition at line 85 of file PhotonMVANtuplizer.cc.

Referenced by PhotonMVANtuplizer().

◆ mvaCats_

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

Definition at line 104 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ mvaCatTags_

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

Definition at line 83 of file PhotonMVANtuplizer.cc.

Referenced by PhotonMVANtuplizer().

◆ mvaCatTokens_

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

Definition at line 84 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ mvaPasses_

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

Definition at line 102 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ mvaValues_

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

Definition at line 103 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ mvaVarMngr_

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

Definition at line 110 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ nCats_

const size_t PhotonMVANtuplizer::nCats_
private

Definition at line 86 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ nEvent_

int PhotonMVANtuplizer::nEvent_
private

Definition at line 59 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ nLumi_

int PhotonMVANtuplizer::nLumi_
private

Definition at line 59 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ nPhoMaps_

const size_t PhotonMVANtuplizer::nPhoMaps_
private

Definition at line 75 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ nRun_

int PhotonMVANtuplizer::nRun_
private

Definition at line 59 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ nValMaps_

const size_t PhotonMVANtuplizer::nValMaps_
private

Definition at line 81 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ nVars_

const int PhotonMVANtuplizer::nVars_
private

Definition at line 112 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ phoMapBranchNames_

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

Definition at line 74 of file PhotonMVANtuplizer.cc.

Referenced by PhotonMVANtuplizer().

◆ phoMapTags_

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

Definition at line 72 of file PhotonMVANtuplizer.cc.

Referenced by PhotonMVANtuplizer().

◆ phoMapTokens_

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

Definition at line 73 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ pileup_

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

Definition at line 96 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ pT_

double PhotonMVANtuplizer::pT_
private

Definition at line 64 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ ptThreshold_

const double PhotonMVANtuplizer::ptThreshold_
private

Definition at line 90 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ src_

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

Definition at line 94 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ tree_

TTree* PhotonMVANtuplizer::tree_
private

Definition at line 56 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ valMapBranchNames_

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

Definition at line 80 of file PhotonMVANtuplizer.cc.

Referenced by PhotonMVANtuplizer().

◆ valMapTags_

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

Definition at line 78 of file PhotonMVANtuplizer.cc.

Referenced by PhotonMVANtuplizer().

◆ valMapTokens_

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

Definition at line 79 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ variableHelper_

const MVAVariableHelper PhotonMVANtuplizer::variableHelper_
private

Definition at line 107 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ vars_

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

Definition at line 113 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

◆ vertices_

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

Definition at line 95 of file PhotonMVANtuplizer.cc.

Referenced by analyze().

◆ vtxN_

int PhotonMVANtuplizer::vtxN_
private

Definition at line 61 of file PhotonMVANtuplizer.cc.

Referenced by analyze(), and PhotonMVANtuplizer().

PhotonMVANtuplizer::nRun_
int nRun_
Definition: PhotonMVANtuplizer.cc:59
PhotonMVANtuplizer::mvaPasses_
std::vector< int > mvaPasses_
Definition: PhotonMVANtuplizer.cc:102
PhotonMVANtuplizer::pT_
double pT_
Definition: PhotonMVANtuplizer.cc:64
mps_fire.i
i
Definition: mps_fire.py:355
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
genParticles2HepMC_cfi.genParticles
genParticles
Definition: genParticles2HepMC_cfi.py:4
PhotonMVANtuplizer::genNpu_
int genNpu_
Definition: PhotonMVANtuplizer.cc:60
MVAVariableManager::getValue
float getValue(int index, const ParticleType &particle, const std::vector< float > &auxVariables) const
Definition: MVAVariableManager.h:51
PhotonMVANtuplizer::pileup_
const edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileup_
Definition: PhotonMVANtuplizer.cc:96
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
PhotonMVANtuplizer::nLumi_
int nLumi_
Definition: PhotonMVANtuplizer.cc:59
PhotonMVANtuplizer::vertices_
const edm::EDGetTokenT< std::vector< reco::Vertex > > vertices_
Definition: PhotonMVANtuplizer.cc:95
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:71
PhotonMVANtuplizer::isMC_
const bool isMC_
Definition: PhotonMVANtuplizer.cc:89
edm::Handle
Definition: AssociativeIterator.h:50
MVAVariableManager::getName
const std::string & getName(int index) const
Definition: MVAVariableManager.h:47
simKBmtfDigis_cfi.bx
bx
Definition: simKBmtfDigis_cfi.py:55
PhotonMVANtuplizer::mvaVarMngr_
MVAVariableManager< reco::Photon > mvaVarMngr_
Definition: PhotonMVANtuplizer.cc:110
PhotonMVANtuplizer::energyMatrix_
std::vector< float > energyMatrix_
Definition: PhotonMVANtuplizer.cc:65
PhotonMVANtuplizer::vars_
std::vector< float > vars_
Definition: PhotonMVANtuplizer.cc:113
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
MVAVariableHelper::getAuxVariables
const std::vector< float > getAuxVariables(const edm::Event &iEvent) const
Definition: MVAVariableHelper.cc:7
mixOne_premix_on_sim_cfi.pileup
pileup
Definition: mixOne_premix_on_sim_cfi.py:42
contentValuesCheck.values
values
Definition: contentValuesCheck.py:38
PhotonMVANtuplizer::energyMatrixSize_
const int energyMatrixSize_
Definition: PhotonMVANtuplizer.cc:116
PhotonMVANtuplizer::mvaCats_
std::vector< int > mvaCats_
Definition: PhotonMVANtuplizer.cc:104
PhotonMVANtuplizer::valMapBranchNames_
const std::vector< std::string > valMapBranchNames_
Definition: PhotonMVANtuplizer.cc:80
PhotonMVANtuplizer::nVars_
const int nVars_
Definition: PhotonMVANtuplizer.cc:112
PhotonMVANtuplizer::mvaCatTokens_
std::vector< edm::EDGetTokenT< edm::ValueMap< int > > > mvaCatTokens_
Definition: PhotonMVANtuplizer.cc:84
dqmdumpme.k
k
Definition: dqmdumpme.py:60
PhotonMVANtuplizer::nValMaps_
const size_t nValMaps_
Definition: PhotonMVANtuplizer.cc:81
PhotonMVANtuplizer::phoMapBranchNames_
const std::vector< std::string > phoMapBranchNames_
Definition: PhotonMVANtuplizer.cc:74
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PhotonMVANtuplizer::valMapTokens_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > valMapTokens_
Definition: PhotonMVANtuplizer.cc:79
edm::View
Definition: CaloClusterFwd.h:14
PhotonMVANtuplizer::vtxN_
int vtxN_
Definition: PhotonMVANtuplizer.cc:61
PhotonMVANtuplizer::phoMapTokens_
std::vector< edm::EDGetTokenT< edm::ValueMap< bool > > > phoMapTokens_
Definition: PhotonMVANtuplizer.cc:73
MVAVariableManager::getNVars
int getNVars() const
Definition: MVAVariableManager.h:49
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
TrackRefitter_38T_cff.src
src
Definition: TrackRefitter_38T_cff.py:24
PhotonMVANtuplizer::ebRecHits_
const edm::EDGetTokenT< EcalRecHitCollection > ebRecHits_
Definition: PhotonMVANtuplizer.cc:98
PhotonMVANtuplizer::mvaCatTags_
const std::vector< std::string > mvaCatTags_
Definition: PhotonMVANtuplizer.cc:83
edm::Service< TFileService >
iEvent
int iEvent
Definition: GenABIO.cc:224
PhotonMVANtuplizer::genParticles_
const edm::EDGetTokenT< edm::View< reco::GenParticle > > genParticles_
Definition: PhotonMVANtuplizer.cc:97
PhotonMVANtuplizer::doEnergyMatrix_
const bool doEnergyMatrix_
Definition: PhotonMVANtuplizer.cc:115
PhotonMVANtuplizer::phoMapTags_
const std::vector< std::string > phoMapTags_
Definition: PhotonMVANtuplizer.cc:72
PhotonMVANtuplizer::nEvent_
int nEvent_
Definition: PhotonMVANtuplizer.cc:59
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
PhotonMVANtuplizer::variableHelper_
const MVAVariableHelper variableHelper_
Definition: PhotonMVANtuplizer.cc:107
PhotonMVANtuplizer::ptThreshold_
const double ptThreshold_
Definition: PhotonMVANtuplizer.cc:90
PhotonMVANtuplizer::deltaR_
const double deltaR_
Definition: PhotonMVANtuplizer.cc:91
edm::ValueMap
Definition: ValueMap.h:107
TFileService::kSharedResource
static const std::string kSharedResource
Definition: TFileService.h:76
PhotonMVANtuplizer::nPhoMaps_
const size_t nPhoMaps_
Definition: PhotonMVANtuplizer.cc:75
muons2muons_cfi.pu
pu
Definition: muons2muons_cfi.py:31
edm::EDConsumerBase::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: EDConsumerBase.h:126
PhotonMVANtuplizer::matchedToGenPh_
int matchedToGenPh_
Definition: PhotonMVANtuplizer.cc:68
PhotonMVANtuplizer::src_
const edm::EDGetTokenT< edm::View< reco::Photon > > src_
Definition: PhotonMVANtuplizer.cc:94
PhotonMVANtuplizer::eeRecHits_
const edm::EDGetTokenT< EcalRecHitCollection > eeRecHits_
Definition: PhotonMVANtuplizer.cc:99
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
PhotonMVANtuplizer::valMapTags_
const std::vector< std::string > valMapTags_
Definition: PhotonMVANtuplizer.cc:78
PhotonMVANtuplizer::nCats_
const size_t nCats_
Definition: PhotonMVANtuplizer.cc:86
PhotonMVANtuplizer::tree_
TTree * tree_
Definition: PhotonMVANtuplizer.cc:56
PhotonMVANtuplizer::eta_
double eta_
Definition: PhotonMVANtuplizer.cc:64
edm::InputTag
Definition: InputTag.h:15
SurveyInfoScenario_cff.seed
seed
Definition: SurveyInfoScenario_cff.py:295
TFileService::make
T * make(const Args &... args) const
make new ROOT object
Definition: TFileService.h:64
PhotonMVANtuplizer::mvaValues_
std::vector< float > mvaValues_
Definition: PhotonMVANtuplizer.cc:103
PhotonMVANtuplizer::mvaCatBranchNames_
const std::vector< std::string > mvaCatBranchNames_
Definition: PhotonMVANtuplizer.cc:85
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7