15 embeddedGsfElectronCore_(
false),
16 embeddedGsfTrack_(
false),
17 embeddedSuperCluster_(
false),
18 embeddedTrack_(
false),
19 embeddedPFCandidate_(
false),
32 embeddedGsfElectronCore_(
false),
33 embeddedGsfTrack_(
false),
34 embeddedSuperCluster_(
false),
35 embeddedTrack_(
false),
36 embeddedPFCandidate_(
false),
37 ecalDrivenMomentum_(anElectron.
p4()),
48 embeddedGsfElectronCore_(
false),
49 embeddedGsfTrack_(
false),
50 embeddedSuperCluster_(
false),
51 embeddedTrack_(
false),
52 embeddedPFCandidate_(
false),
53 ecalDrivenMomentum_(anElectronRef->
p4()),
63 embeddedGsfElectronCore_(
false),
64 embeddedGsfTrack_(
false),
65 embeddedSuperCluster_(
false),
66 embeddedTrack_(
false),
67 embeddedPFCandidate_(
false),
68 ecalDrivenMomentum_(anElectronRef->
p4()),
160 if (it->first == name)
return it->second;
163 ex <<
"pat::Electron: the ID " << name <<
" can't be found in this pat::Electron.\n";
164 ex <<
"The available IDs are: ";
166 ex <<
"'" << it->first <<
"' ";
174 if (it->first == name)
return true;
edm::Ref< GsfTrackCollection > GsfTrackRef
persistent reference to a GsfTrack
virtual ~Electron()
destructor
std::vector< reco::GsfTrack > gsfTrack_
edm::Ref< GsfElectronCoreCollection > GsfElectronCoreRef
void embedTrack()
method to store the electron's Track internally
void embedGsfElectronCore()
method to store the electron's core internally
void embedSuperCluster()
method to store the electron's SuperCluster internally
void embedPFCandidate()
embed the PFCandidate pointed to by pfCandidateRef_
reco::SuperClusterRef superCluster() const
override the reco::GsfElectron::superCluster method, to access the internal storage of the superclust...
reco::TrackRef track() const
override the reco::GsfElectron::track method, to access the internal storage of the track ...
std::vector< reco::SuperCluster > superCluster_
reco::GsfTrackRef gsfTrack() const
override the reco::GsfElectron::gsfTrack method, to access the internal storage of the supercluster ...
SuperClusterRef superCluster() const
reference to a SuperCluster
std::vector< reco::Track > track_
bool embeddedGsfElectronCore_
edm::Ref< SuperClusterCollection > SuperClusterRef
reference to an object in a collection of SuperCluster objects
virtual reco::TrackRef track() const
reference to a Track
bool isNonnull() const
Checks for non-null.
const T & max(const T &a, const T &b)
Analysis-level lepton class.
virtual reco::GsfElectronCoreRef core() const
override the virtual reco::GsfElectron::core method, so that the embedded core can be used by GsfElec...
std::vector< reco::GsfElectronCore > gsfElectronCore_
reco::PFCandidateRef pfCandidateRef() const
reference to the source PFCandidates
Electron()
default constructor
edm::Ref< PFCandidateCollection > PFCandidateRef
persistent reference to a PFCandidate
void embedGsfTrack()
method to store the electron's GsfTrack internally
virtual GsfElectronCoreRef core() const
GsfTrackRef gsfTrack() const
reference to a GsfTrack
reco::PFCandidateCollection pfCandidate_
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
float electronID(const std::string &name) const
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
key_type key() const
Accessor for product key.
std::vector< IdPair > electronIDs_
math::XYZTLorentzVector LorentzVector
Lorentz vector.
reco::PFCandidateRef pfCandidateRef_
bool embeddedSuperCluster_
bool isElectronIDAvailable(const std::string &name) const
Returns true if a specific ID is available in this pat::Electron.
ProductID id() const
Accessor for product ID.
T const * get() const
Returns C++ pointer to the item.
bool embeddedPFCandidate_
true if the IsolatedPFCandidate is embedded
reco::CandidatePtr sourceCandidatePtr(size_type i) const
get the candidate pointer with index i