CMS 3D CMS Logo

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

#include <RecoEgamma/ElectronIdentification/plugins/ElectronMVANtuplizer.cc>

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

Public Member Functions

 ElectronMVANtuplizer (const edm::ParameterSet &)
 
 ~ElectronMVANtuplizer () override
 
- 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
 
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)
 
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
 
void beginJob () override
 
void endJob () override
 
template<class T , class V >
int matchToTruth (const T &el, const V &genParticles, int &genIdx)
 

Private Attributes

const double deltaR_
 
int ele3Q_
 
bool eleIsEB_
 
bool eleIsEBEEGap_
 
bool eleIsEBEtaGap_
 
bool eleIsEBPhiGap_
 
bool eleIsEE_
 
bool eleIsEEDeeGap_
 
bool eleIsEERingGap_
 
const std::vector< std::string > eleMapBranchNames_
 
const std::vector< std::string > eleMapTags_
 
std::vector< edm::EDGetTokenT< edm::ValueMap< bool > > > eleMapTokens_
 
float eleQ_
 
int genNpu_
 
MultiTokenT< edm::View< reco::GenParticle > > genParticles_
 
const bool isMC_
 
int matchedGenIdx_
 
int matchedToGenEle_
 
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::GsfElectronmvaVarMngr_
 
const size_t nCats_
 
const size_t nEleMaps_
 
int nEvent_
 
int nLumi_
 
int nRun_
 
const size_t nValMaps_
 
int nVars_
 
MultiTokenT< std::vector< PileupSummaryInfo > > pileup_
 
const double ptThreshold_
 
MultiTokenT< edm::View< reco::GsfElectron > > src_
 
TTree * tree_
 
const std::vector< std::string > valMapBranchNames_
 
const std::vector< std::string > valMapTags_
 
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > valMapTokens_
 
std::vector< float > vars_
 
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 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 for training and testing electron MVA IDs.

Implementation: [Notes on implementation]

Definition at line 56 of file ElectronMVANtuplizer.cc.

Constructor & Destructor Documentation

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

Definition at line 157 of file ElectronMVANtuplizer.cc.

References edm::EDConsumerBase::consumes(), edm::EDConsumerBase::consumesCollector(), ele3Q_, eleIsEB_, eleIsEBEEGap_, eleIsEBEtaGap_, eleIsEBPhiGap_, eleIsEE_, eleIsEEDeeGap_, eleIsEERingGap_, eleMapBranchNames_, eleMapTags_, eleMapTokens_, eleQ_, genNpu_, MVAVariableManager< ParticleType >::getName(), MVAVariableManager< ParticleType >::getNVars(), mps_fire::i, isMC_, gen::k, TFileService::kSharedResource, TFileService::make(), matchedToGenEle_, mvaCatBranchNames_, mvaCats_, mvaCatTags_, mvaCatTokens_, mvaPasses_, mvaValues_, mvaVarMngr_, nCats_, nEleMaps_, nEvent_, nLumi_, nRun_, nValMaps_, nVars_, MVAVariableManager< ParticleType >::setConsumes(), tree_, valMapBranchNames_, valMapTags_, valMapTokens_, vars_, and vtxN_.

