test
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 
9 }
10 
13 }
14 
16  return iterator( new iterator_imp_specific );
17 }
18 
20  return iterator( new iterator_imp_specific );
21 }
22 
24  throw cms::Exception("Invalid Reference")
25  << "this Candidate has no master clone reference."
26  << "Can't call masterClone() method.\n";
27 }
28 
30  return false;
31 }
32 
34  return false;
35 }
36 
37 
39  throw cms::Exception("Invalid Reference")
40  << "this Candidate has no master clone ptr."
41  << "Can't call masterClonePtr() method.\n";
42 }
43 
45  return 0;
46 }
47 
49  return 0;
50 }
51 
52 bool LeafCandidate::overlap( const Candidate & o ) const {
53  return p4() == o.p4() && vertex() == o.vertex() && charge() == o.charge();
54 }
55 
57  return 0;
58 }
59 
61  return 0;
62 }
63 
66  << "This Candidate type does not implement daughter(std::string). "
67  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
68 }
69 
72  << "This Candidate type does not implement daughter(std::string). "
73  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
74 }
75 
76 
77 
79  return 0;
80 }
81 
82 double LeafCandidate::vertexChi2() const {
83  return 0;
84 }
85 
86 double LeafCandidate::vertexNdof() const {
87  return 0;
88 }
89 
91  return 0;
92 }
93 
94 double LeafCandidate::vertexCovariance(int i, int j) const {
96  << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
97 }
98 
101  << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
102 }
103 
104 bool LeafCandidate::isElectron() const { return false; }
105 
106 bool LeafCandidate::isMuon() const { return false; }
107 
108 bool LeafCandidate::isGlobalMuon() const { return false; }
109 
110 bool LeafCandidate::isStandAloneMuon() const { return false; }
111 
112 bool LeafCandidate::isTrackerMuon() const { return false; }
113 
114 bool LeafCandidate::isCaloMuon() const { return false; }
115 
116 bool LeafCandidate::isPhoton() const { return false; }
117 
118 bool LeafCandidate::isConvertedPhoton() const { return false; }
119 
120 bool LeafCandidate::isJet() const { return false; }
121 
122 const unsigned int reco::LeafCandidate::longLivedTag = 65536;
123 
124 const unsigned int reco::LeafCandidate::massConstraintTag = 131072;
125 
int i
Definition: DBlmapReader.cc:9
static const unsigned int longLivedTag
long lived flag
size_t size_type
Definition: Candidate.h:34
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)
CovarianceMatrix vertexCovariance() const
return SMatrix
virtual ~LeafCandidate()
destructor
Definition: LeafCandidate.cc:5
virtual bool hasMasterClone() const
virtual int charge() const
electric charge
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:7
virtual bool isElectron() const
virtual bool isCaloMuon() const
candidate::iterator iterator
Definition: Candidate.h:36
virtual bool isTrackerMuon() const
virtual bool isJet() const
virtual size_t numberOfMothers() const
number of mothers
virtual const CandidateBaseRef & masterClone() const
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
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