CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
ElectronHEEPIDValueMapProducer Class Reference
Inheritance diagram for ElectronHEEPIDValueMapProducer:
edm::stream::EDProducer<>

Classes

class  DataFormat
 
struct  DualToken
 

Public Member Functions

 ElectronHEEPIDValueMapProducer (const edm::ParameterSet &)
 
 ~ElectronHEEPIDValueMapProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Member Functions

void produce (edm::Event &, const edm::EventSetup &) override
 
template<typename T >
void setToken (DualToken< T > &token, const edm::ParameterSet &iPara, const std::string &tagAOD, const std::string &tagMiniAOD, DataFormat format)
 
template<typename T >
void setToken (edm::EDGetTokenT< T > &token, const edm::ParameterSet &iPara, const std::string &tag)
 
template<typename T >
void setToken (edm::EDGetTokenT< T > &token, edm::InputTag tag)
 
template<typename T >
void setToken (std::vector< DualToken< T > > &tokens, const edm::ParameterSet &iPara, const std::string &tagAOD, const std::string &tagMiniAOD, DataFormat format)
 
template<typename T >
void setToken (std::vector< edm::EDGetTokenT< T > > &tokens, const edm::ParameterSet &iPara, const std::string &tagName)
 

Static Private Member Functions

static float calTrkIso (const reco::GsfElectron &ele, const edm::View< reco::GsfElectron > &eles, const std::vector< edm::Handle< pat::PackedCandidateCollection > > &handles, const std::vector< EleTkIsolFromCands::PIDVeto > &pidVetos, const EleTkIsolFromCands &trkIsoCalc)
 
template<typename T >
static edm::Handle< TgetHandle (const edm::Event &iEvent, const DualToken< T > &token)
 
template<typename T >
static edm::Handle< TgetHandle (const edm::Event &iEvent, const edm::EDGetTokenT< T > &token)
 
template<typename T >
static std::vector< edm::Handle< T > > getHandles (const edm::Event &iEvent, const std::vector< DualToken< T > > &tokens)
 
template<typename T >
static bool isEventAOD (const edm::Event &iEvent, const DualToken< T > &token)
 
static int nrSaturatedCrysIn5x5 (const reco::GsfElectron &ele, edm::Handle< EcalRecHitCollection > &ebHits, edm::Handle< EcalRecHitCollection > &eeHits, edm::ESHandle< CaloTopology > &caloTopo)
 
template<typename T >
static void writeValueMap (edm::Event &iEvent, const edm::Handle< edm::View< reco::GsfElectron > > &handle, const std::vector< T > &values, const std::string &label)
 

Private Attributes

edm::EDGetTokenT< reco::BeamSpotbeamSpotToken_
 
std::vector< DualToken< pat::PackedCandidateCollection > > candTokens_
 
std::vector< EleTkIsolFromCands::PIDVetocandVetosAOD_
 
std::vector< EleTkIsolFromCands::PIDVetocandVetosMiniAOD_
 
DataFormat dataFormat_
 
DualToken< EcalRecHitCollectionebRecHitToken_
 
DualToken< EcalRecHitCollectioneeRecHitToken_
 
DualToken< edm::View< reco::GsfElectron > > eleToken_
 
bool makeTrkIso04_
 
EleTkIsolFromCands trkIso04Calc_
 
EleTkIsolFromCands trkIsoCalc_
 

Static Private Attributes

static const std::string eleNrSaturateIn5x5Label_ = "eleNrSaturateIn5x5"
 
static const std::string eleTrkPtIso04Label_ = "eleTrkPtIso04"
 
static const std::string eleTrkPtIsoLabel_ = "eleTrkPtIso"
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Detailed Description

Definition at line 31 of file ElectronHEEPIDValueMapProducer.cc.

Constructor & Destructor Documentation

◆ ElectronHEEPIDValueMapProducer()

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

Definition at line 198 of file ElectronHEEPIDValueMapProducer.cc.

