00001 #ifndef DCHAIN_CHOSENCONJUGATELIST_CC
00002 #define DCHAIN_CHOSENCONJUGATELIST_CC
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #include <stdlib.h>
00030
00031
00032 #include "DecayChain/Function/DCAnalysisFunction.h"
00033 #include "DecayChain/Function/DCConjugateFunction.h"
00034 #include "DecayChain/Element/conjugation.h"
00035 #include "DecayChain/Element/LabeledParticle.h"
00036 #include "DecayChain/Iterator/MuteWholeItr.h"
00037 #include "DecayChain/Iterator/WholeItr.h"
00038 #include "DecayChain/Iterator/PartialItr.h"
00039 #include "DecayChain/List/LabeledParticleList.h"
00040
00041 #include "DecayChain/List/ChosenConjugateList.h"
00042
00043
00044
00045
00046 namespace dchain {
00047
00048
00049
00050
00051
00052
00053
00054 template < class Conjugate , class CandidateClass >
00055 ChosenConjugateList< Conjugate , CandidateClass >::ChosenConjugateList( LabeledParticleList< Conjugate , CandidateClass >& aLabeledParticleList ,
00056 const conjugation::Label aLabel ) :
00057 ConjugateList< CandidateClass >( aLabel ) ,
00058 m_list( &aLabeledParticleList )
00059 {
00060 }
00061
00062 template < class Conjugate , class CandidateClass >
00063 ChosenConjugateList< Conjugate , CandidateClass >::~ChosenConjugateList()
00064 {
00065 }
00066
00067
00068
00069
00070 template < class Conjugate , class CandidateClass >
00071 typename ChosenConjugateList< Conjugate , CandidateClass >::iterator ChosenConjugateList< Conjugate , CandidateClass >::particle_begin()
00072 {
00073 return ( m_list->begin() ) ;
00074 }
00075
00076 template < class Conjugate , class CandidateClass >
00077 typename ChosenConjugateList< Conjugate , CandidateClass >::iterator ChosenConjugateList< Conjugate , CandidateClass >::particle_end()
00078 {
00079 return ( m_list->end() ) ;
00080 }
00081
00082 template < class Conjugate , class CandidateClass >
00083 LabeledCandidateList< CandidateClass >& ChosenConjugateList< Conjugate , CandidateClass >::labeledCandidateList()
00084 {
00085 return ( *m_list ) ;
00086 }
00087
00088
00089
00090
00091 template < class Conjugate , class CandidateClass >
00092 typename ChosenConjugateList< Conjugate , CandidateClass >::const_iterator ChosenConjugateList< Conjugate , CandidateClass >::particle_begin() const
00093 {
00094
00095 return ( (*(const LabeledParticleList< Conjugate , CandidateClass >*)(m_list.pointer())).begin() ) ;
00096 }
00097
00098 template < class Conjugate , class CandidateClass >
00099 typename ChosenConjugateList< Conjugate , CandidateClass >::const_iterator ChosenConjugateList< Conjugate , CandidateClass >::particle_end() const
00100 {
00101
00102 return ( (*(const LabeledParticleList< Conjugate , CandidateClass >*)(m_list.pointer())).end() ) ;
00103 }
00104
00105 template < class Conjugate , class CandidateClass >
00106 typename ChosenConjugateList< Conjugate , CandidateClass >::const_partial_iterator ChosenConjugateList< Conjugate , CandidateClass >::partial_particle_begin() const
00107 {
00108
00109 return ( (*(const LabeledParticleList< Conjugate , CandidateClass >*)(m_list.pointer())).begin( this->label() ) ) ;
00110 }
00111
00112 template < class Conjugate , class CandidateClass >
00113 typename ChosenConjugateList< Conjugate , CandidateClass >::const_partial_iterator ChosenConjugateList< Conjugate , CandidateClass >::partial_particle_end() const
00114 {
00115
00116 return ( (*(const LabeledParticleList< Conjugate , CandidateClass >*)(m_list.pointer())).end( this->label() ) ) ;
00117 }
00118
00119
00120 template < class Conjugate , class CandidateClass >
00121 const LabeledCandidateList< CandidateClass >& ChosenConjugateList< Conjugate , CandidateClass >::labeledCandidateList() const
00122 {
00123 return ( *m_list ) ;
00124 }
00125
00126
00127
00128
00129 }
00130 #endif