00001 #ifndef DCHAIN_CHOSENCHARGELIST_CC
00002 #define DCHAIN_CHOSENCHARGELIST_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
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075 #include <stdlib.h>
00076
00077
00078 #include "DecayChain/Function/DCAnalysisFunction.h"
00079 #include "DecayChain/Function/DCConjugateFunction.h"
00080 #include "DecayChain/Element/conjugation.h"
00081 #include "DecayChain/Element/LabeledParticle.h"
00082 #include "DecayChain/Iterator/MuteWholeItr.h"
00083 #include "DecayChain/Iterator/WholeItr.h"
00084 #include "DecayChain/Iterator/PartialItr.h"
00085 #include "DecayChain/List/LabeledParticleList.h"
00086
00087 #include "DecayChain/List/ChosenChargeList.h"
00088
00089
00090
00091
00092 namespace dchain {
00093
00094
00095
00096
00097
00098
00099
00100 template < class Charged , class CandidateClass >
00101 ChosenChargeList< Charged , CandidateClass >::ChosenChargeList( dchain::LabeledParticleList< Charged , CandidateClass >& aLabeledDecayList ,
00102 const conjugation::Label aLabel ) :
00103 ConjugateList< CandidateClass >( aLabel ) ,
00104 m_list( &aLabeledDecayList )
00105 {
00106 }
00107
00108 template < class Charged , class CandidateClass >
00109 ChosenChargeList< Charged , CandidateClass >::~ChosenChargeList()
00110 {
00111 }
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124 template < class Charged , class CandidateClass >
00125 typename ChosenChargeList< Charged , CandidateClass >::iterator ChosenChargeList< Charged , CandidateClass >::particle_begin()
00126 {
00127 return ( m_list->begin() ) ;
00128 }
00129
00130 template < class Charged , class CandidateClass >
00131 typename ChosenChargeList< Charged , CandidateClass >::iterator ChosenChargeList< Charged , CandidateClass >::particle_end()
00132 {
00133 return ( m_list->end() ) ;
00134 }
00135
00136 template < class Charged , class CandidateClass >
00137 dchain::LabeledCandidateList< CandidateClass >& ChosenChargeList< Charged , CandidateClass >::labeledCandidateList()
00138 {
00139 return ( *m_list ) ;
00140 }
00141
00142
00143
00144
00145 template < class Charged , class CandidateClass >
00146 typename ChosenChargeList< Charged , CandidateClass >::const_iterator ChosenChargeList< Charged , CandidateClass >::particle_begin() const
00147 {
00148
00149 return ( (*(const dchain::LabeledParticleList< Charged , CandidateClass >*)(m_list.pointer())).begin() ) ;
00150 }
00151
00152 template < class Charged , class CandidateClass >
00153 typename ChosenChargeList< Charged , CandidateClass >::const_iterator ChosenChargeList< Charged , CandidateClass >::particle_end() const
00154 {
00155
00156 return ( (*(const dchain::LabeledParticleList< Charged , CandidateClass >*)(m_list.pointer())).end() ) ;
00157 }
00158
00159 template < class Charged , class CandidateClass >
00160 typename ChosenChargeList< Charged , CandidateClass >::const_partial_iterator ChosenChargeList< Charged , CandidateClass >::partial_particle_begin() const
00161 {
00162
00163 return ( (*(const dchain::LabeledParticleList< Charged , CandidateClass >*)(m_list.pointer())).begin( this->label() ) ) ;
00164 }
00165
00166 template < class Charged , class CandidateClass >
00167 typename ChosenChargeList< Charged , CandidateClass >::const_partial_iterator ChosenChargeList< Charged , CandidateClass >::partial_particle_end() const
00168 {
00169
00170 return ( (*(const dchain::LabeledParticleList< Charged , CandidateClass >*)(m_list.pointer())).end( this->label() ) ) ;
00171 }
00172
00173 template < class Charged , class CandidateClass >
00174 const dchain::LabeledCandidateList< CandidateClass >& ChosenChargeList< Charged , CandidateClass >::labeledCandidateList() const
00175 {
00176 return ( *m_list ) ;
00177 }
00178
00179
00180
00181
00182 }
00183
00184 #endif