158  : mvaVarMngr_ (iConfig.getParameter<std::string>("variableDefinition"))
159  , isMC_ (iConfig.getParameter<bool>("isMC"))
160  , deltaR_ (iConfig.getParameter<double>("deltaR"))
161  , ptThreshold_ (iConfig.getParameter<double>("ptThreshold"))
162  , eleMapTags_ (iConfig.getUntrackedParameter<std::vector<std::string>>("eleMVAs"))
163  , eleMapBranchNames_ (iConfig.getUntrackedParameter<std::vector<std::string>>("eleMVALabels"))
164  , nEleMaps_ (eleMapBranchNames_.size())
165  , valMapTags_ (iConfig.getUntrackedParameter<std::vector<std::string>>("eleMVAValMaps"))
166  , valMapBranchNames_ (iConfig.getUntrackedParameter<std::vector<std::string>>("eleMVAValMapLabels"))
167  , nValMaps_ (valMapBranchNames_.size())
168  , mvaCatTags_ (iConfig.getUntrackedParameter<std::vector<std::string>>("eleMVACats"))
169  , mvaCatBranchNames_ (iConfig.getUntrackedParameter<std::vector<std::string>>("eleMVACatLabels"))
170  , nCats_ (mvaCatBranchNames_.size())
171  , src_ (consumesCollector(), iConfig, "src" , "srcMiniAOD")
172  , vertices_ (src_, consumesCollector(), iConfig, "vertices" , "verticesMiniAOD")
173  , pileup_ (src_, consumesCollector(), iConfig, "pileup" , "pileupMiniAOD")
174  , genParticles_ (src_, consumesCollector(), iConfig, "genParticles", "genParticlesMiniAOD")
175 {
176  // eleMaps
177  for (size_t k = 0; k < nEleMaps_; ++k) {
178 
180 
181  // Initialize vectors for holding ID decisions
182  mvaPasses_.push_back(0);
183  }
184 
185  // valMaps
186  for (size_t k = 0; k < nValMaps_; ++k) {
188 
189  // Initialize vectors for holding MVA values
190  mvaValues_.push_back(0.0);
191  }
192 
193  // categories
194  for (size_t k = 0; k < nCats_; ++k) {
196 
197  // Initialize vectors for holding MVA values
198  mvaCats_.push_back(0);
199  }
200 
201  // Book tree
202  usesResource(TFileService::kSharedResource);
204  tree_ = fs->make<TTree>("tree","tree");
205 
207 
208  tree_->Branch("nEvent", &nEvent_);
209  tree_->Branch("nRun", &nRun_);
210  tree_->Branch("nLumi", &nLumi_);
211  if (isMC_) tree_->Branch("genNpu", &genNpu_);
212  tree_->Branch("vtxN", &vtxN_);
213 
214  tree_->Branch("ele_q",&eleQ_);
215  tree_->Branch("ele_3q",&ele3Q_);
216 
217  if (isMC_) {
218  tree_->Branch("matchedToGenEle", &matchedToGenEle_);
219  }
220 
221  // Has to be in two different loops
222  for (int i = 0; i < nVars_; ++i) {
223  vars_.push_back(0.0);
224  }
225  for (int i = 0; i < nVars_; ++i) {
226  tree_->Branch(mvaVarMngr_.getName(i).c_str(), &vars_[i]);
227  }
228 
229  tree_->Branch("ele_isEB",&eleIsEB_);
230  tree_->Branch("ele_isEE",&eleIsEE_);
231  tree_->Branch("ele_isEBEtaGap",&eleIsEBEtaGap_);
232  tree_->Branch("ele_isEBPhiGap",&eleIsEBPhiGap_);
233  tree_->Branch("ele_isEBEEGap", &eleIsEBEEGap_);
234  tree_->Branch("ele_isEEDeeGap",&eleIsEEDeeGap_);
235  tree_->Branch("ele_isEERingGap",&eleIsEERingGap_);
236 
237  // IDs
238  for (size_t k = 0; k < nValMaps_; ++k) {
239  tree_->Branch(valMapBranchNames_[k].c_str() , &mvaValues_[k]);
240  }
241 
242  for (size_t k = 0; k < nEleMaps_; ++k) {
243  tree_->Branch(eleMapBranchNames_[k].c_str() , &mvaPasses_[k]);
244  }
245 
246  for (size_t k = 0; k < nCats_; ++k) {
247  tree_->Branch(mvaCatBranchNames_[k].c_str() , &mvaCats_[k]);
248  }
249 
250  // All tokens for event content needed by this MVA
251  // Tags from the variable helper
253 }
static const std::string kSharedResource
Definition: TFileService.h:76
void setConsumes(edm::ConsumesCollector &&cc)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(int index) const
MultiTokenT< edm::View< reco::GsfElectron > > src_
MultiTokenT< std::vector< reco::Vertex > > vertices_
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
std::vector< edm::EDGetTokenT< edm::ValueMap< int > > > mvaCatTokens_
std::vector< float > mvaValues_
MultiTokenT< edm::View< reco::GenParticle > > genParticles_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::vector< int > mvaPasses_
const std::vector< std::string > valMapBranchNames_
std::vector< int > mvaCats_
MultiTokenT< std::vector< PileupSummaryInfo > > pileup_
int k[5][pyjets_maxn]
const std::vector< std::string > eleMapBranchNames_
std::vector< float > vars_
MVAVariableManager< reco::GsfElectron > mvaVarMngr_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > valMapTokens_
const std::vector< std::string > mvaCatTags_
std::vector< edm::EDGetTokenT< edm::ValueMap< bool > > > eleMapTokens_
const std::vector< std::string > mvaCatBranchNames_
const std::vector< std::string > eleMapTags_
const std::vector< std::string > valMapTags_
ElectronMVANtuplizer::~ElectronMVANtuplizer ( )
override

