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.
3 using namespace reco;
4 
6 
8  throw cms::Exception("Invalid Reference")
9  << "this Candidate has no master clone reference."
10  << "Can't call masterClone() method.\n";
11 }
12 
14  return false;
15 }
16 
18  return false;
19 }
20 
21 
23  throw cms::Exception("Invalid Reference")
24  << "this Candidate has no master clone ptr."
25  << "Can't call masterClonePtr() method.\n";
26 }
27 
29  return 0;
30 }
31 
33  return 0;
34 }
35 
36 bool LeafCandidate::overlap( const Candidate & o ) const {
37  return p4() == o.p4() && vertex() == o.vertex() && charge() == o.charge();
38 }
39 
41  return 0;
42 }
43 
45  return 0;
46 }
47 
50  << "This Candidate type does not implement daughter(std::string). "
51  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
52 }
53 
56  << "This Candidate type does not implement daughter(std::string). "
57  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
58 }
59 
60 
61 
63  return 0;
64 }
65 
66 double LeafCandidate::vertexChi2() const {
67  return 0;
68 }
69 
70 double LeafCandidate::vertexNdof() const {
71  return 0;
72 }
73 
75  return 0;
76 }
77 
78 double LeafCandidate::vertexCovariance(int i, int j) const {
80  << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
81 }
82 
85  << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
86 }
87 
88 bool LeafCandidate::isElectron() const { return false; }
89 
90 bool LeafCandidate::isMuon() const { return false; }
91 
92 bool LeafCandidate::isGlobalMuon() const { return false; }
93 
94 bool LeafCandidate::isStandAloneMuon() const { return false; }
95 
96 bool LeafCandidate::isTrackerMuon() const { return false; }
97 
98 bool LeafCandidate::isCaloMuon() const { return false; }
99 
100 bool LeafCandidate::isPhoton() const { return false; }
101 
102 bool LeafCandidate::isConvertedPhoton() const { return false; }
103 
104 bool LeafCandidate::isJet() const { return false; }
int i
Definition: DBlmapReader.cc:9
size_t size_type
Definition: Candidate.h:30
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
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)
CovarianceMatrix vertexCovariance() const
return SMatrix
virtual ~LeafCandidate()
destructor
Definition: LeafCandidate.cc:5
virtual bool hasMasterClone() const
virtual int charge() const
electric charge
Definition: LeafCandidate.h:91
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 bool isElectron() const
virtual bool isCaloMuon() const
virtual bool isTrackerMuon() const
virtual bool isJet() const
virtual size_t numberOfMothers() const
number of mothers
virtual const CandidateBaseRef & masterClone() const
Definition: LeafCandidate.cc:7
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
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