CMS 3D CMS Logo

LeafCandidate.cc
Go to the documentation of this file.
3 using namespace reco;
4 
6 
8  throw cms::Exception("Invalid Reference") << "this Candidate has no master clone reference."
9  << "Can't call masterClone() method.\n";
10 }
11 
12 bool LeafCandidate::hasMasterClone() const { return false; }
13 
14 bool LeafCandidate::hasMasterClonePtr() const { return false; }
15 
17  throw cms::Exception("Invalid Reference") << "this Candidate has no master clone ptr."
18  << "Can't call masterClonePtr() method.\n";
19 }
20 
21 size_t LeafCandidate::numberOfDaughters() const { return 0; }
22 
23 size_t LeafCandidate::numberOfMothers() const { return 0; }
24 
25 bool LeafCandidate::overlap(const Candidate& o) const {
26  return p4() == o.p4() && vertex() == o.vertex() && charge() == o.charge();
27 }
28 
29 const Candidate* LeafCandidate::daughter(size_type) const { return nullptr; }
30 
31 const Candidate* LeafCandidate::mother(size_type) const { return nullptr; }
32 
35  << "This Candidate type does not implement daughter(std::string). "
36  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
37 }
38 
41  << "This Candidate type does not implement daughter(std::string). "
42  << "Please use CompositeCandidate or NamedCompositeCandidate.\n";
43 }
44 
46 
47 double LeafCandidate::vertexChi2() const { return 0; }
48 
49 double LeafCandidate::vertexNdof() const { return 0; }
50 
51 double LeafCandidate::vertexNormalizedChi2() const { return 0; }
52 
53 double LeafCandidate::vertexCovariance(int i, int j) const {
55  << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
56 }
57 
60  << "reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
61 }
62 
63 bool LeafCandidate::isElectron() const { return false; }
64 
65 bool LeafCandidate::isMuon() const { return false; }
66 
67 bool LeafCandidate::isGlobalMuon() const { return false; }
68 
69 bool LeafCandidate::isStandAloneMuon() const { return false; }
70 
71 bool LeafCandidate::isTrackerMuon() const { return false; }
72 
73 bool LeafCandidate::isCaloMuon() const { return false; }
74 
75 bool LeafCandidate::isPhoton() const { return false; }
76 
77 bool LeafCandidate::isConvertedPhoton() const { return false; }
78 
79 bool LeafCandidate::isJet() const { return false; }
reco::LeafCandidate::vertexChi2
double vertexChi2() const override
chi-squares
Definition: LeafCandidate.cc:47
mps_fire.i
i
Definition: mps_fire.py:428
reco::LeafCandidate::isJet
bool isJet() const override
Definition: LeafCandidate.cc:79
reco::LeafCandidate::numberOfMothers
size_t numberOfMothers() const override
number of mothers
Definition: LeafCandidate.cc:23
reco::LeafCandidate::vertexCovariance
CovarianceMatrix vertexCovariance() const final
return SMatrix
Definition: LeafCandidate.h:211
reco::LeafCandidate::isElectron
bool isElectron() const override
Definition: LeafCandidate.cc:63
reco::LeafCandidate::hasMasterClone
bool hasMasterClone() const override
Definition: LeafCandidate.cc:12
CovarianceMatrix
Definition: CovarianceMatrix.h:27
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::LeafCandidate::fillVertexCovariance
void fillVertexCovariance(CovarianceMatrix &v) const override
fill SMatrix
Definition: LeafCandidate.cc:58
reco::LeafCandidate::isGlobalMuon
bool isGlobalMuon() const override
Definition: LeafCandidate.cc:67
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
EDMException.h
reco::LeafCandidate::overlap
bool overlap(const Candidate &) const override
check overlap with another Candidate
Definition: LeafCandidate.cc:25
reco::LeafCandidate::~LeafCandidate
~LeafCandidate() override
destructor
Definition: LeafCandidate.cc:5
reco::LeafCandidate::isCaloMuon
bool isCaloMuon() const override
Definition: LeafCandidate.cc:73
LeafCandidate.h
reco::LeafCandidate::isTrackerMuon
bool isTrackerMuon() const override
Definition: LeafCandidate.cc:71
reco::LeafCandidate::isMuon
bool isMuon() const override
Definition: LeafCandidate.cc:65
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
reco::LeafCandidate::daughter
const Candidate * daughter(size_type) const override
return daughter at a given position (throws an exception)
Definition: LeafCandidate.cc:29
reco::LeafCandidate::masterClonePtr
const CandidatePtr & masterClonePtr() const override
Definition: LeafCandidate.cc:16
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:114
reco::LeafCandidate::hasMasterClonePtr
bool hasMasterClonePtr() const override
Definition: LeafCandidate.cc:14
reco::LeafCandidate::charge
int charge() const final
electric charge
Definition: LeafCandidate.h:106
submitPVResolutionJobs.err
err
Definition: submitPVResolutionJobs.py:85
reco::LeafCandidate::vertex
const Point & vertex() const override
vertex position (overwritten by PF...)
Definition: LeafCandidate.h:165
edm::Ptr< Candidate >
reco::Candidate
Definition: Candidate.h:27
reco::LeafCandidate::isStandAloneMuon
bool isStandAloneMuon() const override
Definition: LeafCandidate.cc:69
reco::LeafCandidate::isPhoton
bool isPhoton() const override
Definition: LeafCandidate.cc:75
Exception
Definition: hltDiff.cc:246
reco::LeafCandidate::masterClone
const CandidateBaseRef & masterClone() const override
Definition: LeafCandidate.cc:7
reco::LeafCandidate::mother
const Candidate * mother(size_type) const override
return mother at a given position (throws an exception)
Definition: LeafCandidate.cc:31
edm::RefToBase< Candidate >
reco::LeafCandidate::vertexNdof
double vertexNdof() const override
Definition: LeafCandidate.cc:49
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
reco::LeafCandidate::isConvertedPhoton
bool isConvertedPhoton() const override
Definition: LeafCandidate.cc:77
reco::LeafCandidate::numberOfDaughters
size_t numberOfDaughters() const override
number of daughters
Definition: LeafCandidate.cc:21
reco::LeafCandidate::vertexNormalizedChi2
double vertexNormalizedChi2() const override
chi-squared divided by n.d.o.f.
Definition: LeafCandidate.cc:51
edm::errors::UnimplementedFeature
Definition: EDMException.h:38
reco::Candidate::size_type
size_t size_type
Definition: Candidate.h:29