199  : trkIsoCalc_(iConfig.getParameter<edm::ParameterSet>("trkIsoConfig")),
200  trkIso04Calc_(iConfig.getParameter<edm::ParameterSet>("trkIso04Config")),
201  makeTrkIso04_(iConfig.getParameter<bool>("makeTrkIso04")),
202  dataFormat_(iConfig.getParameter<int>("dataFormat")) {
203  setToken(ebRecHitToken_, iConfig, "ebRecHitsAOD", "ebRecHitsMiniAOD", dataFormat_);
204  setToken(eeRecHitToken_, iConfig, "eeRecHitsAOD", "eeRecHitsMiniAOD", dataFormat_);
205  setToken(eleToken_, iConfig, "elesAOD", "elesMiniAOD", dataFormat_);
206  setToken(candTokens_, iConfig, "candsAOD", "candsMiniAOD", dataFormat_);
207  setToken(beamSpotToken_, iConfig, "beamSpot");
208 
209  auto fillVetos = [](const auto& in, auto& out) {
210  std::transform(in.begin(), in.end(), std::back_inserter(out), EleTkIsolFromCands::pidVetoFromStr);
211  };
212 
213  fillVetos(iConfig.getParameter<std::vector<std::string> >("candVetosAOD"), candVetosAOD_);
214  if (candVetosAOD_.size() != iConfig.getParameter<std::vector<edm::InputTag> >("candsAOD").size()) {
215  throw cms::Exception("ConfigError") << " Error candVetosAOD should be the same size as candsAOD " << std::endl;
216  }
217 
218  fillVetos(iConfig.getParameter<std::vector<std::string> >("candVetosMiniAOD"), candVetosMiniAOD_);
219  if (candVetosMiniAOD_.size() != iConfig.getParameter<std::vector<edm::InputTag> >("candsMiniAOD").size()) {
220  throw cms::Exception("ConfigError") << " Error candVetosMiniAOD should be the same size as candsMiniAOD "
221  << std::endl;
222  }
223 
224  produces<edm::ValueMap<float> >(eleTrkPtIsoLabel_);
225  if (makeTrkIso04_)
226  produces<edm::ValueMap<float> >(eleTrkPtIso04Label_);
227  produces<edm::ValueMap<int> >(eleNrSaturateIn5x5Label_);
228 }

References beamSpotToken_, candTokens_, candVetosAOD_, candVetosMiniAOD_, dataFormat_, ebRecHitToken_, eeRecHitToken_, eleNrSaturateIn5x5Label_, eleToken_, eleTrkPtIso04Label_, eleTrkPtIsoLabel_, Exception, edm::ParameterSet::getParameter(), recoMuon::in, makeTrkIso04_, MillePedeFileConverter_cfg::out, EleTkIsolFromCands::pidVetoFromStr(), setToken(), findQualityFiles::size, and HcalDetIdTransform::transform().

◆ ~ElectronHEEPIDValueMapProducer()

ElectronHEEPIDValueMapProducer::~ElectronHEEPIDValueMapProducer ( )
override

Definition at line 230 of file ElectronHEEPIDValueMapProducer.cc.

230 {}

Member Function Documentation

◆ calTrkIso()

float ElectronHEEPIDValueMapProducer::calTrkIso ( const reco::GsfElectron ele,
const edm::View< reco::GsfElectron > &  eles,
const std::vector< edm::Handle< pat::PackedCandidateCollection > > &  handles,
const std::vector< EleTkIsolFromCands::PIDVeto > &  pidVetos,
const EleTkIsolFromCands trkIsoCalc 
)
staticprivate

Definition at line 271 of file ElectronHEEPIDValueMapProducer.cc.

275  {
276  if (ele.gsfTrack().isNull())
278  else {
279  float trkIso = 0.;
280  for (size_t handleNr = 0; handleNr < handles.size(); handleNr++) {
281  auto& handle = handles[handleNr];
282  if (handle.isValid()) {
283  if (handleNr < pidVetos.size()) {
284  trkIso += trkIsoCalc.calIsolPt(*ele.gsfTrack(), *handle, pidVetos[handleNr]);
285  } else {
286  throw cms::Exception("LogicError") << " somehow the pidVetos and handles do not much, given this is checked "
287  "at construction time, something has gone wrong in the code handle nr "
288  << handleNr << " size of vetos " << pidVetos.size();
289  }
290  }
291  }
292  return trkIso;
293  }
294 }

