CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LeafCandidate.cc
Go to the documentation of this file.
1 // $Id: LeafCandidate.cc,v 1.15 2012/10/13 07:39:04 innocent Exp $
4 using namespace reco;
5 
7 
10 }
11 
14 }
15 
17  return iterator( new iterator_imp_specific );
18 }
19 
21  return iterator( new iterator_imp_specific );
22 }
23 
25  throw cms::Exception("Invalid Reference")
26  << "this Candidate has no master clone reference."
27  << "Can't call masterClone() method.\n";
28 }
29 
31  return false;
32 }
33 
35  return false;
36 }
37 
38 
40  throw cms::Exception("Invalid Reference")
41  << "this Candidate has no master clone ptr."
42  << "Can't call masterClonePtr() method.\n";
43 }
44 
46  return 0;
47 }
48 
50  return 0;
51 }
52 
53 bool LeafCandidate::overlap( const Candidate & o ) const {
54  return p4() == o.p4() && vertex() == o.vertex() && charge() == o.charge();
55 }
56 
58  return 0;
59 }
60 
62  return 0;
63 }
64 
67  << "This Candidate type does not implement daughter(std::string). "
68  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
69 }
70 
73  << "This Candidate type does not implement daughter(std::string). "
74  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
75 }
76 
77 
78 
80  return 0;
81 }
82 
83 double LeafCandidate::vertexChi2() const {
84  return 0;
85 }
86 
87 double LeafCandidate::vertexNdof() const {
88  return 0;
89 }
90 
92  return 0;
93 }
94 
95 double LeafCandidate::vertexCovariance(int i, int j) const {
97  << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
98 }
99 
102  << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
103 }
104 
105 bool LeafCandidate::isElectron() const { return false; }
106 
107 bool LeafCandidate::isMuon() const { return false; }
108 
109 bool LeafCandidate::isGlobalMuon() const { return false; }
110 
111 bool LeafCandidate::isStandAloneMuon() const { return false; }
112 
113 bool LeafCandidate::isTrackerMuon() const { return false; }
114 
115 bool LeafCandidate::isCaloMuon() const { return false; }
116 
117 bool LeafCandidate::isPhoton() const { return false; }
118 
119 bool LeafCandidate::isConvertedPhoton() const { return false; }
120 
121 bool LeafCandidate::isJet() const { return false; }
122 
123 const unsigned int reco::LeafCandidate::longLivedTag = 65536;
124 
125 const unsigned int reco::LeafCandidate::massConstraintTag = 131072;
126 
int i
Definition: DBlmapReader.cc:9
static const unsigned int longLivedTag
long lived flag
size_t size_type
Definition: Candidate.h:34
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
candidate::const_iterator const_iterator
Definition: Candidate.h:35
virtual double vertexChi2() const
chi-squares
virtual const Point & vertex() const
vertex position (overwritten by PF...)
virtual bool isConvertedPhoton() const
virtual bool isPhoton() const
virtual bool isStandAloneMuon() const
virtual bool isMuon() const
static const unsigned int massConstraintTag
do mass constraint flag
virtual size_t numberOfDaughters() const
number of daughters
virtual bool isGlobalMuon() const
virtual const CandidatePtr & masterClonePtr() const
virtual const Candidate * daughter(size_type) const
return daughter at a given position (throws an exception)
virtual ~LeafCandidate()
destructor
Definition: LeafCandidate.cc:6
virtual bool hasMasterClone() const
int j
Definition: DBlmapReader.cc:9
virtual double vertexNormalizedChi2() const
chi-squared divided by n.d.o.f.
virtual const Point & vertex() const =0
vertex position
virtual int charge() const =0
electric charge
virtual bool overlap(const Candidate &) const
check overlap with another Candidate
virtual bool hasMasterClonePtr() const
virtual const_iterator begin() const
first daughter const_iterator
Definition: LeafCandidate.cc:8
virtual bool isElectron() const
virtual bool isCaloMuon() const
candidate::iterator iterator
Definition: Candidate.h:36
virtual bool isTrackerMuon() const
virtual int charge() const GCC11_FINAL
electric charge
CovarianceMatrix vertexCovariance() const GCC11_FINAL
return SMatrix
virtual bool isJet() const
virtual size_t numberOfMothers() const
number of mothers
virtual const CandidateBaseRef & masterClone() const
virtual const_iterator end() const
last daughter const_iterator
virtual void fillVertexCovariance(CovarianceMatrix &v) const
fill SMatrix
virtual double vertexNdof() const
virtual const Candidate * mother(size_type) const
return mother at a given position (throws an exception)
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector