CMS 3D CMS Logo

ShallowCloneCandidate.cc
Go to the documentation of this file.
2 using namespace reco;
3 
5 }
6 
8  return new ShallowCloneCandidate( *this );
9 }
10 
13 }
14 
16  return masterClone_->numberOfMothers();
17 }
18 
20  return masterClone_->daughter( i );
21 }
22 
24  return masterClone_->mother( i );
25 }
26 
28  return nullptr;
29 }
30 
32  return true;
33 }
34 
36  return masterClone_;
37 }
38 
40  return masterClone_->isElectron();
41 }
42 
44  return masterClone_->isMuon();
45 }
46 
48  return masterClone_->isGlobalMuon();
49 }
50 
52  return masterClone_->isStandAloneMuon();
53 }
54 
56  return masterClone_->isTrackerMuon();
57 }
58 
60  return masterClone_->isCaloMuon();
61 }
62 
64  return masterClone_->isPhoton();
65 }
66 
69 }
70 
72  return masterClone_->isJet();
73 }
CandidateBaseRef masterClone_
CandidateBaseReference to master clone.
virtual bool isJet() const =0
const Candidate * mother(size_type i) const override
return daughter at a given position (throws an exception)
size_t size_type
Definition: Candidate.h:30
virtual bool isStandAloneMuon() const =0
virtual bool isMuon() const =0
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
virtual bool isPhoton() const =0
bool hasMasterClone() const override
has master clone
virtual const Candidate * mother(size_type i=0) const =0
return pointer to mother
bool isCaloMuon() const override
bool isTrackerMuon() const override
ShallowCloneCandidate * clone() const override
returns a clone of the Candidate object
virtual bool isTrackerMuon() const =0
bool isConvertedPhoton() const override
virtual bool isConvertedPhoton() const =0
virtual size_type numberOfMothers() const =0
number of mothers (zero or one in most of but not all the cases)
virtual bool isElectron() const =0
size_t numberOfDaughters() const override
number of daughters
~ShallowCloneCandidate() override
destructor
bool isElectron() const override
virtual bool isGlobalMuon() const =0
virtual bool isCaloMuon() const =0
ShallowCloneCandidate()
default constructor
const Candidate * daughter(size_type i) const override
return daughter at a given position (throws an exception)
fixed size matrix
const CandidateBaseRef & masterClone() const override
returns reference to master clone
virtual size_type numberOfDaughters() const =0
number of daughters
bool isStandAloneMuon() const override
bool isGlobalMuon() const override
size_t numberOfMothers() const override
number of daughters