References EleTkIsolFromCands::calIsolPt(), Exception, reco::GsfElectron::gsfTrack(), patZpeak::handle, edm::Ref< C, T, F >::isNull(), SiStripPI::max, and ZMuMuCategoriesSequences_cff::trkIso.

Referenced by produce().

◆ fillDescriptions()

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

Definition at line 308 of file ElectronHEEPIDValueMapProducer.cc.

308  {
310  desc.add<edm::InputTag>("beamSpot", edm::InputTag("offlineBeamSpot"));
311  desc.add<edm::InputTag>("ebRecHitsAOD", edm::InputTag("reducedEcalRecHitsEB"));
312  desc.add<edm::InputTag>("eeRecHitsAOD", edm::InputTag("reducedEcalRecHitsEE"));
313  desc.add<std::vector<edm::InputTag> >("candsAOD", {edm::InputTag("packedCandidates")});
314  desc.add<std::vector<std::string> >("candVetosAOD", {"none"});
315  desc.add<edm::InputTag>("elesAOD", edm::InputTag("gedGsfElectrons"));
316 
317  desc.add<edm::InputTag>("ebRecHitsMiniAOD", edm::InputTag("reducedEcalRecHitsEB"));
318  desc.add<edm::InputTag>("eeRecHitsMiniAOD", edm::InputTag("reducedEcalRecHitsEE"));
319  desc.add<std::vector<edm::InputTag> >("candsMiniAOD", {edm::InputTag("packedCandidates")});
320  desc.add<std::vector<std::string> >("candVetosMiniAOD", {"none"});
321  desc.add<edm::InputTag>("elesMiniAOD", edm::InputTag("gedGsfElectrons"));
322  desc.add<int>("dataFormat", 0);
323  desc.add<bool>("makeTrkIso04", false);
324  desc.add("trkIsoConfig", EleTkIsolFromCands::pSetDescript());
325  desc.add("trkIso04Config", EleTkIsolFromCands::pSetDescript());
326 
327  descriptions.addDefault(desc);
328 }

References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), HLT_2018_cff::InputTag, and EleTkIsolFromCands::pSetDescript().

◆ getHandle() [1/2]

template<typename T >
static edm::Handle<T> ElectronHEEPIDValueMapProducer::getHandle ( const edm::Event iEvent,
const DualToken< T > &  token 
)
inlinestaticprivate

Definition at line 137 of file ElectronHEEPIDValueMapProducer.cc.

137  {
139  if (!token.aod.isUninitialized())
140  iEvent.getByToken(token.aod, handle);
141  if (!handle.isValid() && !token.miniAOD.isUninitialized())
142  iEvent.getByToken(token.miniAOD, handle);
143  return handle;
144  }

References patZpeak::handle, iEvent, and unpackBuffers-CaloStage2::token.

◆ getHandle() [2/2]

template<typename T >
static edm::Handle<T> ElectronHEEPIDValueMapProducer::getHandle ( const edm::Event iEvent,
const edm::EDGetTokenT< T > &  token 
)
inlinestaticprivate

Definition at line 131 of file ElectronHEEPIDValueMapProducer.cc.

131  {
133  iEvent.getByToken(token, handle);
134  return handle;
135  }

References patZpeak::handle, iEvent, and unpackBuffers-CaloStage2::token.

Referenced by produce().

◆ getHandles()

template<typename T >
static std::vector<edm::Handle<T> > ElectronHEEPIDValueMapProducer::getHandles ( const edm::Event iEvent,
const std::vector< DualToken< T > > &  tokens 
)
inlinestaticprivate

Definition at line 147 of file ElectronHEEPIDValueMapProducer.cc.

