CMS 3D CMS Logo

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

Public Member Functions

 LeptonUpdater (const edm::ParameterSet &iConfig)
 
template<>
const std::vector< double > & miniIsoParams (const pat::Electron &lep) const
 
const std::vector< double > & miniIsoParams (const T &lep) const
 
void produce (edm::StreamID, edm::Event &, edm::EventSetup const &) const override
 
void readMiniIsoParams (const edm::ParameterSet &iConfig)
 
template<>
void readMiniIsoParams (const edm::ParameterSet &iConfig)
 
template<>
void recomputeMuonBasicSelectors (pat::Muon &lep, const reco::Vertex &pv, const bool do_hip_mitigation_2016) const
 
void recomputeMuonBasicSelectors (T &, const reco::Vertex &, const bool) const
 
template<>
void setDZ (pat::Electron &anElectron, const reco::Vertex &pv) const
 
template<>
void setDZ (pat::Muon &aMuon, const reco::Vertex &pv) const
 
void setDZ (T &lep, const reco::Vertex &pv) const
 
 ~LeptonUpdater () 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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > 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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices 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

edm::EDGetTokenT< reco::BeamSpotbeamLineToken_
 
bool computeMiniIso_
 
bool fixDxySign_
 
std::vector< double > miniIsoParams_ [2]
 
edm::EDGetTokenT< pat::PackedCandidateCollectionpcToken_
 
bool recomputeMuonBasicSelectors_
 
edm::EDGetTokenT< std::vector< T > > src_
 
edm::EDGetTokenT< std::vector< reco::Vertex > > vertices_
 

Additional Inherited Members

- Public Types inherited from edm::global::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
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<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
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)
 