Definition at line 256 of file ElectronMVANtuplizer.cc.

257 {
258 
259  // do anything here that needs to be done at desctruction time
260  // (e.g. close files, deallocate resources etc.)
261 
262 }

Member Function Documentation

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

Definition at line 271 of file ElectronMVANtuplizer.cc.

References ele3Q_, eleIsEB_, eleIsEBEEGap_, eleIsEBEtaGap_, eleIsEBPhiGap_, eleIsEE_, eleIsEEDeeGap_, eleIsEERingGap_, eleMapTokens_, eleQ_, edm::EventID::event(), genNpu_, GenHFHadronMatcher_cfi::genParticles, genParticles_, edm::Event::getByToken(), MultiTokenT< T >::getHandle(), MultiTokenT< T >::getValidHandle(), MVAVariableManager< ParticleType >::getValue(), edm::EventBase::id(), createfilelist::int, isMC_, gen::k, edm::EventBase::luminosityBlock(), matchedGenIdx_, matchedToGenEle_, matchToTruth(), mvaCats_, mvaCatTokens_, mvaPasses_, mvaValues_, mvaVarMngr_, nCats_, nEleMaps_, nEvent_, nLumi_, nRun_, nValMaps_, nVars_, ElectronMVANtuplizer_cfg::pileup, pileup_, ptThreshold_, muons2muons_cfi::pu, edm::EventID::run(), TrackRefitter_38T_cff::src, src_, tree_, valMapTokens_, MuonErrorMatrixValues_cff::values, vars_, electrons_cff::vertices, vertices_, and vtxN_.

