CMS 3D CMS Logo

ShallowClonePtrCandidate.cc
Go to the documentation of this file.
2 using namespace reco;
3 
5 }
6 
8  return new ShallowClonePtrCandidate( *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 }
virtual bool isJet() const =0
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
virtual const Candidate * mother(size_type i=0) const =0
return pointer to mother
CandidatePtr masterClone_
CandidatePtrerence to master clone.
virtual bool isTrackerMuon() const =0
const Candidate * mother(size_type i) const override
return mother at a given position (throws an exception)
ShallowClonePtrCandidate * clone() const override
returns a clone of the Candidate object
size_t numberOfMothers() const override
number of mothers
ShallowClonePtrCandidate()
default constructor
virtual bool isConvertedPhoton() const =0
size_t numberOfDaughters() const override
number of daughters
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
const CandidatePtr & masterClonePtr() const override
returns reference to master clone pointer
virtual bool isGlobalMuon() const =0
~ShallowClonePtrCandidate() override
destructor
virtual bool isCaloMuon() const =0
bool hasMasterClonePtr() const override
has master clone pointer
fixed size matrix
const Candidate * daughter(size_type i) const override
return daughter at a given position (throws an exception)
virtual size_type numberOfDaughters() const =0
number of daughters