147  {
148  std::vector<edm::Handle<T> > handles(tokens.size());
149  if (tokens.empty())
150  return handles;
151  if (!tokens[0].aod.isUninitialized())
152  iEvent.getByToken(tokens[0].aod, handles[0]);
153  bool isAOD = handles[0].isValid();
154  if (!isAOD && !tokens[0].miniAOD.isUninitialized())
155  iEvent.getByToken(tokens[0].miniAOD, handles[0]);
156 
157  for (size_t tokenNr = 1; tokenNr < tokens.size(); tokenNr++) {
158  auto token = isAOD ? tokens[tokenNr].aod : tokens[tokenNr].miniAOD;
159  if (!token.isUninitialized())
160  iEvent.getByToken(token, handles[tokenNr]);
161  }
162  return handles;
163  }

References iEvent, HLTEGTnPMonitor_cfi::isAOD, PAT_cff::miniAOD, and unpackBuffers-CaloStage2::token.

Referenced by produce().

◆ isEventAOD()

template<typename T >
static bool ElectronHEEPIDValueMapProducer::isEventAOD ( const edm::Event iEvent,
const DualToken< T > &  token 
)
inlinestaticprivate

Definition at line 166 of file ElectronHEEPIDValueMapProducer.cc.

166  {
168  if (!token.aod.isUninitialized())
169  iEvent.getByToken(token.aod, handle);
170  if (handle.isValid())
171  return true;
172  else
173  return false;
174  }

References patZpeak::handle, iEvent, and unpackBuffers-CaloStage2::token.

Referenced by produce().

◆ nrSaturatedCrysIn5x5()

int ElectronHEEPIDValueMapProducer::nrSaturatedCrysIn5x5 ( const reco::GsfElectron ele,
edm::Handle< EcalRecHitCollection > &  ebHits,
edm::Handle< EcalRecHitCollection > &  eeHits,
edm::ESHandle< CaloTopology > &  caloTopo 
)
staticprivate

◆ produce()

void ElectronHEEPIDValueMapProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 232 of file ElectronHEEPIDValueMapProducer.cc.

232  {
233  auto eleHandle = getHandle(iEvent, eleToken_);
234  auto ebRecHitHandle = getHandle(iEvent, ebRecHitToken_);
235  auto eeRecHitHandle = getHandle(iEvent, eeRecHitToken_);
236  auto beamSpotHandle = getHandle(iEvent, beamSpotToken_);
237  auto candHandles = getHandles(iEvent, candTokens_);
238 
239  bool isAOD = isEventAOD(iEvent, eleToken_);
240  const auto& candVetos = isAOD ? candVetosAOD_ : candVetosMiniAOD_;
241 
242  edm::ESHandle<CaloTopology> caloTopoHandle;
243  iSetup.get<CaloTopologyRecord>().get(caloTopoHandle);
244 
245  std::vector<float> eleTrkPtIso;
246  std::vector<float> eleTrkPtIso04;
247  std::vector<int> eleNrSaturateIn5x5;
248  for (auto const& ele : *eleHandle) {
249  eleTrkPtIso.push_back(calTrkIso(ele, *eleHandle, candHandles, candVetos, trkIsoCalc_));
250  if (makeTrkIso04_) {
251  eleTrkPtIso04.push_back(calTrkIso(ele, *eleHandle, candHandles, candVetos, trkIso04Calc_));
252  }
253  eleNrSaturateIn5x5.push_back(nrSaturatedCrysIn5x5(ele, ebRecHitHandle, eeRecHitHandle, caloTopoHandle));
254  }
255 
256  writeValueMap(iEvent, eleHandle, eleTrkPtIso, eleTrkPtIsoLabel_);
257  if (makeTrkIso04_)
258  writeValueMap(iEvent, eleHandle, eleTrkPtIso04, eleTrkPtIso04Label_);
259  writeValueMap(iEvent, eleHandle, eleNrSaturateIn5x5, eleNrSaturateIn5x5Label_);
260 }

