1 #ifndef __PFBlockElement__ 2 #define __PFBlockElement__ 19 class PFBlockElementCluster;
20 class PFBlockElementTrack;
57 virtual void Dump(std::ostream&
out =
std::cout,
const char* tab =
" ")
const;
76 std::cout <<
"Error in PFBlockElement::setTrackType : this base class method is not implemented" << std::endl;
96 std::cout <<
"Error in PFBlockElement::setDisplacedVertexRef : this base class method is not implemented" 100 std::cout <<
"Error in PFBlockElement::setConversionRef : this base class method is not implemented" << std::endl;
103 std::cout <<
"Error in PFBlockElement::setMuonRef : this base class method is not implemented" << std::endl;
106 std::cout <<
"Error in PFBlockElement::setV0Ref : this base class method is not implemented" << std::endl;
120 return it->second.isValid;
Abstract base class for a PFBlock element (track, cluster...)
void unLock()
unlock element
virtual const PFDisplacedTrackerVertexRef & displacedVertexRef(TrackType trType) const
static const MuonRef nullMuon_
virtual const ConversionRefVector & convRefs() const
static const PFRecTrackRef nullPFRecTrack_
virtual const reco::TrackRef & trackRef() const
static const PFDisplacedTrackerVertexRef nullPFDispVertex_
PFBlockElement(Type type=NONE)
standard constructor
virtual const PFRecTrackRef & trackRefPF() const
virtual PFBlockElement * clone() const =0
necessary to have the edm::OwnVector<PFBlockElement> working
virtual void setTrackType(TrackType trType, bool value)
the trackType
const PFMultilinksType & getMultilinks(Type type) const
std::ostream & operator<<(std::ostream &, BeamSpot beam)
virtual const VertexCompositeCandidateRef & V0Ref() const
float timeError_
timing information uncertainty (<0 if timing not available)
std::vector< PFMultilink > PFMultilinksType
collection of PFSuperCluster objects
void setIndex(unsigned index)
set index
virtual void setDisplacedVertexRef(const PFDisplacedTrackerVertexRef &niref, TrackType trType)
virtual void setV0Ref(const VertexCompositeCandidateRef &v0ref, TrackType trType)
virtual const PFClusterRef & clusterRef() const
bool isTimeValid() const
do we have a valid time information
bool locked() const
locked ?
bool isMultilinksValide(Type type) const
static const PFClusterRef nullPFCluster_
virtual bool trackType(TrackType trType) const
static const ConversionRefVector nullConv_
virtual bool isLinkedToDisplacedVertex() const
void setIsValidMultilinks(bool isVal, Type type)
std::map< reco::PFBlockElement::Type, PFMultiLinksTC > multilinks_
virtual ~PFBlockElement()
destructor
virtual void setConversionRef(const ConversionRef &convRef, TrackType trType)
float time_
timing information (valid if timeError_ >= 0)
virtual void Dump(std::ostream &out=std::cout, const char *tab=" ") const
print the object inside the element
unsigned index_
index in block vector
static const reco::TrackRef nullTrack_
static const VertexCompositeCandidateRef nullVertex_
void setMultilinks(const PFMultiLinksTC &ml, Type type)
virtual void setMuonRef(const MuonRef &muref)
virtual bool isPrimary() const
virtual bool isSecondary() const
void setTime(float time, float timeError=0.f)
the timing information
virtual const MuonRef & muonRef() const