#include <ChosenConjugateList.h>
Inheritance diagram for dchain::ChosenConjugateList< Conjugate, CandidateClass >:
Public Types | |
typedef MuteWholeItr< Conjugate > | iterator |
typedef WholeItr< Conjugate > | const_iterator |
typedef PartialItr< Conjugate > | const_partial_iterator |
typedef dchain::LabeledCandidate< CandidateClass > | value_type |
Public Member Functions | |
virtual | ~ChosenConjugateList () |
iterator | particle_begin () |
iterator | particle_end () |
const_iterator | particle_begin () const |
const_iterator | particle_end () const |
const_partial_iterator | partial_particle_begin () const |
const_partial_iterator | partial_particle_end () const |
template<class TAnalyzer> | |
void | iterate (const TAnalyzer &analyzer) const |
template<class TAnalyzer> | |
void | conjugation_iterate (const TAnalyzer &analyzer) const |
template<class TAnalyzer> | |
void | partial_iterate (const TAnalyzer &analyzer) const |
virtual bool | isSelfConjugate () const |
bool | isConjugateOf (const ConjugateList< CandidateClass > &aList) const |
int | partial_size () const |
virtual const_partial_iterator | partial_begin () const |
virtual const_partial_iterator | partial_end () const |
const_partial_iterator | conjugate_partial_begin () const |
const_partial_iterator | conjugate_partial_end () const |
virtual conjugation::Label | label () const |
virtual iterator | begin () |
virtual const_iterator | begin () const |
virtual iterator | end () |
virtual const_iterator | end () const |
virtual bool | empty () const |
virtual int | size () const |
Protected Member Functions | |
ChosenConjugateList (LabeledParticleList< Conjugate, CandidateClass > &aLabeledParticleList, const conjugation::Label aLabel) | |
virtual LabeledCandidateList< CandidateClass > & | labeledCandidateList () |
virtual const LabeledCandidateList< CandidateClass > & | labeledCandidateList () const |
void | setLabel (const conjugation::Label aLabel) |
Private Member Functions | |
ChosenConjugateList () | |
ChosenConjugateList (const ChosenConjugateList< Conjugate, CandidateClass > &aOtherList) | |
const ChosenConjugateList< Conjugate, CandidateClass > & | operator= (const ChosenConjugateList< Conjugate, CandidateClass > &aOtherList) |
Private Attributes | |
MutableReferenceHolder< LabeledParticleList< Conjugate, CandidateClass > > | m_list |
Friends | |
class | DCNeutralNCVisibleList< Conjugate, CandidateClass > |
class | NeutralNCVisibleList< Conjugate, CandidateClass > |
Definition at line 50 of file ChosenConjugateList.h.
typedef WholeItr< Conjugate > dchain::ChosenConjugateList< Conjugate, CandidateClass >::const_iterator |
Reimplemented from dchain::ConjugateList< CandidateClass >.
Definition at line 59 of file ChosenConjugateList.h.
typedef PartialItr< Conjugate > dchain::ChosenConjugateList< Conjugate, CandidateClass >::const_partial_iterator |
Reimplemented from dchain::ConjugateList< CandidateClass >.
Definition at line 60 of file ChosenConjugateList.h.
typedef MuteWholeItr< Conjugate > dchain::ChosenConjugateList< Conjugate, CandidateClass >::iterator |
Reimplemented from dchain::ConjugateList< CandidateClass >.
Definition at line 58 of file ChosenConjugateList.h.
typedef dchain::LabeledCandidate<CandidateClass> dchain::CandidateList< CandidateClass >::value_type [inherited] |
Reimplemented in dchain::ChargedVisibleList< Charged, CandidateClass >, DCChargedVisibleList< Charged, CandidateClass >, DCDecayList< DecayClass, CandidateClass >, DCNeutralNCVisibleList< NeutralNC, CandidateClass >, DCNeutralVisibleList< Neutral, CandidateClass >, dchain::DecayList< DecayClass, CandidateClass >, dchain::NeutralNCVisibleList< NeutralNC, CandidateClass >, dchain::NeutralVisibleList< Neutral, CandidateClass >, dchain::ChargedVisibleList< Charged, Charged::CandidateClass >, DCChargedVisibleList< Charged, Charged::CandidateClass >, DCNeutralNCVisibleList< NeutralNC, NeutralNC::CandidateClass >, DCNeutralVisibleList< Neutral, Neutral::CandidateClass >, dchain::DecayList< DCCandidateTraits< CandidateClass >::DCCandidateTraits< CandidateClass >::DecayClass, CandidateClass >, dchain::NeutralNCVisibleList< NeutralNC, NeutralNC::CandidateClass >, and dchain::NeutralVisibleList< Neutral, Neutral::CandidateClass >.
Definition at line 86 of file CandidateList.h.
dchain::ChosenConjugateList< Conjugate, CandidateClass >::~ChosenConjugateList | ( | ) | [virtual] |
dchain::ChosenConjugateList< Conjugate, CandidateClass >::ChosenConjugateList | ( | LabeledParticleList< Conjugate, CandidateClass > & | aLabeledParticleList, | |
const conjugation::Label | aLabel | |||
) | [protected] |
Definition at line 55 of file ChosenConjugateList.cc.
00056 : 00057 ConjugateList< CandidateClass >( aLabel ) , 00058 m_list( &aLabeledParticleList ) 00059 { 00060 }
dchain::ChosenConjugateList< Conjugate, CandidateClass >::ChosenConjugateList | ( | ) | [private] |
dchain::ChosenConjugateList< Conjugate, CandidateClass >::ChosenConjugateList | ( | const ChosenConjugateList< Conjugate, CandidateClass > & | aOtherList | ) | [private] |
CandidateList< CandidateClass >::const_iterator dchain::CandidateList< CandidateClass >::begin | ( | ) | const [virtual, inherited] |
Reimplemented in dchain::CombinatoricList< CandidateClass >.
Definition at line 151 of file CandidateList.cc.
References dchain::CandidateList< CandidateClass >::begin(), and dchain::CandidateList< CandidateClass >::labeledCandidateList().
00152 { 00153 // do this casting to make sure const 'begin' function is called 00154 return ( static_cast<const dchain::LabeledCandidateList< CandidateClass >*>(&labeledCandidateList())->begin() ); 00155 }
CandidateList< CandidateClass >::iterator dchain::CandidateList< CandidateClass >::begin | ( | ) | [virtual, inherited] |
Reimplemented in dchain::CombinatoricList< CandidateClass >.
Definition at line 115 of file CandidateList.cc.
References dchain::CandidateList< CandidateClass >::labeledCandidateList().
Referenced by dchain::CandidateList< CandidateClass >::begin(), and dchain::CandidateList< NeutralNC::CandidateClass >::iterate().
00116 { 00117 return ( labeledCandidateList().begin() ) ; 00118 }
ConjugateList< CandidateClass >::const_partial_iterator dchain::ConjugateList< CandidateClass >::conjugate_partial_begin | ( | ) | const [inherited] |
Definition at line 152 of file ConjugateList.cc.
References dchain::ConjugateList< CandidateClass >::m_label, and dchain::otherLabel().
Referenced by dchain::CombinatoricList< CandidateClass >::fill().
00153 { 00154 return ( this->labeledCandidateList().begin( otherLabel( m_label ) ) ) ; 00155 }
ConjugateList< CandidateClass >::const_partial_iterator dchain::ConjugateList< CandidateClass >::conjugate_partial_end | ( | ) | const [inherited] |
Definition at line 158 of file ConjugateList.cc.
References dchain::ConjugateList< CandidateClass >::m_label, and dchain::otherLabel().
Referenced by dchain::CombinatoricList< CandidateClass >::fill().
00159 { 00160 return ( this->labeledCandidateList().end( otherLabel( m_label ) ) ) ; 00161 }
void dchain::ChosenConjugateList< Conjugate, CandidateClass >::conjugation_iterate | ( | const TAnalyzer & | analyzer | ) | const [inline] |
TAnalyzer takes two arguments 1) const CandidateClass& 2) a bool which is 'true' if the candiate matches the present conjugation
Reimplemented from dchain::ConjugateList< CandidateClass >.
Definition at line 88 of file ChosenConjugateList.h.
00089 { 00090 const_iterator finished ( particle_end() ) ; 00091 for ( const_iterator entry ( particle_begin() ) ; 00092 entry != finished ; 00093 ++entry ) { 00094 analyze( (*entry)() , (*entry).label() == this->label() ) ; 00095 } 00096 }
bool dchain::CandidateList< CandidateClass >::empty | ( | ) | const [virtual, inherited] |
Definition at line 135 of file CandidateList.cc.
References dchain::CandidateList< CandidateClass >::labeledCandidateList().
00136 { 00137 return ( labeledCandidateList().empty() ) ; 00138 }
CandidateList< CandidateClass >::const_iterator dchain::CandidateList< CandidateClass >::end | ( | ) | const [virtual, inherited] |
Reimplemented in dchain::CombinatoricList< CandidateClass >.
Definition at line 160 of file CandidateList.cc.
References dchain::CandidateList< CandidateClass >::end(), and dchain::CandidateList< CandidateClass >::labeledCandidateList().
00161 { 00162 // do this casting to make sure const 'end' function is called 00163 return ( static_cast<const dchain::LabeledCandidateList< CandidateClass >*>(&labeledCandidateList())->end() ); 00164 }
CandidateList< CandidateClass >::iterator dchain::CandidateList< CandidateClass >::end | ( | ) | [virtual, inherited] |
Reimplemented in dchain::CombinatoricList< CandidateClass >.
Definition at line 123 of file CandidateList.cc.
References dchain::CandidateList< CandidateClass >::labeledCandidateList().
Referenced by dchain::CandidateList< CandidateClass >::end(), and dchain::CandidateList< NeutralNC::CandidateClass >::iterate().
00124 { 00125 return ( labeledCandidateList().end() ) ; 00126 }
bool dchain::ConjugateList< CandidateClass >::isConjugateOf | ( | const ConjugateList< CandidateClass > & | aList | ) | const [inherited] |
Definition at line 127 of file ConjugateList.cc.
References dchain::ConjugateList< CandidateClass >::label(), dchain::CandidateList< CandidateClass >::labeledCandidateList(), and dchain::otherLabel().
Referenced by dchain::CombinatoricList< CandidateClass >::determineConjugation().
00128 { 00129 return ( ( &(this->labeledCandidateList()) == &(aList.labeledCandidateList()) ) && 00130 ( label() == otherLabel( aList.label() ) ) ) ; 00131 }
bool dchain::ConjugateList< CandidateClass >::isSelfConjugate | ( | ) | const [virtual, inherited] |
Reimplemented in dchain::CombinatoricList< CandidateClass >.
Definition at line 121 of file ConjugateList.cc.
References dchain::conjugation::kNone, and dchain::ConjugateList< CandidateClass >::m_label.
Referenced by dchain::operator+(), and operator+().
00122 { 00123 return ( conjugation::kNone == m_label ) ; 00124 }
void dchain::ChosenConjugateList< Conjugate, CandidateClass >::iterate | ( | const TAnalyzer & | analyzer | ) | const [inline] |
Reimplemented from dchain::CandidateList< CandidateClass >.
Definition at line 78 of file ChosenConjugateList.h.
00079 { 00080 const_iterator finished ( particle_end() ) ; 00081 for ( const_iterator entry ( particle_begin() ) ; 00082 entry != finished ; 00083 ++entry ) { 00084 analyze( (*entry)() ) ; 00085 } 00086 }
conjugation::Label dchain::ConjugateList< CandidateClass >::label | ( | ) | const [virtual, inherited] |
Reimplemented in dchain::CombinatoricList< CandidateClass >.
Definition at line 165 of file ConjugateList.cc.
References dchain::ConjugateList< CandidateClass >::m_label.
Referenced by dchain::DecayList< DCCandidateTraits< CandidateClass >::DCCandidateTraits< CandidateClass >::DecayClass, CandidateClass >::conjugation_iterate(), dchain::ChosenConjugateList< NeutralNC, CandidateClass >::conjugation_iterate(), dchain::ChosenChargeList< Charged, Charged::CandidateClass >::conjugation_iterate(), and dchain::ConjugateList< CandidateClass >::isConjugateOf().
00166 { 00167 return ( m_label ) ; 00168 }
const LabeledCandidateList< CandidateClass > & dchain::ChosenConjugateList< Conjugate, CandidateClass >::labeledCandidateList | ( | ) | const [protected, virtual] |
Implements dchain::CandidateList< CandidateClass >.
Definition at line 121 of file ChosenConjugateList.cc.
References dchain::ChosenConjugateList< Conjugate, CandidateClass >::m_list.
00122 { 00123 return ( *m_list ) ; 00124 }
LabeledCandidateList< CandidateClass > & dchain::ChosenConjugateList< Conjugate, CandidateClass >::labeledCandidateList | ( | ) | [protected, virtual] |
Implements dchain::CandidateList< CandidateClass >.
Definition at line 83 of file ChosenConjugateList.cc.
References dchain::ChosenConjugateList< Conjugate, CandidateClass >::m_list.
00084 { 00085 return ( *m_list ) ; 00086 }
const ChosenConjugateList< Conjugate , CandidateClass >& dchain::ChosenConjugateList< Conjugate, CandidateClass >::operator= | ( | const ChosenConjugateList< Conjugate, CandidateClass > & | aOtherList | ) | [private] |
ConjugateList< CandidateClass >::const_partial_iterator dchain::ConjugateList< CandidateClass >::partial_begin | ( | ) | const [virtual, inherited] |
Reimplemented in dchain::CombinatoricList< CandidateClass >.
Definition at line 140 of file ConjugateList.cc.
References dchain::ConjugateList< CandidateClass >::m_label.
Referenced by dchain::ConjugateList< NeutralNC::CandidateClass >::partial_iterate().
00141 { 00142 return ( this->labeledCandidateList().begin( m_label ) ) ; 00143 }
ConjugateList< CandidateClass >::const_partial_iterator dchain::ConjugateList< CandidateClass >::partial_end | ( | ) | const [virtual, inherited] |
Reimplemented in dchain::CombinatoricList< CandidateClass >.
Definition at line 146 of file ConjugateList.cc.
References dchain::ConjugateList< CandidateClass >::m_label.
Referenced by dchain::ConjugateList< NeutralNC::CandidateClass >::partial_iterate().
00147 { 00148 return ( this->labeledCandidateList().end( m_label ) ) ; 00149 }
void dchain::ChosenConjugateList< Conjugate, CandidateClass >::partial_iterate | ( | const TAnalyzer & | analyzer | ) | const [inline] |
Reimplemented from dchain::ConjugateList< CandidateClass >.
Definition at line 99 of file ChosenConjugateList.h.
00099 { 00100 const_partial_iterator finished ( partial_particle_end() ) ; 00101 for ( const_partial_iterator entry ( partial_particle_begin() ) ; 00102 entry != finished ; 00103 ++entry ) { 00104 analyze( (*entry)() ) ; 00105 } 00106 }
ChosenConjugateList< Conjugate, CandidateClass >::const_partial_iterator dchain::ChosenConjugateList< Conjugate, CandidateClass >::partial_particle_begin | ( | ) | const |
Definition at line 106 of file ChosenConjugateList.cc.
References dchain::ChosenConjugateList< Conjugate, CandidateClass >::m_list.
Referenced by dchain::ChosenConjugateList< NeutralNC, CandidateClass >::partial_iterate().
00107 { 00108 // Need to cast to 'const' to get the right function call 00109 return ( (*(const LabeledParticleList< Conjugate , CandidateClass >*)(m_list.pointer())).begin( this->label() ) ) ; 00110 }
ChosenConjugateList< Conjugate, CandidateClass >::const_partial_iterator dchain::ChosenConjugateList< Conjugate, CandidateClass >::partial_particle_end | ( | ) | const |
Definition at line 113 of file ChosenConjugateList.cc.
References dchain::ChosenConjugateList< Conjugate, CandidateClass >::m_list.
Referenced by dchain::ChosenConjugateList< NeutralNC, CandidateClass >::partial_iterate().
00114 { 00115 // Need to cast to 'const' to get the right function call 00116 return ( (*(const LabeledParticleList< Conjugate , CandidateClass >*)(m_list.pointer())).end( this->label() ) ) ; 00117 }
int dchain::ConjugateList< CandidateClass >::partial_size | ( | ) | const [inherited] |
Definition at line 134 of file ConjugateList.cc.
References dchain::ConjugateList< CandidateClass >::m_label.
00135 { 00136 return ( this->labeledCandidateList().size( m_label ) ) ; 00137 }
ChosenConjugateList< Conjugate, CandidateClass >::const_iterator dchain::ChosenConjugateList< Conjugate, CandidateClass >::particle_begin | ( | ) | const |
Definition at line 92 of file ChosenConjugateList.cc.
References dchain::ChosenConjugateList< Conjugate, CandidateClass >::m_list.
00093 { 00094 // Need to cast to 'const' to get the right function call 00095 return ( (*(const LabeledParticleList< Conjugate , CandidateClass >*)(m_list.pointer())).begin() ) ; 00096 }
ChosenConjugateList< Conjugate, CandidateClass >::iterator dchain::ChosenConjugateList< Conjugate, CandidateClass >::particle_begin | ( | ) |
Definition at line 71 of file ChosenConjugateList.cc.
References dchain::ChosenConjugateList< Conjugate, CandidateClass >::m_list.
Referenced by dchain::ChosenConjugateList< NeutralNC, CandidateClass >::conjugation_iterate(), and dchain::ChosenConjugateList< NeutralNC, CandidateClass >::iterate().
00072 { 00073 return ( m_list->begin() ) ; 00074 }
ChosenConjugateList< Conjugate, CandidateClass >::const_iterator dchain::ChosenConjugateList< Conjugate, CandidateClass >::particle_end | ( | ) | const |
Definition at line 99 of file ChosenConjugateList.cc.
References dchain::ChosenConjugateList< Conjugate, CandidateClass >::m_list.
00100 { 00101 // Need to cast to 'const' to get the right function call 00102 return ( (*(const LabeledParticleList< Conjugate , CandidateClass >*)(m_list.pointer())).end() ) ; 00103 }
ChosenConjugateList< Conjugate, CandidateClass >::iterator dchain::ChosenConjugateList< Conjugate, CandidateClass >::particle_end | ( | ) |
Definition at line 77 of file ChosenConjugateList.cc.
References dchain::ChosenConjugateList< Conjugate, CandidateClass >::m_list.
Referenced by dchain::ChosenConjugateList< NeutralNC, CandidateClass >::conjugation_iterate(), and dchain::ChosenConjugateList< NeutralNC, CandidateClass >::iterate().
00078 { 00079 return ( m_list->end() ) ; 00080 }
void dchain::ConjugateList< CandidateClass >::setLabel | ( | const conjugation::Label | aLabel | ) | [protected, inherited] |
Definition at line 111 of file ConjugateList.cc.
References dchain::ConjugateList< CandidateClass >::m_label.
Referenced by dchain::DecayList< DCCandidateTraits< CandidateClass >::DCCandidateTraits< CandidateClass >::DecayClass, CandidateClass >::fill().
00112 { 00113 m_label = aLabel ; 00114 }
int dchain::CandidateList< CandidateClass >::size | ( | ) | const [virtual, inherited] |
Definition at line 143 of file CandidateList.cc.
References dchain::CandidateList< CandidateClass >::labeledCandidateList().
Referenced by NeutralDReconstruction::execute(), DsReconstruction::execute(), and ChargedDReconstruction::execute().
00144 { 00145 return ( labeledCandidateList().size() ) ; 00146 }
friend class DCNeutralNCVisibleList< Conjugate, CandidateClass > [friend] |
Definition at line 53 of file ChosenConjugateList.h.
friend class NeutralNCVisibleList< Conjugate, CandidateClass > [friend] |
Definition at line 54 of file ChosenConjugateList.h.
MutableReferenceHolder<LabeledParticleList< Conjugate , CandidateClass > > dchain::ChosenConjugateList< Conjugate, CandidateClass >::m_list [private] |
Definition at line 134 of file ChosenConjugateList.h.
Referenced by dchain::ChosenConjugateList< Conjugate, CandidateClass >::labeledCandidateList(), dchain::ChosenConjugateList< Conjugate, CandidateClass >::partial_particle_begin(), dchain::ChosenConjugateList< Conjugate, CandidateClass >::partial_particle_end(), dchain::ChosenConjugateList< Conjugate, CandidateClass >::particle_begin(), and dchain::ChosenConjugateList< Conjugate, CandidateClass >::particle_end().