00001 #ifndef DCHAIN_DCDECAYLIST_CC
00002 #define DCHAIN_DCDECAYLIST_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
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090 #include <stdlib.h>
00091 #include <iostream>
00092
00093
00094 #include "DecayChain/Function/DCSelectionFunction.h"
00095 #include "DecayChain/Function/DCAnalysisFunction.h"
00096 #include "DecayChain/Function/DCConjugateFunction.h"
00097 #include "DecayChain/Element/conjugation.h"
00098 #include "DecayChain/Element/LabeledParticle.h"
00099 #include "DecayChain/Iterator/MuteWholeItr.h"
00100 #include "DecayChain/Iterator/WholeItr.h"
00101 #include "DecayChain/Iterator/PartialItr.h"
00102 #include "DecayChain/List/LabeledParticleList.h"
00103 #include "DecayChain/List/CombinatoricList.h"
00104
00105 #include "DecayChain/List/DCDecayList.h"
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118 template < class DecayClass , class CandidateClass >
00119 DCDecayList< DecayClass , CandidateClass >::DCDecayList( bool ( * pFunction )( DecayClass& ) ) :
00120 m_function( pFunction ) ,
00121 m_functionalObject( 0 )
00122 {
00123 }
00124
00125 template < class DecayClass , class CandidateClass >
00126 DCDecayList< DecayClass , CandidateClass >::DCDecayList( const DCDecayList< DecayClass , CandidateClass >& aOtherList ,
00127 bool ( * pFunction )( DecayClass& ) ) :
00128 dchain::DecayList<DecayClass,CandidateClass>(),
00129 m_function( pFunction ) ,
00130 m_functionalObject( 0 )
00131 {
00132 fill( aOtherList ) ;
00133 }
00134
00135 template < class DecayClass , class CandidateClass >
00136 DCDecayList< DecayClass , CandidateClass >::DCDecayList( DCSelectionFunction< DecayClass >& aFunctionalObject ) :
00137 m_function( 0 ) ,
00138 m_functionalObject( &aFunctionalObject )
00139 {
00140 }
00141
00142
00143 template < class DecayClass , class CandidateClass >
00144 DCDecayList< DecayClass , CandidateClass >::DCDecayList( dchain::LabeledParticleList< DecayClass , CandidateClass >& aLabeledList , dchain::conjugation::Label aLabel ) :
00145 dchain::DecayList<DecayClass,CandidateClass>(aLabeledList, aLabel),
00146 m_function( 0 ) ,
00147 m_functionalObject( 0 )
00148 {
00149 }
00150
00151
00152
00153
00154
00155 template < class DecayClass , class CandidateClass >
00156 const DCDecayList< DecayClass , CandidateClass >& DCDecayList< DecayClass , CandidateClass >::operator=( const dchain::CombinatoricList< CandidateClass >& aOtherList )
00157 {
00158
00159 this->erase();
00160 fill(aOtherList);
00161
00162 return *this;
00163 }
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180 #endif