References beamSpotToken_, calTrkIso(), candTokens_, candVetosAOD_, candVetosMiniAOD_, ebRecHitToken_, eeRecHitToken_, eleNrSaturateIn5x5Label_, eleToken_, eleTrkPtIso04Label_, eleTrkPtIsoLabel_, edm::EventSetup::get(), get, getHandle(), getHandles(), iEvent, HLTEGTnPMonitor_cfi::isAOD, isEventAOD(), makeTrkIso04_, nrSaturatedCrysIn5x5(), trkIso04Calc_, trkIsoCalc_, and writeValueMap().

◆ setToken() [1/5]

template<typename T >
void ElectronHEEPIDValueMapProducer::setToken ( DualToken< T > &  token,
const edm::ParameterSet iPara,
const std::string &  tagAOD,
const std::string &  tagMiniAOD,
DataFormat  format 
)
inlineprivate

Definition at line 97 of file ElectronHEEPIDValueMapProducer.cc.

101  {
102  if (format.tryAOD())
103  token.aod = consumes<T>(iPara.getParameter<edm::InputTag>(tagAOD));
104  if (format.tryMiniAOD())
105  token.miniAOD = consumes<T>(iPara.getParameter<edm::InputTag>(tagMiniAOD));
106  }

References edm::ParameterSet::getParameter(), and unpackBuffers-CaloStage2::token.

◆ setToken() [2/5]

template<typename T >
void ElectronHEEPIDValueMapProducer::setToken ( edm::EDGetTokenT< T > &  token,
const edm::ParameterSet iPara,
const std::string &  tag 
)
inlineprivate

◆ setToken() [3/5]

template<typename T >
void ElectronHEEPIDValueMapProducer::setToken ( edm::EDGetTokenT< T > &  token,
edm::InputTag  tag 
)
inlineprivate

Definition at line 80 of file ElectronHEEPIDValueMapProducer.cc.

80  {
81  token = consumes<T>(tag);
82  }

References GlobalPosition_Frontier_DevDB_cff::tag, and unpackBuffers-CaloStage2::token.

Referenced by ElectronHEEPIDValueMapProducer(), and setToken().

◆ setToken() [4/5]

template<typename T >
void ElectronHEEPIDValueMapProducer::setToken ( std::vector< DualToken< T > > &  tokens,
const edm::ParameterSet iPara,
const std::string &  tagAOD,
const std::string &  tagMiniAOD,
DataFormat  format 
)
inlineprivate

Definition at line 108 of file ElectronHEEPIDValueMapProducer.cc.

112  {
113  auto tagsAOD = iPara.getParameter<std::vector<edm::InputTag> >(tagAOD);
114  auto tagsMiniAOD = iPara.getParameter<std::vector<edm::InputTag> >(tagMiniAOD);
115  size_t maxSize = std::max(tagsAOD.size(), tagsMiniAOD.size());
116  tokens.clear();
117  tokens.resize(maxSize);
118  if (format.tryAOD()) {
119  for (size_t tagNr = 0; tagNr < tagsAOD.size(); tagNr++) {
120  setToken(tokens[tagNr].aod, tagsAOD[tagNr]);
121  }
122  }
123  if (format.tryMiniAOD()) {
124  for (size_t tagNr = 0; tagNr < tagsMiniAOD.size(); tagNr++) {
125  setToken(tokens[tagNr].miniAOD, tagsMiniAOD[tagNr]);
126  }
127  }
128  }

References edm::ParameterSet::getParameter(), SiStripPI::max, reco_skim_cfg_mod::maxSize, PAT_cff::miniAOD, and setToken().

◆ setToken() [5/5]

template<typename T >
void ElectronHEEPIDValueMapProducer::setToken ( std::vector< edm::EDGetTokenT< T > > &  tokens,
const edm::ParameterSet iPara,
const std::string &  tagName 
)
inlineprivate

Definition at line 88 of file ElectronHEEPIDValueMapProducer.cc.

88  {
89  auto tags = iPara.getParameter<std::vector<edm::InputTag> >(tagName);
90  for (auto& tag : tags) {
92  setToken(token, tag);
93  tokens.push_back(token);
94  }
95  }

References edm::ParameterSet::getParameter(), setToken(), GlobalPosition_Frontier_DevDB_cff::tag, JetPartonCorrections_cff::tagName, triggerMatcherToHLTDebug_cfi::tags, and unpackBuffers-CaloStage2::token.