template<Transition B>
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 (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- 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 = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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

template<typename T>
class pat::LeptonUpdater< T >

Definition at line 19 of file LeptonUpdater.cc.

Constructor & Destructor Documentation

◆ LeptonUpdater()

template<typename T >
pat::LeptonUpdater< T >::LeptonUpdater ( const edm::ParameterSet iConfig)
inlineexplicit

Definition at line 21 of file LeptonUpdater.cc.

22  : src_(consumes<std::vector<T>>(iConfig.getParameter<edm::InputTag>("src"))),
23  vertices_(consumes<std::vector<reco::Vertex>>(iConfig.getParameter<edm::InputTag>("vertices"))),
24  beamLineToken_(consumes<reco::BeamSpot>(iConfig.getParameter<edm::InputTag>("beamspot"))),
25  computeMiniIso_(iConfig.getParameter<bool>("computeMiniIso")),
26  fixDxySign_(iConfig.getParameter<bool>("fixDxySign")) {
27  //for mini-isolation calculation
28  if (computeMiniIso_) {
29  readMiniIsoParams(iConfig);
30  pcToken_ = consumes<pat::PackedCandidateCollection>(iConfig.getParameter<edm::InputTag>("pfCandsForMiniIso"));
31  }
33  if (typeid(T) == typeid(pat::Muon))
34  recomputeMuonBasicSelectors_ = iConfig.getParameter<bool>("recomputeMuonBasicSelectors");
35  produces<std::vector<T>>();
36  }

References pat::LeptonUpdater< T >::computeMiniIso_, edm::ParameterSet::getParameter(), pat::LeptonUpdater< T >::pcToken_, pat::LeptonUpdater< T >::readMiniIsoParams(), and pat::LeptonUpdater< T >::recomputeMuonBasicSelectors_.

◆ ~LeptonUpdater()

template<typename T >
pat::LeptonUpdater< T >::~LeptonUpdater ( )
inlineoverride

Definition at line 38 of file LeptonUpdater.cc.

38 {}

Member Function Documentation

◆ fillDescriptions()

template<typename T >
static void pat::LeptonUpdater< T >::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
inlinestatic

Definition at line 42 of file LeptonUpdater.cc.

42  {
44  desc.add<edm::InputTag>("src")->setComment("Lepton collection");
45  desc.add<edm::InputTag>("vertices")->setComment("Vertex collection");
46  desc.add<edm::InputTag>("beamspot", edm::InputTag("offlineBeamSpot"))->setComment("Beam spot");
47  desc.add<bool>("computeMiniIso", false)->setComment("Recompute miniIsolation");
48  desc.add<bool>("fixDxySign", false)->setComment("Fix the IP sign");
49  desc.addOptional<edm::InputTag>("pfCandsForMiniIso", edm::InputTag("packedPFCandidates"))
50  ->setComment("PackedCandidate collection used for miniIso");
51  if (typeid(T) == typeid(pat::Muon)) {
52  desc.add<bool>("recomputeMuonBasicSelectors", false)
53  ->setComment("Recompute basic cut-based muon selector flags");
54  desc.addOptional<std::vector<double>>("miniIsoParams")
55  ->setComment("Parameters used for miniIso (as in PATMuonProducer)");
56  descriptions.add("muonsUpdated", desc);
57  } else if (typeid(T) == typeid(pat::Electron)) {
58  desc.addOptional<std::vector<double>>("miniIsoParamsB")
59  ->setComment("Parameters used for miniIso in the barrel (as in PATElectronProducer)");
60  desc.addOptional<std::vector<double>>("miniIsoParamsE")
61  ->setComment("Parameters used for miniIso in the endcap (as in PATElectronProducer)");
62  descriptions.add("electronsUpdated", desc);
63  }
64  }

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

◆ miniIsoParams() [1/2]

template<>
const std::vector< double > & pat::LeptonUpdater< pat::Electron >::miniIsoParams ( const pat::Electron lep) const

Definition at line 113 of file LeptonUpdater.cc.

113  {
114  return miniIsoParams_[lep.isEE()];
115  }

References reco::GsfElectron::isEE().

◆ miniIsoParams() [2/2]

template<typename T >
const std::vector<double>& pat::LeptonUpdater< T >::miniIsoParams ( const T lep) const
inline

Definition at line 73 of file LeptonUpdater.cc.

73 { return miniIsoParams_[0]; }

References pat::LeptonUpdater< T >::miniIsoParams_.

◆ produce()

template<typename T >
void pat::LeptonUpdater< T >::produce ( edm::StreamID  ,
edm::Event iEvent,
edm::EventSetup const &   
) const
overridevirtual

Implements edm::global::EDProducerBase.

Definition at line 132 of file LeptonUpdater.cc.

132  {
134  iEvent.getByToken(src_, src);
135 
137  iEvent.getByToken(vertices_, vertices);
138  const reco::Vertex &pv = vertices->front();
139 
141  if (computeMiniIso_)
142  iEvent.getByToken(pcToken_, pc);
143 
144  edm::Handle<reco::BeamSpot> beamSpotHandle;
145  iEvent.getByToken(beamLineToken_, beamSpotHandle);
147  bool beamSpotIsValid = false;
148  if (beamSpotHandle.isValid()) {
149  beamSpot = *beamSpotHandle;
150  beamSpotIsValid = true;
151  } else {
152  edm::LogError("DataNotAvailable") << "No beam spot available \n";
153  }
154 
155  std::unique_ptr<std::vector<T>> out(new std::vector<T>(*src));
156 
157  const bool do_hip_mitigation_2016 =
158  recomputeMuonBasicSelectors_ && (272728 <= iEvent.run() && iEvent.run() <= 278808);
159 
160  for (unsigned int i = 0, n = src->size(); i < n; ++i) {
161  T &lep = (*out)[i];
162  setDZ(lep, pv);
163  if (computeMiniIso_) {
164  const auto &params = miniIsoParams(lep);
166  lep.polarP4(),
167  params[0],
168  params[1],
169  params[2],
170  params[3],
171  params[4],
172  params[5],
173  params[6],
174  params[7],
175  params[8]);
176  lep.setMiniPFIsolation(miniiso);
177  }
179  recomputeMuonBasicSelectors(lep, pv, do_hip_mitigation_2016);
180  //Fixing the sign of impact parameters
181  if (fixDxySign_) {
182  float signPV = 1.;
183  float signBS = 1.;
184  if (beamSpotIsValid) {
185  if constexpr (std::is_same_v<T, pat::Electron>)
186  signBS = copysign(1., lep.gsfTrack()->dxy(beamSpot));
187  else
188  signBS = copysign(1., lep.bestTrack()->dxy(beamSpot));
189  }
190  if constexpr (std::is_same_v<T, pat::Electron>)
191  signPV = copysign(1., lep.gsfTrack()->dxy(pv.position()));
192  else
193  signPV = copysign(1., lep.bestTrack()->dxy(pv.position()));
194  lep.setDB(abs(lep.dB(T::PV2D)) * signPV, lep.edB(T::PV2D), T::PV2D);
195  lep.setDB(abs(lep.dB(T::BS2D)) * signBS, lep.edB(T::BS2D), T::BS2D);
196  }
197  }
198 
199  iEvent.put(std::move(out));
200 }

