CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ShallowClonePtrCandidate.cc
Go to the documentation of this file.
2 using namespace reco;
3 
5 }
6 
8  return new ShallowClonePtrCandidate( *this );
9 }
10 
12  return masterClone_->numberOfDaughters();
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 
68  return masterClone_->isConvertedPhoton();
69 }
70 
72  return masterClone_->isJet();
73 }
int i
Definition: DBlmapReader.cc:9
size_t size_type
Definition: Candidate.h:30
virtual size_t numberOfDaughters() const
number of daughters
virtual const CandidatePtr & masterClonePtr() const
returns reference to master clone pointer
virtual const Candidate * daughter(size_type i) const
return daughter at a given position (throws an exception)
CandidatePtr masterClone_
CandidatePtrerence to master clone.
virtual bool hasMasterClonePtr() const
has master clone pointer
ShallowClonePtrCandidate()
default constructor
virtual ~ShallowClonePtrCandidate()
destructor
virtual size_t numberOfMothers() const
number of mothers
virtual const Candidate * mother(size_type i) const
return mother at a given position (throws an exception)
virtual ShallowClonePtrCandidate * clone() const
returns a clone of the Candidate object