CMS 3D CMS Logo

Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes

reco::ShallowClonePtrCandidate Class Reference

#include <ShallowClonePtrCandidate.h>

Inheritance diagram for reco::ShallowClonePtrCandidate:
reco::LeafCandidate reco::Candidate

List of all members.

Public Types

typedef CandidateCollection daughters
 collection of daughter candidates

Public Member Functions

virtual const_iterator begin () const
 first daughter const_iterator
virtual iterator begin ()
 first daughter iterator
virtual ShallowClonePtrCandidateclone () const
 returns a clone of the Candidate object
virtual const Candidatedaughter (size_type i) const
 return daughter at a given position (throws an exception)
virtual Candidatedaughter (size_type i)
 return daughter at a given position (throws an exception)
virtual const_iterator end () const
 last daughter const_iterator
virtual iterator end ()
 last daughter iterator
virtual bool hasMasterClonePtr () const
 has master clone pointer
virtual bool isCaloMuon () const
virtual bool isConvertedPhoton () const
virtual bool isElectron () const
virtual bool isGlobalMuon () const
virtual bool isJet () const
virtual bool isMuon () const
virtual bool isPhoton () const
virtual bool isStandAloneMuon () const
virtual bool isTrackerMuon () const
virtual const CandidatePtrmasterClonePtr () const
 returns reference to master clone pointer
virtual const Candidatemother (size_type i) const
 return mother at a given position (throws an exception)
virtual size_t numberOfDaughters () const
 number of daughters
virtual size_t numberOfMothers () const
 number of mothers
 ShallowClonePtrCandidate (const CandidatePtr &masterClone, Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0))
 constructor from values
 ShallowClonePtrCandidate ()
 default constructor
 ShallowClonePtrCandidate (const CandidatePtr &masterClone)
 constructor from Particle
 ShallowClonePtrCandidate (const CandidatePtr &masterClone, Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0))
 constructor from values
virtual ~ShallowClonePtrCandidate ()
 destructor

Private Types

typedef
candidate::const_iterator_imp_specific
< daughters
const_iterator_imp_specific
typedef
candidate::iterator_imp_specific
< daughters
iterator_imp_specific

Private Member Functions

virtual bool overlap (const Candidate &c) const
 check overlap with another Candidate

Private Attributes

CandidatePtr masterClone_
 CandidatePtrerence to master clone.

Detailed Description

shallow clone of a particle candidate keepint a reference to the master clone

Author:
Luca Lista, INFN
Version:
Id:
ShallowClonePtrCandidate.h,v 1.4 2009/11/02 21:46:53 srappocc Exp

Definition at line 17 of file ShallowClonePtrCandidate.h.


Member Typedef Documentation

Reimplemented from reco::LeafCandidate.

Definition at line 76 of file ShallowClonePtrCandidate.h.

collection of daughter candidates

Reimplemented from reco::LeafCandidate.

Definition at line 20 of file ShallowClonePtrCandidate.h.

Reimplemented from reco::LeafCandidate.

Definition at line 78 of file ShallowClonePtrCandidate.h.


Constructor & Destructor Documentation

reco::ShallowClonePtrCandidate::ShallowClonePtrCandidate ( ) [inline]

default constructor

Definition at line 22 of file ShallowClonePtrCandidate.h.

Referenced by clone().

: LeafCandidate() {  }
reco::ShallowClonePtrCandidate::ShallowClonePtrCandidate ( const CandidatePtr masterClone) [inline, explicit]

constructor from Particle

Definition at line 24 of file ShallowClonePtrCandidate.h.

reco::ShallowClonePtrCandidate::ShallowClonePtrCandidate ( const CandidatePtr masterClone,
Charge  q,
const LorentzVector p4,
const Point vtx = Point( 0, 0, 0 ) 
) [inline]

constructor from values

Definition at line 29 of file ShallowClonePtrCandidate.h.

reco::ShallowClonePtrCandidate::ShallowClonePtrCandidate ( const CandidatePtr masterClone,
Charge  q,
const PolarLorentzVector p4,
const Point vtx = Point( 0, 0, 0 ) 
) [inline]

constructor from values

Definition at line 33 of file ShallowClonePtrCandidate.h.

ShallowClonePtrCandidate::~ShallowClonePtrCandidate ( ) [virtual]

destructor

Definition at line 4 of file ShallowClonePtrCandidate.cc.

                                                    { 
}

Member Function Documentation

ShallowClonePtrCandidate::const_iterator ShallowClonePtrCandidate::begin ( void  ) const [virtual]

first daughter const_iterator

Reimplemented from reco::LeafCandidate.

Definition at line 11 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                                                             { 
  return masterClone_->begin(); 
}
Candidate::iterator ShallowClonePtrCandidate::begin ( void  ) [virtual]

first daughter iterator

Reimplemented from reco::LeafCandidate.

Definition at line 19 of file ShallowClonePtrCandidate.cc.

                                                  { 
  return iterator( new iterator_imp_specific ); 
}
ShallowClonePtrCandidate * ShallowClonePtrCandidate::clone ( void  ) const [virtual]

returns a clone of the Candidate object

Reimplemented from reco::LeafCandidate.