References funct::abs(), pwdgSkimBPark_cfi::beamSpot, pat::getMiniPFIsolation(), mps_fire::i, iEvent, edm::HandleBase::isValid(), muons_cff::miniIsoParams, eostools::move(), dqmiodumpmetadata::n, MillePedeFileConverter_cfg::out, CalibrationSummaryClient_cfi::params, edm::Handle< T >::product(), MetAnalyzer::pv(), muons_cff::recomputeMuonBasicSelectors, TrackRefitter_38T_cff::src, and AlignmentTracksFromVertexSelector_cfi::vertices.

◆ readMiniIsoParams() [1/2]

template<typename T >
void pat::LeptonUpdater< T >::readMiniIsoParams ( const edm::ParameterSet iConfig)
inline

Definition at line 68 of file LeptonUpdater.cc.

68  {
69  miniIsoParams_[0] = iConfig.getParameter<std::vector<double>>("miniIsoParams");
70  if (miniIsoParams_[0].size() != 9)
71  throw cms::Exception("ParameterError", "miniIsoParams must have exactly 9 elements.\n");
72  }

References edm::ParameterSet::getParameter(), pat::LeptonUpdater< T >::miniIsoParams_, and findQualityFiles::size.

Referenced by pat::LeptonUpdater< T >::LeptonUpdater().

◆ readMiniIsoParams() [2/2]

template<>
void pat::LeptonUpdater< pat::Electron >::readMiniIsoParams ( const edm::ParameterSet iConfig)

Definition at line 104 of file LeptonUpdater.cc.

104  {
105  miniIsoParams_[0] = iConfig.getParameter<std::vector<double>>("miniIsoParamsB");
106  miniIsoParams_[1] = iConfig.getParameter<std::vector<double>>("miniIsoParamsE");
107  if (miniIsoParams_[0].size() != 9)
108  throw cms::Exception("ParameterError", "miniIsoParamsB must have exactly 9 elements.\n");
109  if (miniIsoParams_[1].size() != 9)
110  throw cms::Exception("ParameterError", "miniIsoParamsE must have exactly 9 elements.\n");
111  }

References edm::ParameterSet::getParameter(), and findQualityFiles::size.

◆ recomputeMuonBasicSelectors() [1/2]

template<>
void pat::LeptonUpdater< pat::Muon >::recomputeMuonBasicSelectors ( pat::Muon lep,
const reco::Vertex pv,
const bool  do_hip_mitigation_2016 
) const

Definition at line 123 of file LeptonUpdater.cc.

125  {
126  lep.setSelectors(muon::makeSelectorBitset(lep, &pv, do_hip_mitigation_2016));
127  }

References muon::makeSelectorBitset(), MetAnalyzer::pv(), and reco::Muon::setSelectors().

◆ recomputeMuonBasicSelectors() [2/2]

template<typename T >
void pat::LeptonUpdater< T >::recomputeMuonBasicSelectors ( T lep,
const reco::Vertex pv,
const bool  do_hip_mitigation_2016 
) const

Definition at line 118 of file LeptonUpdater.cc.

