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 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 }
CandidateBaseRef masterClone_
CandidateBaseReference to master clone.
virtual bool isConvertedPhoton() const
virtual size_t numberOfDaughters() const
number of daughters
virtual bool isJet() const =0
virtual bool isElectron() const
size_t size_type
Definition: Candidate.h:30
virtual bool isStandAloneMuon() const =0
virtual size_t numberOfMothers() const
number of daughters
virtual bool isTrackerMuon() const
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 bool hasMasterClone() const
has master clone
virtual const Candidate * mother(size_type i=0) const =0
return pointer to mother
virtual ShallowCloneCandidate * clone() const
returns a clone of the Candidate object
virtual ~ShallowCloneCandidate()
destructor
virtual bool isTrackerMuon() const =0
virtual bool isGlobalMuon() const
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 isStandAloneMuon() const
virtual bool isElectron() const =0
virtual bool isCaloMuon() const
virtual const CandidateBaseRef & masterClone() const
returns reference to master clone
virtual bool isGlobalMuon() const =0
virtual bool isCaloMuon() const =0
ShallowCloneCandidate()
default constructor
fixed size matrix
virtual const Candidate * daughter(size_type i) const
return daughter at a given position (throws an exception)
virtual size_type numberOfDaughters() const =0
number of daughters
virtual const Candidate * mother(size_type i) const
return daughter at a given position (throws an exception)