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