CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Static Public Member Functions | Private Attributes
EgammaHLTGsfTrackVarProducer Class Reference
Inheritance diagram for EgammaHLTGsfTrackVarProducer:
edm::global::EDProducer<> edm::global::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Classes

struct  GsfTrackExtrapolations
 

Public Member Functions

 EgammaHLTGsfTrackVarProducer (const edm::ParameterSet &)
 
void fillAbsAbleVar (float &existVal, const float newVal) const
 
void produce (edm::StreamID, edm::Event &, const edm::EventSetup &) const override
 
- Public Member Functions inherited from edm::global::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
bool wantsStreamLuminosityBlocks () const final
 
bool wantsStreamRuns () const final
 
- Public Member Functions inherited from edm::global::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) 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::global::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Attributes

const edm::EDGetTokenT< reco::BeamSpotbeamSpotToken_
 
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMapchi2MapPutToken_
 
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMapdEtaMapPutToken_
 
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMapdEtaSeedMapPutToken_
 
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMapdPhiMapPutToken_
 
const edm::EDGetTokenT< reco::ElectronCollectionelectronToken_
 
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMapfbremMapPutToken_
 
const edm::EDGetTokenT< reco::GsfTrackCollectiongsfTrackToken_
 
const int lowerTrackNrToRemoveCut_
 
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecordmagneticFieldToken_
 
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMapmissingHitsMapPutToken_
 
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMapnLayerITMapPutToken_
 
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMaponeOverESeedMinusOneOverPMapPutToken_
 
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMaponeOverESuperMinusOneOverPMapPutToken_
 
const bool produceAbsValues_
 
const edm::EDGetTokenT< reco::RecoEcalCandidateCollectionrecoEcalCandToken_
 
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecordtrackerGeometryToken_
 
const int upperTrackNrToRemoveCut_
 
const bool useDefaultValuesForBarrel_
 
const bool useDefaultValuesForEndcap_
 
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMapvalidHitsMapPutToken_
 

Additional Inherited Members

- Public Types inherited from edm::global::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
template<typename T >
using BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T >
 
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- 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

Author
Roberto Covarelli (CERN)
Id
EgammaHLTGsfTrackVarProducer.cc,v 1.1 2012/01/23 12:56:38 sharper Exp

Definition at line 41 of file EgammaHLTGsfTrackVarProducer.cc.

Constructor & Destructor Documentation

◆ EgammaHLTGsfTrackVarProducer()

EgammaHLTGsfTrackVarProducer::EgammaHLTGsfTrackVarProducer ( const edm::ParameterSet config)
explicit

Definition at line 99 of file EgammaHLTGsfTrackVarProducer.cc.

101  consumes<reco::RecoEcalCandidateCollection>(config.getParameter<edm::InputTag>("recoEcalCandidateProducer"))),
102  electronToken_{consumes<reco::ElectronCollection>(config.getParameter<edm::InputTag>("inputCollection"))},
103  gsfTrackToken_{consumes<reco::GsfTrackCollection>(config.getParameter<edm::InputTag>("inputCollection"))},
104  beamSpotToken_{consumes<reco::BeamSpot>(config.getParameter<edm::InputTag>("beamSpotProducer"))},
107  upperTrackNrToRemoveCut_{config.getParameter<int>("upperTrackNrToRemoveCut")},
108  lowerTrackNrToRemoveCut_{config.getParameter<int>("lowerTrackNrToRemoveCut")},
109  useDefaultValuesForBarrel_{config.getParameter<bool>("useDefaultValuesForBarrel")},
110  useDefaultValuesForEndcap_{config.getParameter<bool>("useDefaultValuesForEndcap")},
111  produceAbsValues_{config.getParameter<bool>("produceAbsValues")},
112  dEtaMapPutToken_{produces<reco::RecoEcalCandidateIsolationMap>("Deta").setBranchAlias("deta")},
113  dEtaSeedMapPutToken_{produces<reco::RecoEcalCandidateIsolationMap>("DetaSeed").setBranchAlias("detaseed")},
114  dPhiMapPutToken_{produces<reco::RecoEcalCandidateIsolationMap>("Dphi").setBranchAlias("dphi")},
115  oneOverESuperMinusOneOverPMapPutToken_{produces<reco::RecoEcalCandidateIsolationMap>("OneOESuperMinusOneOP")},
116  oneOverESeedMinusOneOverPMapPutToken_{produces<reco::RecoEcalCandidateIsolationMap>("OneOESeedMinusOneOP")},
118  produces<reco::RecoEcalCandidateIsolationMap>("MissingHits").setBranchAlias("missinghits")},
119  validHitsMapPutToken_{produces<reco::RecoEcalCandidateIsolationMap>("ValidHits").setBranchAlias("validhits")},
120  nLayerITMapPutToken_{produces<reco::RecoEcalCandidateIsolationMap>("NLayerIT").setBranchAlias("nlayerit")},
121  chi2MapPutToken_{produces<reco::RecoEcalCandidateIsolationMap>("Chi2").setBranchAlias("chi2")},
122  fbremMapPutToken_{produces<reco::RecoEcalCandidateIsolationMap>("fbrem")} {}
const edm::EDGetTokenT< reco::ElectronCollection > electronToken_
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandToken_
Definition: config.py:1
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > oneOverESuperMinusOneOverPMapPutToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeometryToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > chi2MapPutToken_
const edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > validHitsMapPutToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > dEtaMapPutToken_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > fbremMapPutToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > oneOverESeedMinusOneOverPMapPutToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > dPhiMapPutToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > nLayerITMapPutToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > dEtaSeedMapPutToken_
const edm::EDGetTokenT< reco::GsfTrackCollection > gsfTrackToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > missingHitsMapPutToken_

