#include <ChosenChargeList.h>
Inheritance diagram for dchain::ChosenChargeList< Charged, CandidateClass >:
Public Types | |
typedef dchain::MuteWholeItr< Charged > | iterator |
typedef dchain::WholeItr< Charged > | const_iterator |
typedef dchain::PartialItr< Charged > | const_partial_iterator |
typedef dchain::LabeledCandidate< CandidateClass > | value_type |
Public Member Functions | |
virtual | ~ChosenChargeList () |
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 | |
ChosenChargeList (dchain::LabeledParticleList< Charged, CandidateClass > &aLabeledDecayList, const conjugation::Label aLabel) | |
virtual dchain::LabeledCandidateList< CandidateClass > & | labeledCandidateList () |
virtual const dchain::LabeledCandidateList< CandidateClass > & | labeledCandidateList () const |
void | setLabel (const conjugation::Label aLabel) |
Private Member Functions | |
ChosenChargeList () | |
ChosenChargeList (const ChosenChargeList< Charged, CandidateClass > &aOtherList) | |
const ChosenChargeList< Charged, CandidateClass > & | operator= (const ChosenChargeList< Charged, CandidateClass > &aOtherList) |
Private Attributes | |
MutableReferenceHolder< dchain::LabeledParticleList< Charged, CandidateClass > > | m_list |
Friends | |
class | dchain::ChargedVisibleList< Charged, CandidateClass > |
Definition at line 54 of file ChosenChargeList.h.
typedef dchain::WholeItr< Charged > dchain::ChosenChargeList< Charged, CandidateClass >::const_iterator |
Reimplemented from dchain::ConjugateList< CandidateClass >.
Definition at line 62 of file ChosenChargeList.h.
typedef dchain::PartialItr< Charged > dchain::ChosenChargeList< Charged, CandidateClass >::const_partial_iterator |
Reimplemented from dchain::ConjugateList< CandidateClass >.
Definition at line 63 of file ChosenChargeList.h.
typedef dchain::MuteWholeItr< Charged > dchain::ChosenChargeList< Charged, CandidateClass >::iterator |
Reimplemented from dchain::ConjugateList< CandidateClass >.
Definition at line 61 of file ChosenChargeList.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::ChosenChargeList< Charged, CandidateClass >::~ChosenChargeList | ( | ) | [virtual] |
dchain::ChosenChargeList< Charged, CandidateClass >::ChosenChargeList | ( | dchain::LabeledParticleList< Charged, CandidateClass > & | aLabeledDecayList, | |
const conjugation::Label | aLabel | |||
) | [protected] |
Definition at line 101 of file ChosenChargeList.cc.
00102 : 00103 ConjugateList< CandidateClass >( aLabel ) , 00104 m_list( &aLabeledDecayList ) 00105 { 00106 }
dchain::ChosenChargeList< Charged, CandidateClass >::ChosenChargeList | ( | ) | [private] |
dchain::ChosenChargeList< Charged, CandidateClass >::ChosenChargeList | ( | const ChosenChargeList< Charged, 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::ChosenChargeList< Charged, 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 89 of file ChosenChargeList.h.
00090 { 00091 const_iterator finished ( particle_end() ) ; 00092 for ( const_iterator entry ( particle_begin() ) ; 00093 entry != finished ; 00094 ++entry ) { 00095 analyze( (*entry)() , (*entry).label() == this->label() ) ; 00096 } 00097 }
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::ChosenChargeList< Charged, CandidateClass >::iterate | ( | const TAnalyzer & | analyzer | ) | const [inline] |
Reimplemented from dchain::CandidateList< CandidateClass >.
Definition at line 79 of file ChosenChargeList.h.
00080 { 00081 const_iterator finished ( particle_end() ) ; 00082 for ( const_iterator entry ( particle_begin() ) ; 00083 entry != finished ; 00084 ++entry ) { 00085 analyze( (*entry)() ) ; 00086 } 00087 }
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 dchain::LabeledCandidateList< CandidateClass > & dchain::ChosenChargeList< Charged, CandidateClass >::labeledCandidateList | ( | ) | const [protected, virtual] |
Implements dchain::CandidateList< CandidateClass >.
Definition at line 174 of file ChosenChargeList.cc.
References dchain::ChosenChargeList< Charged, CandidateClass >::m_list.
00175 { 00176 return ( *m_list ) ; 00177 }
dchain::LabeledCandidateList< CandidateClass > & dchain::ChosenChargeList< Charged, CandidateClass >::labeledCandidateList | ( | ) | [protected, virtual] |
Implements dchain::CandidateList< CandidateClass >.
Definition at line 137 of file ChosenChargeList.cc.
References dchain::ChosenChargeList< Charged, CandidateClass >::m_list.
00138 { 00139 return ( *m_list ) ; 00140 }
const ChosenChargeList< Charged , CandidateClass >& dchain::ChosenChargeList< Charged, CandidateClass >::operator= | ( | const ChosenChargeList< Charged, 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::ChosenChargeList< Charged, CandidateClass >::partial_iterate | ( | const TAnalyzer & | analyzer | ) | const [inline] |
Reimplemented from dchain::ConjugateList< CandidateClass >.
Definition at line 100 of file ChosenChargeList.h.
00100 { 00101 const_partial_iterator finished ( partial_particle_end() ) ; 00102 for ( const_partial_iterator entry ( partial_particle_begin() ) ; 00103 entry != finished ; 00104 ++entry ) { 00105 analyze( (*entry)() ) ; 00106 } 00107 }
ChosenChargeList< Charged, CandidateClass >::const_partial_iterator dchain::ChosenChargeList< Charged, CandidateClass >::partial_particle_begin | ( | ) | const |
Definition at line 160 of file ChosenChargeList.cc.
References dchain::ChosenChargeList< Charged, CandidateClass >::m_list, and dchain::ReferenceHolderBase< TPtr, TRef >::pointer().
Referenced by dchain::ChosenChargeList< Charged, Charged::CandidateClass >::partial_iterate().
00161 { 00162 // Need to cast to 'const' to get the right function call 00163 return ( (*(const dchain::LabeledParticleList< Charged , CandidateClass >*)(m_list.pointer())).begin( this->label() ) ) ; 00164 }
ChosenChargeList< Charged, CandidateClass >::const_partial_iterator dchain::ChosenChargeList< Charged, CandidateClass >::partial_particle_end | ( | ) | const |
Definition at line 167 of file ChosenChargeList.cc.
References dchain::ChosenChargeList< Charged, CandidateClass >::m_list, and dchain::ReferenceHolderBase< TPtr, TRef >::pointer().
Referenced by dchain::ChosenChargeList< Charged, Charged::CandidateClass >::partial_iterate().
00168 { 00169 // Need to cast to 'const' to get the right function call 00170 return ( (*(const dchain::LabeledParticleList< Charged , CandidateClass >*)(m_list.pointer())).end( this->label() ) ) ; 00171 }
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 }
ChosenChargeList< Charged, CandidateClass >::const_iterator dchain::ChosenChargeList< Charged, CandidateClass >::particle_begin | ( | ) | const |
Definition at line 146 of file ChosenChargeList.cc.
References dchain::ChosenChargeList< Charged, CandidateClass >::m_list, and dchain::ReferenceHolderBase< TPtr, TRef >::pointer().
00147 { 00148 // Need to cast to 'const' to get the right function call 00149 return ( (*(const dchain::LabeledParticleList< Charged , CandidateClass >*)(m_list.pointer())).begin() ) ; 00150 }
ChosenChargeList< Charged, CandidateClass >::iterator dchain::ChosenChargeList< Charged, CandidateClass >::particle_begin | ( | ) |
Definition at line 125 of file ChosenChargeList.cc.
References dchain::ChosenChargeList< Charged, CandidateClass >::m_list.
Referenced by dchain::ChosenChargeList< Charged, Charged::CandidateClass >::conjugation_iterate(), and dchain::ChosenChargeList< Charged, Charged::CandidateClass >::iterate().
00126 { 00127 return ( m_list->begin() ) ; 00128 }
ChosenChargeList< Charged, CandidateClass >::const_iterator dchain::ChosenChargeList< Charged, CandidateClass >::particle_end | ( | ) | const |
Definition at line 153 of file ChosenChargeList.cc.
References dchain::ChosenChargeList< Charged, CandidateClass >::m_list, and dchain::ReferenceHolderBase< TPtr, TRef >::pointer().
00154 { 00155 // Need to cast to 'const' to get the right function call 00156 return ( (*(const dchain::LabeledParticleList< Charged , CandidateClass >*)(m_list.pointer())).end() ) ; 00157 }
ChosenChargeList< Charged, CandidateClass >::iterator dchain::ChosenChargeList< Charged, CandidateClass >::particle_end | ( | ) |
Definition at line 131 of file ChosenChargeList.cc.
References dchain::ChosenChargeList< Charged, CandidateClass >::m_list.
Referenced by dchain::ChosenChargeList< Charged, Charged::CandidateClass >::conjugation_iterate(), and dchain::ChosenChargeList< Charged, Charged::CandidateClass >::iterate().
00132 { 00133 return ( m_list->end() ) ; 00134 }
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 dchain::ChargedVisibleList< Charged, CandidateClass > [friend] |
Definition at line 57 of file ChosenChargeList.h.
MutableReferenceHolder< dchain::LabeledParticleList< Charged , CandidateClass > > dchain::ChosenChargeList< Charged, CandidateClass >::m_list [private] |
Definition at line 134 of file ChosenChargeList.h.
Referenced by dchain::ChosenChargeList< Charged, CandidateClass >::labeledCandidateList(), dchain::ChosenChargeList< Charged, CandidateClass >::partial_particle_begin(), dchain::ChosenChargeList< Charged, CandidateClass >::partial_particle_end(), dchain::ChosenChargeList< Charged, CandidateClass >::particle_begin(), and dchain::ChosenChargeList< Charged, CandidateClass >::particle_end().