272 {
273  // Fill global event info
274  nEvent_ = iEvent.id().event();
275  nRun_ = iEvent.id().run();
276  nLumi_ = iEvent.luminosityBlock();
277 
278  // Get Handles
279  auto src = src_.getValidHandle(iEvent);
280  auto vertices = vertices_.getValidHandle(iEvent);
281 
282  // Get MC only Handles, which are allowed to be non-valid
283  auto genParticles = genParticles_.getHandle(iEvent);
284  auto pileup = pileup_.getHandle(iEvent);
285 
286  vtxN_ = vertices->size();
287 
288  // Fill with true number of pileup
289  if(isMC_) {
290  for(const auto& pu : *pileup)
291  {
292  int bx = pu.getBunchCrossing();
293  if(bx == 0)
294  {
295  genNpu_ = pu.getPU_NumInteractions();
296  break;
297  }
298  }
299  }
300 
301  // Get MVA decisions
303  for (size_t k = 0; k < nEleMaps_; ++k) {
304  iEvent.getByToken(eleMapTokens_[k],decisions[k]);
305  }
306 
307  // Get MVA values
309  for (size_t k = 0; k < nValMaps_; ++k) {
310  iEvent.getByToken(valMapTokens_[k],values[k]);
311  }
312 
313  // Get MVA categories
315  for (size_t k = 0; k < nCats_; ++k) {
316  iEvent.getByToken(mvaCatTokens_[k],mvaCats[k]);
317  }
318 
319  for(size_t iEle = 0; iEle < src->size(); ++iEle) {
320 
321  const auto ele = src->ptrAt(iEle);
322 
323  eleQ_ = ele->charge();
324  ele3Q_ = ele->chargeInfo().isGsfCtfScPixConsistent;
325 
326  if (ele->pt() < ptThreshold_) {
327  continue;
328  }
329 
330  for (int iVar = 0; iVar < nVars_; ++iVar) {
331  vars_[iVar] = mvaVarMngr_.getValue(iVar, ele, iEvent);
332  }
333 
334  if (isMC_) {
336  }
337 
338  // gap variables
339  eleIsEB_ = ele->isEB();
340  eleIsEE_ = ele->isEE();
341  eleIsEBEEGap_ = ele->isEBEEGap();
342  eleIsEBEtaGap_ = ele->isEBEtaGap();
343  eleIsEBPhiGap_ = ele->isEBPhiGap();
344  eleIsEEDeeGap_ = ele->isEEDeeGap();
345  eleIsEERingGap_ = ele->isEERingGap();
346 
347  //
348  // Look up and save the ID decisions
349  //
350  for (size_t k = 0; k < nEleMaps_; ++k) {
351  mvaPasses_[k] = (int)(*decisions[k])[ele];
352  }
353 
354  for (size_t k = 0; k < nValMaps_; ++k) {
355  mvaValues_[k] = (*values[k])[ele];
356  }
357 
358  for (size_t k = 0; k < nCats_; ++k) {
359  mvaCats_[k] = (*mvaCats[k])[ele];
360  }
361 
362 
363  tree_->Fill();
364  }
365 
366 }
RunNumber_t run() const
Definition: EventID.h:39
EventNumber_t event() const
Definition: EventID.h:41
MultiTokenT< edm::View< reco::GsfElectron > > src_
edm::Handle< T > getHandle(const edm::Event &iEvent)
Definition: MultiToken.h:57
MultiTokenT< std::vector< reco::Vertex > > vertices_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:579
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:63
std::vector< edm::EDGetTokenT< edm::ValueMap< int > > > mvaCatTokens_
std::vector< float > mvaValues_
MultiTokenT< edm::View< reco::GenParticle > > genParticles_
std::vector< int > mvaPasses_
std::vector< int > mvaCats_
MultiTokenT< std::vector< PileupSummaryInfo > > pileup_
int matchToTruth(const T &el, const V &genParticles, int &genIdx)
int k[5][pyjets_maxn]
edm::Handle< T > getValidHandle(const edm::Event &iEvent)
Definition: MultiToken.h:83
std::vector< float > vars_
MVAVariableManager< reco::GsfElectron > mvaVarMngr_
float getValue(int index, const edm::Ptr< ParticleType > &ptclPtr, const edm::EventBase &iEvent) const
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > valMapTokens_
edm::EventID id() const
Definition: EventBase.h:60
std::vector< edm::EDGetTokenT< edm::ValueMap< bool > > > eleMapTokens_
void ElectronMVANtuplizer::beginJob ( void  )
inlineoverrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 68 of file ElectronMVANtuplizer.cc.

68 {};
void ElectronMVANtuplizer::endJob ( void  )
inlineoverrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 70 of file ElectronMVANtuplizer.cc.

References GenHFHadronMatcher_cfi::genParticles, and matchToTruth().

70 {};
void ElectronMVANtuplizer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 410 of file ElectronMVANtuplizer.cc.

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