120  {}

◆ setDZ() [1/3]

template<>
void pat::LeptonUpdater< pat::Electron >::setDZ ( pat::Electron anElectron,
const reco::Vertex pv 
) const

Definition at line 92 of file LeptonUpdater.cc.

92  {
93  auto track = anElectron.gsfTrack();
94  anElectron.setDB(track->dz(pv.position()), std::hypot(track->dzError(), pv.zError()), pat::Electron::PVDZ);
95  }

References pat::Electron::gsfTrack(), MetAnalyzer::pv(), pat::Electron::PVDZ, pat::Electron::setDB(), and HLT_FULL_cff::track.

◆ setDZ() [2/3]

template<>
void pat::LeptonUpdater< pat::Muon >::setDZ ( pat::Muon aMuon,
const reco::Vertex pv 
) const

Definition at line 98 of file LeptonUpdater.cc.

98  {
99  auto track = aMuon.muonBestTrack();
100  aMuon.setDB(track->dz(pv.position()), std::hypot(track->dzError(), pv.zError()), pat::Muon::PVDZ);
101  }

References pat::Muon::muonBestTrack(), MetAnalyzer::pv(), pat::Muon::PVDZ, pat::Muon::setDB(), and HLT_FULL_cff::track.

◆ setDZ() [3/3]

template<typename T >
void pat::LeptonUpdater< T >::setDZ ( T lep,
const reco::Vertex pv 
) const
inline

Definition at line 66 of file LeptonUpdater.cc.

66 {}

Member Data Documentation

◆ beamLineToken_

template<typename T >
edm::EDGetTokenT<reco::BeamSpot> pat::LeptonUpdater< T >::beamLineToken_
private

Definition at line 81 of file LeptonUpdater.cc.

◆ computeMiniIso_

template<typename T >
bool pat::LeptonUpdater< T >::computeMiniIso_
private

Definition at line 82 of file LeptonUpdater.cc.

Referenced by pat::LeptonUpdater< T >::LeptonUpdater().

◆ fixDxySign_

template<typename T >
bool pat::LeptonUpdater< T >::fixDxySign_
private

Definition at line 83 of file LeptonUpdater.cc.

◆ miniIsoParams_

template<typename T >
std::vector<double> pat::LeptonUpdater< T >::miniIsoParams_[2]
private

◆ pcToken_

template<typename T >
edm::EDGetTokenT<pat::PackedCandidateCollection> pat::LeptonUpdater< T >::pcToken_
private

Definition at line 86 of file LeptonUpdater.cc.

Referenced by pat::LeptonUpdater< T >::LeptonUpdater().

◆ recomputeMuonBasicSelectors_

template<typename T >
bool pat::LeptonUpdater< T >::recomputeMuonBasicSelectors_
private

Definition at line 84 of file LeptonUpdater.cc.

Referenced by pat::LeptonUpdater< T >::LeptonUpdater().

◆ src_

template<typename T >
edm::EDGetTokenT<std::vector<T> > pat::LeptonUpdater< T >::src_
private

Definition at line 79 of file LeptonUpdater.cc.

◆ vertices_

template<typename T >
edm::EDGetTokenT<std::vector<reco::Vertex> > pat::LeptonUpdater< T >::vertices_
private

Definition at line 80 of file LeptonUpdater.cc.