◆ writeValueMap()

template<typename T >
void ElectronHEEPIDValueMapProducer::writeValueMap ( edm::Event iEvent,
const edm::Handle< edm::View< reco::GsfElectron > > &  handle,
const std::vector< T > &  values,
const std::string &  label 
)
staticprivate

Definition at line 297 of file ElectronHEEPIDValueMapProducer.cc.

300  {
301  std::unique_ptr<edm::ValueMap<T> > valMap(new edm::ValueMap<T>());
302  typename edm::ValueMap<T>::Filler filler(*valMap);
303  filler.insert(handle, values.begin(), values.end());
304  filler.fill();
305  iEvent.put(std::move(valMap), label);
306 }

References trigObjTnPSource_cfi::filler, patZpeak::handle, iEvent, label, eostools::move(), and contentValuesCheck::values.

Referenced by produce().

Member Data Documentation

◆ beamSpotToken_

edm::EDGetTokenT<reco::BeamSpot> ElectronHEEPIDValueMapProducer::beamSpotToken_
private

Definition at line 180 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by ElectronHEEPIDValueMapProducer(), and produce().

◆ candTokens_

std::vector<DualToken<pat::PackedCandidateCollection> > ElectronHEEPIDValueMapProducer::candTokens_
private

Definition at line 179 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by ElectronHEEPIDValueMapProducer(), and produce().

◆ candVetosAOD_

std::vector<EleTkIsolFromCands::PIDVeto> ElectronHEEPIDValueMapProducer::candVetosAOD_
private

Definition at line 186 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by ElectronHEEPIDValueMapProducer(), and produce().

◆ candVetosMiniAOD_

std::vector<EleTkIsolFromCands::PIDVeto> ElectronHEEPIDValueMapProducer::candVetosMiniAOD_
private

Definition at line 187 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by ElectronHEEPIDValueMapProducer(), and produce().

◆ dataFormat_

DataFormat ElectronHEEPIDValueMapProducer::dataFormat_
private

Definition at line 185 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by ElectronHEEPIDValueMapProducer().

◆ ebRecHitToken_

DualToken<EcalRecHitCollection> ElectronHEEPIDValueMapProducer::ebRecHitToken_
private

Definition at line 176 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by ElectronHEEPIDValueMapProducer(), and produce().

◆ eeRecHitToken_

DualToken<EcalRecHitCollection> ElectronHEEPIDValueMapProducer::eeRecHitToken_
private

Definition at line 177 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by ElectronHEEPIDValueMapProducer(), and produce().

◆ eleNrSaturateIn5x5Label_

const std::string ElectronHEEPIDValueMapProducer::eleNrSaturateIn5x5Label_ = "eleNrSaturateIn5x5"
staticprivate

Definition at line 191 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by ElectronHEEPIDValueMapProducer(), and produce().

◆ eleToken_

DualToken<edm::View<reco::GsfElectron> > ElectronHEEPIDValueMapProducer::eleToken_
private

Definition at line 178 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by ElectronHEEPIDValueMapProducer(), and produce().

◆ eleTrkPtIso04Label_

const std::string ElectronHEEPIDValueMapProducer::eleTrkPtIso04Label_ = "eleTrkPtIso04"
staticprivate

Definition at line 190 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by ElectronHEEPIDValueMapProducer(), and produce().

◆ eleTrkPtIsoLabel_

const std::string ElectronHEEPIDValueMapProducer::eleTrkPtIsoLabel_ = "eleTrkPtIso"
staticprivate

Definition at line 189 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by ElectronHEEPIDValueMapProducer(), and produce().

◆ makeTrkIso04_

bool ElectronHEEPIDValueMapProducer::makeTrkIso04_
private

Definition at line 184 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by ElectronHEEPIDValueMapProducer(), and produce().

◆ trkIso04Calc_

EleTkIsolFromCands ElectronHEEPIDValueMapProducer::trkIso04Calc_
private

Definition at line 183 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by produce().

◆ trkIsoCalc_