Member Function Documentation

◆ fillAbsAbleVar()

void EgammaHLTGsfTrackVarProducer::fillAbsAbleVar ( float &  existVal,
const float  newVal 
) const
inline

Definition at line 60 of file EgammaHLTGsfTrackVarProducer.cc.

References funct::abs(), and produceAbsValues_.

Referenced by produce().

60  {
61  if (std::abs(newVal) < std::abs(existVal)) {
62  existVal = produceAbsValues_ ? std::abs(newVal) : newVal;
63  }
64  }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

◆ fillDescriptions()

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

Definition at line 124 of file EgammaHLTGsfTrackVarProducer.cc.

References edm::ConfigurationDescriptions::add(), and submitPVResolutionJobs::desc.

124  {
126  desc.add<edm::InputTag>(("recoEcalCandidateProducer"), edm::InputTag("hltRecoEcalSuperClusterActivityCandidate"));
127  desc.add<edm::InputTag>(("inputCollection"), edm::InputTag("hltActivityElectronGsfTracks"));
128  desc.add<edm::InputTag>(("beamSpotProducer"), edm::InputTag("hltOnlineBeamSpot"));
129  desc.add<int>(("upperTrackNrToRemoveCut"), 9999);
130  desc.add<int>(("lowerTrackNrToRemoveCut"), -1);
131  desc.add<bool>(("useDefaultValuesForBarrel"), false);
132  desc.add<bool>(("useDefaultValuesForEndcap"), false);
133  desc.add<bool>(("produceAbsValues"), false);
134 
135  descriptions.add("hltEgammaHLTGsfTrackVarProducer", desc);
136 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produce()

void EgammaHLTGsfTrackVarProducer::produce ( edm::StreamID  ,
edm::Event iEvent,
const edm::EventSetup iSetup 
) const
overridevirtual

Implements edm::global::EDProducerBase.

Definition at line 137 of file EgammaHLTGsfTrackVarProducer.cc.

References funct::abs(), AnalyticalPropagator_cfi::AnalyticalPropagator, anyDirection, beamSpotToken_, chi2MapPutToken_, dEtaMapPutToken_, dEtaSeedMapPutToken_, dPhiMapPutToken_, electronToken_, electrons_cff::fbrem, fbremMapPutToken_, fillAbsAbleVar(), edm::EventSetup::getData(), ecalDrivenGsfElectronCoresHGC_cff::gsfTracks, gsfTrackToken_, iEvent, edm::AssociationMap< Tag >::insert(), edm::Ref< C, T, F >::isNonnull(), HLT_2024v10_cff::magneticField, magneticFieldToken_, missingHitsMapPutToken_, nLayerITMapPutToken_, TrackCollections2monitor_cff::normalizedChi2, TrackCollections2monitor_cff::numberOfValidHits, oneOverESeedMinusOneOverPMapPutToken_, oneOverESuperMinusOneOverPMapPutToken_, recoEcalCandToken_, trackerGeometryToken_, upperTrackNrToRemoveCut_, useDefaultValuesForBarrel_, useDefaultValuesForEndcap_, and validHitsMapPutToken_.

137  {
138  // Get the HLT filtered objects
139  auto recoEcalCandHandle = iEvent.getHandle(recoEcalCandToken_);
140 
141  auto const& beamSpotPosition = iEvent.get(beamSpotToken_).position();
142  auto const& magneticField = iSetup.getData(magneticFieldToken_);
143  auto const& trackerGeometry = iSetup.getData(trackerGeometryToken_);
144 
147 
148  reco::RecoEcalCandidateIsolationMap dEtaMap(recoEcalCandHandle);
149  reco::RecoEcalCandidateIsolationMap dEtaSeedMap(recoEcalCandHandle);
150  reco::RecoEcalCandidateIsolationMap dPhiMap(recoEcalCandHandle);
151  reco::RecoEcalCandidateIsolationMap oneOverESuperMinusOneOverPMap(recoEcalCandHandle);
152  reco::RecoEcalCandidateIsolationMap oneOverESeedMinusOneOverPMap(recoEcalCandHandle);
153  reco::RecoEcalCandidateIsolationMap missingHitsMap(recoEcalCandHandle);
154  reco::RecoEcalCandidateIsolationMap validHitsMap(recoEcalCandHandle);
155  reco::RecoEcalCandidateIsolationMap nLayerITMap(recoEcalCandHandle);
156  reco::RecoEcalCandidateIsolationMap chi2Map(recoEcalCandHandle);
157  reco::RecoEcalCandidateIsolationMap fbremMap(recoEcalCandHandle);
158 
159  for (unsigned int iRecoEcalCand = 0; iRecoEcalCand < recoEcalCandHandle->size(); ++iRecoEcalCand) {
160  reco::RecoEcalCandidateRef recoEcalCandRef(recoEcalCandHandle, iRecoEcalCand);
161 
162  const reco::SuperClusterRef scRef = recoEcalCandRef->superCluster();
163  // the idea is that we can take the tracks from properly associated
164  // electrons or just take all gsf tracks with that sc as a seed
165  std::vector<const reco::GsfTrack*> gsfTracks;
166  if (auto electronHandle = iEvent.getHandle(electronToken_)) {
167  for (auto const& ele : *electronHandle) {
168  if (ele.superCluster() == scRef) {
169  gsfTracks.push_back(ele.gsfTrack().get());
170  }
171  }
172  } else {
173  for (auto const& trk : iEvent.get(gsfTrackToken_)) {
174  auto elseed = trk.extra()->seedRef().castTo<reco::ElectronSeedRef>();
175  if (elseed->caloCluster().castTo<reco::SuperClusterRef>() == scRef) {
176  gsfTracks.push_back(&trk);
177  }
178  }
179  }
180 
181  int nLayerITValue = -1;
182  int validHitsValue = 0;
183  float chi2Value = 9999999.;
184  float missingHitsValue = 9999999;
185  float dEtaInValue = 999999;
186  float dEtaSeedInValue = 999999;
187  float dPhiInValue = 999999;
188  float oneOverESuperMinusOneOverPValue = 999999;
189  float oneOverESeedMinusOneOverPValue = 999999;
190  float fbrem = 999999;
191 
192  const int nrTracks = gsfTracks.size();
193  const bool rmCutsDueToNrTracks = nrTracks <= lowerTrackNrToRemoveCut_ || nrTracks >= upperTrackNrToRemoveCut_;
194  // to use the default values, we require at least one track...
195  const bool useDefaultValues = std::abs(recoEcalCandRef->eta()) < 1.479
196  ? useDefaultValuesForBarrel_ && nrTracks >= 1
197  : useDefaultValuesForEndcap_ && nrTracks >= 1;
198 
199  MultiTrajectoryStateTransform mtsTransform(&trackerGeometry, &magneticField);
200  GsfTrackExtrapolations gsfTrackExtrapolations;
201 
202  if (rmCutsDueToNrTracks || useDefaultValues) {
203  nLayerITValue = 100;
204  dEtaInValue = 0;
205  dEtaSeedInValue = 0;
206  dPhiInValue = 0;
207  missingHitsValue = 0;
208  validHitsValue = 100;
209  chi2Value = 0;
210  oneOverESuperMinusOneOverPValue = 0;
211  oneOverESeedMinusOneOverPValue = 0;
212  fbrem = 0;
213  } else {
214  for (size_t trkNr = 0; trkNr < gsfTracks.size(); trkNr++) {
215  GlobalPoint scPos(scRef->x(), scRef->y(), scRef->z());
216 
217  gsfTrackExtrapolations(*gsfTracks[trkNr], *scRef, mtsTransform);
218 
219  EleRelPointPair scAtVtx(scRef->position(), gsfTrackExtrapolations.sclPos, beamSpotPosition);
220 
221  fbrem = calRelDelta(gsfTrackExtrapolations.innMom.mag(), gsfTrackExtrapolations.outMom.mag(), fbrem);
222 
223  float trkP = gsfTracks[trkNr]->p();
224  if (scRef->energy() != 0 && trkP != 0) {
225  fillAbsAbleVar(oneOverESuperMinusOneOverPValue, 1 / scRef->energy() - 1 / trkP);
226  }
227  if (scRef->seed().isNonnull() && scRef->seed()->energy() != 0 && trkP != 0) {
228  fillAbsAbleVar(oneOverESeedMinusOneOverPValue, 1 / scRef->seed()->energy() - 1 / trkP);
229  }
230 
231  if (gsfTracks[trkNr]->missingInnerHits() < missingHitsValue) {
232  missingHitsValue = gsfTracks[trkNr]->missingInnerHits();
233  }
234 
235  // we are saving the best value, and highest value of validHits is the
236  // best
237  if (gsfTracks[trkNr]->numberOfValidHits() > validHitsValue) {
238  validHitsValue = gsfTracks[trkNr]->numberOfValidHits();
239  }
240 
241  if (gsfTracks[trkNr]->hitPattern().pixelLayersWithMeasurement() > nLayerITValue) {
242  nLayerITValue = gsfTracks[trkNr]->hitPattern().pixelLayersWithMeasurement();
243  }
244 
245  if (gsfTracks[trkNr]->normalizedChi2() < chi2Value) {
246  chi2Value = gsfTracks[trkNr]->normalizedChi2();
247  }
248 
249  fillAbsAbleVar(dEtaInValue, scAtVtx.dEta());
250  fillAbsAbleVar(dEtaSeedInValue, scAtVtx.dEta() - scRef->position().eta() + scRef->seed()->position().eta());
251  fillAbsAbleVar(dPhiInValue, scAtVtx.dPhi());
252  }
253  }
254 
255  dEtaMap.insert(recoEcalCandRef, dEtaInValue);
256  dEtaSeedMap.insert(recoEcalCandRef, dEtaSeedInValue);
257  dPhiMap.insert(recoEcalCandRef, dPhiInValue);
258  oneOverESuperMinusOneOverPMap.insert(recoEcalCandRef, oneOverESuperMinusOneOverPValue);
259  oneOverESeedMinusOneOverPMap.insert(recoEcalCandRef, oneOverESeedMinusOneOverPValue);
260  missingHitsMap.insert(recoEcalCandRef, missingHitsValue);
261  validHitsMap.insert(recoEcalCandRef, validHitsValue);
262  nLayerITMap.insert(recoEcalCandRef, nLayerITValue);
263  chi2Map.insert(recoEcalCandRef, chi2Value);
264  fbremMap.insert(recoEcalCandRef, fbrem);
265  }
266 
267  iEvent.emplace(dEtaMapPutToken_, dEtaMap);
268  iEvent.emplace(dEtaSeedMapPutToken_, dEtaSeedMap);
269  iEvent.emplace(dPhiMapPutToken_, dPhiMap);
270  iEvent.emplace(oneOverESuperMinusOneOverPMapPutToken_, oneOverESuperMinusOneOverPMap);
271  iEvent.emplace(oneOverESeedMinusOneOverPMapPutToken_, oneOverESeedMinusOneOverPMap);
272  iEvent.emplace(missingHitsMapPutToken_, missingHitsMap);
273  iEvent.emplace(validHitsMapPutToken_, validHitsMap);
274  iEvent.emplace(nLayerITMapPutToken_, nLayerITMap);
275  iEvent.emplace(chi2MapPutToken_, chi2Map);
276  iEvent.emplace(fbremMapPutToken_, fbremMap);
277 }
const edm::EDGetTokenT< reco::ElectronCollection > electronToken_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandToken_
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > oneOverESuperMinusOneOverPMapPutToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeometryToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > chi2MapPutToken_
const edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
int iEvent
Definition: GenABIO.cc:224
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > validHitsMapPutToken_
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > dEtaMapPutToken_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > fbremMapPutToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > oneOverESeedMinusOneOverPMapPutToken_
void fillAbsAbleVar(float &existVal, const float newVal) const
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > dPhiMapPutToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > nLayerITMapPutToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > dEtaSeedMapPutToken_
const edm::EDGetTokenT< reco::GsfTrackCollection > gsfTrackToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > missingHitsMapPutToken_

Member Data Documentation

◆ beamSpotToken_

const edm::EDGetTokenT<reco::BeamSpot> EgammaHLTGsfTrackVarProducer::beamSpotToken_
private

Definition at line 70 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ chi2MapPutToken_

const edm::EDPutTokenT<reco::RecoEcalCandidateIsolationMap> EgammaHLTGsfTrackVarProducer::chi2MapPutToken_
private

Definition at line 89 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ dEtaMapPutToken_

const edm::EDPutTokenT<reco::RecoEcalCandidateIsolationMap> EgammaHLTGsfTrackVarProducer::dEtaMapPutToken_
private

Definition at line 81 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ dEtaSeedMapPutToken_

const edm::EDPutTokenT<reco::RecoEcalCandidateIsolationMap> EgammaHLTGsfTrackVarProducer::dEtaSeedMapPutToken_
private

Definition at line 82 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ dPhiMapPutToken_

const edm::EDPutTokenT<reco::RecoEcalCandidateIsolationMap> EgammaHLTGsfTrackVarProducer::dPhiMapPutToken_
private

Definition at line 83 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ electronToken_

const edm::EDGetTokenT<reco::ElectronCollection> EgammaHLTGsfTrackVarProducer::electronToken_
private

Definition at line 68 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ fbremMapPutToken_

const edm::EDPutTokenT<reco::RecoEcalCandidateIsolationMap> EgammaHLTGsfTrackVarProducer::fbremMapPutToken_
private

Definition at line 90 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ gsfTrackToken_

const edm::EDGetTokenT<reco::GsfTrackCollection> EgammaHLTGsfTrackVarProducer::gsfTrackToken_
private

Definition at line 69 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ lowerTrackNrToRemoveCut_

const int EgammaHLTGsfTrackVarProducer::lowerTrackNrToRemoveCut_
private

Definition at line 76 of file EgammaHLTGsfTrackVarProducer.cc.

◆ magneticFieldToken_

const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> EgammaHLTGsfTrackVarProducer::magneticFieldToken_
private

Definition at line 72 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ missingHitsMapPutToken_

const edm::EDPutTokenT<reco::RecoEcalCandidateIsolationMap> EgammaHLTGsfTrackVarProducer::missingHitsMapPutToken_
private

Definition at line 86 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ nLayerITMapPutToken_

const edm::EDPutTokenT<reco::RecoEcalCandidateIsolationMap> EgammaHLTGsfTrackVarProducer::nLayerITMapPutToken_
private

Definition at line 88 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ oneOverESeedMinusOneOverPMapPutToken_

const edm::EDPutTokenT<reco::RecoEcalCandidateIsolationMap> EgammaHLTGsfTrackVarProducer::oneOverESeedMinusOneOverPMapPutToken_
private

Definition at line 85 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ oneOverESuperMinusOneOverPMapPutToken_

const edm::EDPutTokenT<reco::RecoEcalCandidateIsolationMap> EgammaHLTGsfTrackVarProducer::oneOverESuperMinusOneOverPMapPutToken_
private

Definition at line 84 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ produceAbsValues_

const bool EgammaHLTGsfTrackVarProducer::produceAbsValues_
private

Definition at line 79 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by fillAbsAbleVar().

◆ recoEcalCandToken_

const edm::EDGetTokenT<reco::RecoEcalCandidateCollection> EgammaHLTGsfTrackVarProducer::recoEcalCandToken_
private

Definition at line 67 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ trackerGeometryToken_

const edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> EgammaHLTGsfTrackVarProducer::trackerGeometryToken_
private

Definition at line 73 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ upperTrackNrToRemoveCut_

const int EgammaHLTGsfTrackVarProducer::upperTrackNrToRemoveCut_
private

Definition at line 75 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ useDefaultValuesForBarrel_

const bool EgammaHLTGsfTrackVarProducer::useDefaultValuesForBarrel_
private

Definition at line 77 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ useDefaultValuesForEndcap_

const bool EgammaHLTGsfTrackVarProducer::useDefaultValuesForEndcap_
private

Definition at line 78 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().

◆ validHitsMapPutToken_

const edm::EDPutTokenT<reco::RecoEcalCandidateIsolationMap> EgammaHLTGsfTrackVarProducer::validHitsMapPutToken_
private

Definition at line 87 of file EgammaHLTGsfTrackVarProducer.cc.

Referenced by produce().