Definition at line 10 of file LowPtElectronsModifier.cc.
◆ LowPtElectronModifier()
Definition at line 32 of file LowPtElectronsModifier.cc.
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
reco::BeamSpot const * beamSpot_
const edm::EDGetTokenT< reco::BeamSpot > beamSpotT_
ModifyObjectValueBase(const edm::ParameterSet &conf)
const edm::EDGetTokenT< reco::VertexCollection > verticesT_
const edm::EDGetTokenT< reco::ConversionCollection > convT_
reco::ConversionCollection const * conv_
reco::VertexCollection const * vertices_
◆ ~LowPtElectronModifier()
LowPtElectronModifier::~LowPtElectronModifier |
( |
| ) |
|
|
overridedefault |
◆ modifyObject()
void LowPtElectronModifier::modifyObject |
( |
pat::Electron & |
ele | ) |
const |
|
finalvirtual |
Reimplemented from ModifyObjectValueBase.
Definition at line 58 of file LowPtElectronsModifier.cc.
References beamSpot_, pat::Electron::BS2D, conv, conv_, extra_, pat::Electron::gsfTrack(), MetAnalyzer::pv(), pat::Electron::PV2D, pat::Electron::PVDZ, pat::Electron::setDB(), and vertices_.
62 conv.addUserVars(ele);
64 conv.addExtraUserVars(ele);
67 auto const& gsfTrack = *ele.
gsfTrack();
70 ele.
setDB(gsfTrack.dxy(
pv.position()),
71 gsfTrack.dxyError(
pv.position(),
pv.covariance()),
73 ele.
setDB(gsfTrack.dz(
pv.position()), std::hypot(gsfTrack.dzError(),
pv.zError()),
reco::GsfTrackRef gsfTrack() const override
override the reco::GsfElectron::gsfTrack method, to access the internal storage of the supercluster ...
void setDB(double dB, double edB, IPTYPE type)
Set impact parameter of a certain type and its uncertainty.
reco::BeamSpot const * beamSpot_
reco::ConversionCollection const * conv_
reco::VertexCollection const * vertices_
◆ setEvent()
void LowPtElectronModifier::setEvent |
( |
const edm::Event & |
iEvent | ) |
|
|
finalvirtual |
◆ setEventContent()
void LowPtElectronModifier::setEventContent |
( |
const edm::EventSetup & |
iSetup | ) |
|
|
finalvirtual |
◆ beamSpot_
◆ beamSpotT_
◆ conv_
◆ convT_
◆ extra_
bool LowPtElectronModifier::extra_ |
|
private |
◆ vertices_
◆ verticesT_