Definition at line 7 of file ShallowClonePtrCandidate.cc.

References ShallowClonePtrCandidate().

                                                                 { 
  return new ShallowClonePtrCandidate( *this ); 
}
const Candidate * ShallowClonePtrCandidate::daughter ( size_type  i) const [virtual]

return daughter at a given position (throws an exception)

Reimplemented from reco::LeafCandidate.

Definition at line 35 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                                                        { 
  return masterClone_->daughter( i ); 
}
Candidate * ShallowClonePtrCandidate::daughter ( size_type  i) [virtual]

return daughter at a given position (throws an exception)

Reimplemented from reco::LeafCandidate.

Definition at line 43 of file ShallowClonePtrCandidate.cc.

                                                            { 
  return 0;
}
Candidate::iterator ShallowClonePtrCandidate::end ( void  ) [virtual]

last daughter iterator

Reimplemented from reco::LeafCandidate.

Definition at line 23 of file ShallowClonePtrCandidate.cc.

                                                { 
  return iterator( new iterator_imp_specific ); 
}
ShallowClonePtrCandidate::const_iterator ShallowClonePtrCandidate::end ( void  ) const [virtual]

last daughter const_iterator

Reimplemented from reco::LeafCandidate.

Definition at line 15 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                                                           { 
  return masterClone_->end(); 
}
bool ShallowClonePtrCandidate::hasMasterClonePtr ( ) const [virtual]

has master clone pointer

Reimplemented from reco::LeafCandidate.

Definition at line 47 of file ShallowClonePtrCandidate.cc.

                                                       {
  return true;
}
bool ShallowClonePtrCandidate::isCaloMuon ( ) const [virtual]

Reimplemented from reco::LeafCandidate.

Definition at line 75 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                                { 
  return masterClone_->isCaloMuon(); 
}
bool ShallowClonePtrCandidate::isConvertedPhoton ( ) const [virtual]

Reimplemented from reco::LeafCandidate.

Definition at line 83 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                                       { 
  return masterClone_->isConvertedPhoton(); 
}
bool ShallowClonePtrCandidate::isElectron ( ) const [virtual]

Reimplemented from reco::LeafCandidate.

Definition at line 55 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                                { 
  return masterClone_->isElectron(); 
}
bool ShallowClonePtrCandidate::isGlobalMuon ( ) const [virtual]

Reimplemented from reco::LeafCandidate.

Definition at line 63 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                                  { 
  return masterClone_->isGlobalMuon(); 
}
bool ShallowClonePtrCandidate::isJet ( ) const [virtual]

Reimplemented from reco::LeafCandidate.

Definition at line 87 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                           { 
  return masterClone_->isJet(); 
}
bool ShallowClonePtrCandidate::isMuon ( ) const [virtual]

Reimplemented from reco::LeafCandidate.

Definition at line 59 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                            { 
  return masterClone_->isMuon(); 
}
bool ShallowClonePtrCandidate::isPhoton ( ) const [virtual]

Reimplemented from reco::LeafCandidate.

Definition at line 79 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                              { 
  return masterClone_->isPhoton(); 
}
bool ShallowClonePtrCandidate::isStandAloneMuon ( ) const [virtual]

Reimplemented from reco::LeafCandidate.

Definition at line 67 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                                      { 
  return masterClone_->isStandAloneMuon(); 
}
bool ShallowClonePtrCandidate::isTrackerMuon ( ) const [virtual]

Reimplemented from reco::LeafCandidate.

Definition at line 71 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                                   { 
  return masterClone_->isTrackerMuon(); 
}
const CandidatePtr & ShallowClonePtrCandidate::masterClonePtr ( ) const [virtual]

returns reference to master clone pointer

Reimplemented from reco::LeafCandidate.

Definition at line 51 of file ShallowClonePtrCandidate.cc.

References masterClone_.

Referenced by reco::FlavorHistoryEvent::cache(), reco::FlavorHistory::hasMatchedJet(), and reco::FlavorHistory::hasSisterJet().

                                                                    {
  return masterClone_;
}
const Candidate * ShallowClonePtrCandidate::mother ( size_type  i) const [virtual]

return mother at a given position (throws an exception)

Reimplemented from reco::LeafCandidate.

Definition at line 39 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                                                      { 
  return masterClone_->mother( i ); 
}
size_t ShallowClonePtrCandidate::numberOfDaughters ( ) const [virtual]

number of daughters

Reimplemented from reco::LeafCandidate.

Definition at line 27 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                                         { 
  return masterClone_->numberOfDaughters(); 
}
size_t ShallowClonePtrCandidate::numberOfMothers ( ) const [virtual]

number of mothers

Reimplemented from reco::LeafCandidate.

Definition at line 31 of file ShallowClonePtrCandidate.cc.

References masterClone_.

                                                       { 
  return masterClone_->numberOfMothers(); 
}
virtual bool reco::ShallowClonePtrCandidate::overlap ( const Candidate c) const [inline, private, virtual]

check overlap with another Candidate

Reimplemented from reco::LeafCandidate.

Definition at line 80 of file ShallowClonePtrCandidate.h.

References masterClone_.

{ return masterClone_->overlap( c ); }

Member Data Documentation