pat::LeptonUpdater::src_
edm::EDGetTokenT< std::vector< T > > src_
Definition: LeptonUpdater.cc:79
pat::LeptonUpdater::vertices_
edm::EDGetTokenT< std::vector< reco::Vertex > > vertices_
Definition: LeptonUpdater.cc:80
reco::GsfElectron::isEE
bool isEE() const
Definition: GsfElectron.h:337
mps_fire.i
i
Definition: mps_fire.py:428
pat::Muon::muonBestTrack
reco::TrackRef muonBestTrack() const override
Track selected to be the best measurement of the muon parameters (including PFlow global information)
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
pat::LeptonUpdater::miniIsoParams
const std::vector< double > & miniIsoParams(const T &lep) const
Definition: LeptonUpdater.cc:73
edm::Handle::product
T const * product() const
Definition: Handle.h:70
pat::Muon::PVDZ
Definition: Muon.h:237
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
pat::LeptonUpdater::computeMiniIso_
bool computeMiniIso_
Definition: LeptonUpdater.cc:82
pat::LeptonUpdater::miniIsoParams_
std::vector< double > miniIsoParams_[2]
Definition: LeptonUpdater.cc:85
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
pat::Electron::gsfTrack
reco::GsfTrackRef gsfTrack() const override
override the reco::GsfElectron::gsfTrack method, to access the internal storage of the supercluster
pat::Muon
Analysis-level muon class.
Definition: Muon.h:51
edm::Handle
Definition: AssociativeIterator.h:50
AlignmentTracksFromVertexSelector_cfi.vertices
vertices
Definition: AlignmentTracksFromVertexSelector_cfi.py:5
pat::Electron::setDB
void setDB(double dB, double edB, IPTYPE type)
Set impact parameter of a certain type and its uncertainty.
pat::LeptonUpdater::fixDxySign_
bool fixDxySign_
Definition: LeptonUpdater.cc:83
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
pat::getMiniPFIsolation
PFIsolation getMiniPFIsolation(const pat::PackedCandidateCollection *pfcands, const reco::Candidate::PolarLorentzVector &p4, float mindr=0.05, float maxdr=0.2, float kt_scale=10.0, float ptthresh=0.5, float deadcone_ch=0.0001, float deadcone_pu=0.01, float deadcone_ph=0.01, float deadcone_nh=0.01, float dZ_cut=0.0)
Definition: MiniIsolation.cc:19
reco::BeamSpot
Definition: BeamSpot.h:21
pat::Muon::setDB
void setDB(double dB, double edB, IPTYPE type=PV2D)
Definition: Muon.h:247
TrackRefitter_38T_cff.src
src
Definition: TrackRefitter_38T_cff.py:24
pat::LeptonUpdater::recomputeMuonBasicSelectors
void recomputeMuonBasicSelectors(T &, const reco::Vertex &, const bool) const
Definition: LeptonUpdater.cc:118
MetAnalyzer.pv
def pv(vc)
Definition: MetAnalyzer.py:7
iEvent
int iEvent
Definition: GenABIO.cc:224
pat::LeptonUpdater::beamLineToken_
edm::EDGetTokenT< reco::BeamSpot > beamLineToken_
Definition: LeptonUpdater.cc:81
pat::LeptonUpdater::recomputeMuonBasicSelectors_
bool recomputeMuonBasicSelectors_
Definition: LeptonUpdater.cc:84
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
pat::LeptonUpdater::pcToken_
edm::EDGetTokenT< pat::PackedCandidateCollection > pcToken_
Definition: LeptonUpdater.cc:86
muon::makeSelectorBitset
reco::Muon::Selector makeSelectorBitset(reco::Muon const &muon, reco::Vertex const *vertex=nullptr, bool run2016_hip_mitigation=false)
Definition: MuonSelectors.cc:1033
pat::PFIsolation
Definition: PFIsolation.h:12
pat::LeptonUpdater::setDZ
void setDZ(T &lep, const reco::Vertex &pv) const
Definition: LeptonUpdater.cc:66
pat::LeptonUpdater::readMiniIsoParams
void readMiniIsoParams(const edm::ParameterSet &iConfig)
Definition: LeptonUpdater.cc:68
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
T
long double T
Definition: Basic3DVectorLD.h:48
pat::Electron::PVDZ
Definition: Electron.h:190
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
cms::Exception
Definition: Exception.h:70
pat::Electron
Analysis-level electron class.
Definition: Electron.h:51
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
edm::EDConsumerBase::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: EDConsumerBase.h:159
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
edm::InputTag
Definition: InputTag.h:15
reco::Muon::setSelectors
void setSelectors(uint64_t selectors)
Definition: Muon.h:241
reco::Vertex
Definition: Vertex.h:35
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443