Go to the documentation of this file.
9 GenericParticle::GenericParticle() :
PATObject<
reco::RecoCandidate>() {}
166 size_t ntracks = rc->numberOfTracks();
170 tracks.push_back(rc->track(
i));
194 if (rc2 !=
nullptr) {
void setPdgId(int pdgId) final
edm::Ref< GsfTrackCollection > GsfTrackRef
persistent reference to a GsfTrack
reco::TrackCollection combinedTrack_
virtual void setTrack(const reco::TrackRef &ref, bool embed=false)
sets master track reference (or even embed it into the object)
reco::TrackCollection track_
reco::TrackRef standAloneMuon() const override
reco::TrackRef standaloneTrackRef_
reco::SuperClusterRef superClusterRef_
virtual reco::TrackRef combinedMuon() const
reference to a stand-alone muon Track
CaloTowerRef caloTowerRef_
void embedSuperCluster()
embeds the supercluster instead of keeping a reference to it
const_iterator begin() const
Initialize an iterator over the RefVector.
reco::GsfTrackRef gsfTrack() const override
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster
reco::SuperClusterCollection superCluster_
virtual reco::TrackRef standAloneMuon() const
reference to a stand-alone muon Track
virtual void setCombinedMuon(const reco::TrackRef &ref, bool embed=false)
sets combined muon track reference (or even embed it into the object)
void embedGsfTrack()
embeds the gsf track instead of keeping a reference to it
void push_back(T const &t)
virtual reco::GsfTrackRef gsfTrack() const
reference to a GsfTrack
edm::RefVector< TrackCollection > TrackRefVector
vector of reference to Track in the same collection
reco::TrackRef combinedMuon() const override
virtual reco::TrackRef track() const
reference to a Track
const_iterator end() const
Termination of iteration.
void swap(SortedCollection &other)
edm::Ptr< reco::Candidate > refToOrig_
edm::SortedCollection< CaloTower > CaloTowerCollection
Templated PAT object container.
edm::Ref< SuperClusterCollection > SuperClusterRef
reference to an object in a collection of SuperCluster objects
virtual void setSuperCluster(const reco::SuperClusterRef &ref, bool embed=false)
sets supercluster reference (or even embed it into the object)
reco::GsfTrackCollection gsfTrack_
void setVertex(const Point &vertex) override
set vertex
void embedStandalone()
embeds the stand-alone track instead of keeping a reference to it
CaloTowerRef caloTower() const override
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
void embedCaloTower()
embeds the calotower instead of keeping a reference to it
Analysis-level Generic Particle class (e.g. for hadron or muon not fully reconstructed)
bool overlap(const Candidate &) const override
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
bool isNonnull() const
Checks for non-null.
virtual void setGsfTrack(const reco::GsfTrackRef &ref, bool embed=false)
sets gsf track reference (or even embed it into the object)
void fillInFrom(const reco::Candidate &cand)
virtual CaloTowerRef caloTower() const
reference to a CaloTower
~GenericParticle() override
destructor
void setStatus(int status) final
set status word
reco::TrackCollection tracks_
virtual void setTracks(const reco::TrackRefVector &refs, bool embed=false)
sets multiple track references (or even embed the tracks into the object - whatch out for disk size i...
void setP4(const LorentzVector &p4) final
set 4-momentum
reco::TrackCollection standaloneTrack_
void embedCombined()
embeds the combined track instead of keeping a reference to it
virtual void setCaloTower(const CaloTowerRef &ref, bool embed=false)
sets calotower reference (or even embed it into the object)
void setCharge(Charge q) final
set electric charge
reco::GsfTrackRef gsfTrackRef_
reco::TrackRef combinedTrackRef_
reco::TrackRef track() const override
edm::Ref< CaloTowerCollection > CaloTowerRef
void embedTracks()
embeds the other tracks instead of keeping references
virtual void setStandAloneMuon(const reco::TrackRef &ref, bool embed=false)
sets stand-alone muon track reference (or even embed it into the object)
reco::SuperClusterRef superCluster() const override
CaloTowerCollection caloTower_
size_type size() const
Size of the RefVector.
GenericParticle()
default constructor
void embedTrack()
embeds the master track instead of keeping a reference to it
reco::TrackRefVector trackRefs_