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 0;
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 size_t numberOfDaughters() const
number of daughters
virtual const CandidatePtr & masterClonePtr() const
returns reference to master clone pointer
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 * daughter(size_type i) const
return daughter at a given position (throws an exception)
virtual const Candidate * mother(size_type i=0) const =0
return pointer to mother
CandidatePtr masterClone_
CandidatePtrerence to master clone.
virtual bool hasMasterClonePtr() const
has master clone pointer
virtual bool isTrackerMuon() const =0
ShallowClonePtrCandidate()
default constructor
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
virtual bool isGlobalMuon() const =0
virtual bool isCaloMuon() const =0
virtual ~ShallowClonePtrCandidate()
destructor
virtual size_t numberOfMothers() const
number of mothers
fixed size matrix
virtual const Candidate * mother(size_type i) const
return mother at a given position (throws an exception)
virtual size_type numberOfDaughters() const =0
number of daughters
virtual ShallowClonePtrCandidate * clone() const
returns a clone of the Candidate object