410  {
411 
413  desc.add<edm::InputTag>("src");
414  desc.add<edm::InputTag>("vertices");
415  desc.add<edm::InputTag>("pileup");
416  desc.add<edm::InputTag>("genParticles");
417  desc.add<edm::InputTag>("srcMiniAOD");
418  desc.add<edm::InputTag>("verticesMiniAOD");
419  desc.add<edm::InputTag>("pileupMiniAOD");
420  desc.add<edm::InputTag>("genParticlesMiniAOD");
421  desc.add<std::string>("variableDefinition");
422  desc.add<bool>("isMC");
423  desc.add<double>("deltaR", 0.1);
424  desc.add<double>("ptThreshold", 5.0);
425  desc.addUntracked<std::vector<std::string>>("eleMVAs");
426  desc.addUntracked<std::vector<std::string>>("eleMVALabels");
427  desc.addUntracked<std::vector<std::string>>("eleMVAValMaps");
428  desc.addUntracked<std::vector<std::string>>("eleMVAValMapLabels");
429  desc.addUntracked<std::vector<std::string>>("eleMVACats");
430  desc.addUntracked<std::vector<std::string>>("eleMVACatLabels");
431  descriptions.addDefault(desc);
432 
433 }
void addDefault(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
template<class T , class V >
int ElectronMVANtuplizer::matchToTruth ( const T el,
const V &  genParticles,
int &  genIdx 
)
private

Definition at line 369 of file ElectronMVANtuplizer.cc.

References funct::abs(), HiRegitMuonDetachedTripletStep_cff::DeltaR, deltaR_, PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, mps_fire::i, TRUE_ELECTRON_FROM_TAU, TRUE_NON_PROMPT_ELECTRON, TRUE_PROMPT_ELECTRON, and UNMATCHED.

Referenced by analyze(), and endJob().

369  {
370 
371  genIdx = -1;
372 
373  //
374  // Explicit loop and geometric matching method (advised by Josh Bendavid)
375  //
376 
377  // Find the closest status 1 gen electron to the reco electron
378  double dR = 999;
379  for(size_t i=0; i<genParticles->size();i++){
380  const auto particle = genParticles->ptrAt(i);
381  // Drop everything that is not electron or not status 1
382  if( abs(particle->pdgId()) != 11 || particle->status() != 1 )
383  continue;
384  //
385  double dRtmp = ROOT::Math::VectorUtil::DeltaR( el->p4(), particle->p4() );
386  if( dRtmp < dR ){
387  dR = dRtmp;
388  genIdx = i;
389  }
390  }
391  // See if the closest electron is close enough. If not, no match found.
392  if( genIdx == -1 || dR >= deltaR_ ) {
393  return UNMATCHED;
394  }
395 
396  const auto closestElectron = genParticles->ptrAt(genIdx);
397 
398  if( closestElectron->fromHardProcessFinalState() )
399  return TRUE_PROMPT_ELECTRON;
400 
401  if( closestElectron->isDirectHardProcessTauDecayProductFinalState() )
402  return TRUE_ELECTRON_FROM_TAU;
403 
404  // What remains is true non-prompt electrons
406 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

Member Data Documentation

const double ElectronMVANtuplizer::deltaR_
private

Definition at line 112 of file ElectronMVANtuplizer.cc.

Referenced by matchToTruth().

int ElectronMVANtuplizer::ele3Q_
private

Definition at line 91 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

bool ElectronMVANtuplizer::eleIsEB_
private

Definition at line 97 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

bool ElectronMVANtuplizer::eleIsEBEEGap_
private

Definition at line 101 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

bool ElectronMVANtuplizer::eleIsEBEtaGap_
private

Definition at line 99 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

bool ElectronMVANtuplizer::eleIsEBPhiGap_
private

Definition at line 100 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

bool ElectronMVANtuplizer::eleIsEE_
private

Definition at line 98 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

bool ElectronMVANtuplizer::eleIsEEDeeGap_
private

Definition at line 102 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

bool ElectronMVANtuplizer::eleIsEERingGap_
private

Definition at line 103 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

const std::vector< std::string > ElectronMVANtuplizer::eleMapBranchNames_
private

Definition at line 118 of file ElectronMVANtuplizer.cc.

Referenced by ElectronMVANtuplizer().

const std::vector< std::string > ElectronMVANtuplizer::eleMapTags_
private

Definition at line 116 of file ElectronMVANtuplizer.cc.

Referenced by ElectronMVANtuplizer().

std::vector< edm::EDGetTokenT< edm::ValueMap<bool> > > ElectronMVANtuplizer::eleMapTokens_
private

Definition at line 117 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

float ElectronMVANtuplizer::eleQ_
private

Definition at line 90 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

int ElectronMVANtuplizer::genNpu_
private

Definition at line 86 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

MultiTokenT<edm::View<reco::GenParticle> > ElectronMVANtuplizer::genParticles_
private

Definition at line 136 of file ElectronMVANtuplizer.cc.

Referenced by analyze().

const bool ElectronMVANtuplizer::isMC_
private

Definition at line 111 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

int ElectronMVANtuplizer::matchedGenIdx_
private

Definition at line 93 of file ElectronMVANtuplizer.cc.

Referenced by analyze().

int ElectronMVANtuplizer::matchedToGenEle_
private

Definition at line 92 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

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

Definition at line 129 of file ElectronMVANtuplizer.cc.

Referenced by ElectronMVANtuplizer().

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

Definition at line 108 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

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

Definition at line 127 of file ElectronMVANtuplizer.cc.

Referenced by ElectronMVANtuplizer().

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

Definition at line 128 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

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

Definition at line 106 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

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

Definition at line 107 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

MVAVariableManager<reco::GsfElectron> ElectronMVANtuplizer::mvaVarMngr_
private

Definition at line 80 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

const size_t ElectronMVANtuplizer::nCats_
private

Definition at line 130 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

const size_t ElectronMVANtuplizer::nEleMaps_
private

Definition at line 119 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

int ElectronMVANtuplizer::nEvent_
private

Definition at line 85 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

int ElectronMVANtuplizer::nLumi_
private

Definition at line 85 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

int ElectronMVANtuplizer::nRun_
private

Definition at line 85 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

const size_t ElectronMVANtuplizer::nValMaps_
private

Definition at line 125 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

int ElectronMVANtuplizer::nVars_
private

Definition at line 82 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

MultiTokenT<std::vector<PileupSummaryInfo> > ElectronMVANtuplizer::pileup_
private

Definition at line 135 of file ElectronMVANtuplizer.cc.

Referenced by analyze().

const double ElectronMVANtuplizer::ptThreshold_
private

Definition at line 113 of file ElectronMVANtuplizer.cc.

Referenced by analyze().

MultiTokenT<edm::View<reco::GsfElectron> > ElectronMVANtuplizer::src_
private

Definition at line 133 of file ElectronMVANtuplizer.cc.

Referenced by analyze().

TTree* ElectronMVANtuplizer::tree_
private

Definition at line 78 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

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

Definition at line 124 of file ElectronMVANtuplizer.cc.

Referenced by ElectronMVANtuplizer().

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

Definition at line 122 of file ElectronMVANtuplizer.cc.

Referenced by ElectronMVANtuplizer().

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

Definition at line 123 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

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

Definition at line 81 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().

MultiTokenT<std::vector<reco::Vertex> > ElectronMVANtuplizer::vertices_
private

Definition at line 134 of file ElectronMVANtuplizer.cc.

Referenced by analyze().

int ElectronMVANtuplizer::vtxN_
private

Definition at line 87 of file ElectronMVANtuplizer.cc.

Referenced by analyze(), and ElectronMVANtuplizer().