EleTkIsolFromCands ElectronHEEPIDValueMapProducer::trkIsoCalc_
private

Definition at line 182 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by produce().

PAT_cff.miniAOD
miniAOD
Definition: PAT_cff.py:15
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
reco::GsfElectron::gsfTrack
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
Definition: GsfElectron.h:164
EcalClusterToolsT::nrSaturatedCrysIn5x5
static int nrSaturatedCrysIn5x5(const DetId &id, const EcalRecHitCollection *recHits, const CaloTopology *topology)
Definition: EcalClusterTools.h:1826
edm::Handle::product
T const * product() const
Definition: Handle.h:70
ElectronHEEPIDValueMapProducer::eleToken_
DualToken< edm::View< reco::GsfElectron > > eleToken_
Definition: ElectronHEEPIDValueMapProducer.cc:178
ElectronHEEPIDValueMapProducer::setToken
void setToken(edm::EDGetTokenT< T > &token, edm::InputTag tag)
Definition: ElectronHEEPIDValueMapProducer.cc:80
patZpeak.handle
handle
Definition: patZpeak.py:23
edm::EDGetTokenT
Definition: EDGetToken.h:33
edm::Ref::isNull
bool isNull() const
Checks for null.
Definition: Ref.h:235
ZMuMuCategoriesSequences_cff.trkIso
trkIso
Definition: ZMuMuCategoriesSequences_cff.py:140
ElectronHEEPIDValueMapProducer::writeValueMap
static void writeValueMap(edm::Event &iEvent, const edm::Handle< edm::View< reco::GsfElectron > > &handle, const std::vector< T > &values, const std::string &label)
Definition: ElectronHEEPIDValueMapProducer.cc:297
EleTkIsolFromCands::pidVetoFromStr
static PIDVeto pidVetoFromStr(const std::string &vetoStr)
Definition: EleTkIsolFromCands.cc:125
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
ElectronHEEPIDValueMapProducer::eleNrSaturateIn5x5Label_
static const std::string eleNrSaturateIn5x5Label_
Definition: ElectronHEEPIDValueMapProducer.cc:191
ElectronHEEPIDValueMapProducer::isEventAOD
static bool isEventAOD(const edm::Event &iEvent, const DualToken< T > &token)
Definition: ElectronHEEPIDValueMapProducer.cc:166
ElectronHEEPIDValueMapProducer::eeRecHitToken_
DualToken< EcalRecHitCollection > eeRecHitToken_
Definition: ElectronHEEPIDValueMapProducer.cc:177
CaloTopologyRecord
Definition: CaloTopologyRecord.h:10
edm::Handle
Definition: AssociativeIterator.h:50
EcalBarrel
Definition: EcalSubdetector.h:10
DetId
Definition: DetId.h:17
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
ElectronHEEPIDValueMapProducer::calTrkIso
static float calTrkIso(const reco::GsfElectron &ele, const edm::View< reco::GsfElectron > &eles, const std::vector< edm::Handle< pat::PackedCandidateCollection > > &handles, const std::vector< EleTkIsolFromCands::PIDVeto > &pidVetos, const EleTkIsolFromCands &trkIsoCalc)
Definition: ElectronHEEPIDValueMapProducer.cc:271
ElectronHEEPIDValueMapProducer::eleTrkPtIso04Label_
static const std::string eleTrkPtIso04Label_
Definition: ElectronHEEPIDValueMapProducer.cc:190
HLTEGTnPMonitor_cfi.isAOD
isAOD
Definition: HLTEGTnPMonitor_cfi.py:1001
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
ElectronHEEPIDValueMapProducer::candTokens_
std::vector< DualToken< pat::PackedCandidateCollection > > candTokens_
Definition: ElectronHEEPIDValueMapProducer.cc:179
contentValuesCheck.values
values
Definition: contentValuesCheck.py:38
edm::ESHandle< CaloTopology >
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition: HcalDetIdTransform.cc:7
ElectronHEEPIDValueMapProducer::nrSaturatedCrysIn5x5
static int nrSaturatedCrysIn5x5(const reco::GsfElectron &ele, edm::Handle< EcalRecHitCollection > &ebHits, edm::Handle< EcalRecHitCollection > &eeHits, edm::ESHandle< CaloTopology > &caloTopo)
Definition: ElectronHEEPIDValueMapProducer.cc:262
ElectronHEEPIDValueMapProducer::getHandles
static std::vector< edm::Handle< T > > getHandles(const edm::Event &iEvent, const std::vector< DualToken< T > > &tokens)
Definition: ElectronHEEPIDValueMapProducer.cc:147
ElectronHEEPIDValueMapProducer::makeTrkIso04_
bool makeTrkIso04_
Definition: ElectronHEEPIDValueMapProducer.cc:184
magneticfield::handles
std::vector< BaseVolumeHandle * > handles
Definition: BaseVolumeHandle.h:154
ElectronHEEPIDValueMapProducer::candVetosMiniAOD_
std::vector< EleTkIsolFromCands::PIDVeto > candVetosMiniAOD_
Definition: ElectronHEEPIDValueMapProducer.cc:187
FastTrackerRecHitMaskProducer_cfi.recHits
recHits
Definition: FastTrackerRecHitMaskProducer_cfi.py:8
EleTkIsolFromCands::calIsolPt
double calIsolPt(Args &&... args) const
Definition: EleTkIsolFromCands.h:95
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::ParameterSet
Definition: ParameterSet.h:36
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
ElectronHEEPIDValueMapProducer::ebRecHitToken_
DualToken< EcalRecHitCollection > ebRecHitToken_
Definition: ElectronHEEPIDValueMapProducer.cc:176
trigObjTnPSource_cfi.filler
filler
Definition: trigObjTnPSource_cfi.py:21
recoMuon::in
Definition: RecoMuonEnumerators.h:6
iEvent
int iEvent
Definition: GenABIO.cc:224
EleTkIsolFromCands::pSetDescript
static edm::ParameterSetDescription pSetDescript()
Definition: EleTkIsolFromCands.cc:47
ElectronHEEPIDValueMapProducer::getHandle
static edm::Handle< T > getHandle(const edm::Event &iEvent, const edm::EDGetTokenT< T > &token)
Definition: ElectronHEEPIDValueMapProducer.cc:131
get
#define get
ElectronHEEPIDValueMapProducer::dataFormat_
DataFormat dataFormat_
Definition: ElectronHEEPIDValueMapProducer.cc:185
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
reco_skim_cfg_mod.maxSize
maxSize
Definition: reco_skim_cfg_mod.py:154
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::ValueMap
Definition: ValueMap.h:107
Exception
Definition: hltDiff.cc:246
format
ElectronHEEPIDValueMapProducer::trkIso04Calc_
EleTkIsolFromCands trkIso04Calc_
Definition: ElectronHEEPIDValueMapProducer.cc:183
reco::GsfElectron::superCluster
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:163
triggerMatcherToHLTDebug_cfi.tags
tags
Definition: triggerMatcherToHLTDebug_cfi.py:9
ElectronHEEPIDValueMapProducer::trkIsoCalc_
EleTkIsolFromCands trkIsoCalc_
Definition: ElectronHEEPIDValueMapProducer.cc:182
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
edm::helper::Filler
Definition: ValueMap.h:22
ElectronHEEPIDValueMapProducer::beamSpotToken_
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
Definition: ElectronHEEPIDValueMapProducer.cc:180
ElectronHEEPIDValueMapProducer::eleTrkPtIsoLabel_
static const std::string eleTrkPtIsoLabel_
Definition: ElectronHEEPIDValueMapProducer.cc:189
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
JetPartonCorrections_cff.tagName
tagName
Definition: JetPartonCorrections_cff.py:12
edm::InputTag
Definition: InputTag.h:15
label
const char * label
Definition: PFTauDecayModeTools.cc:11
ElectronHEEPIDValueMapProducer::candVetosAOD_
std::vector< EleTkIsolFromCands::PIDVeto > candVetosAOD_
Definition: ElectronHEEPIDValueMapProducer.cc:186
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316