25 bool flipToChargeConjugate(
false );
30 flipToChargeConjugate =
true;
33 MassEigenstateCodeMap::const_iterator
34 returnFromMap( codeMap.find( pdgCode ) );
35 if( codeMap.end() != returnFromMap )
38 if( flipToChargeConjugate )
44 returnPointer = (*returnFromMap).second;
52 bool const isSelfConjugate,
53 std::string
const& asciiName,
54 std::string
const& latexName,
55 double const defaultResetMass,
56 double const defaultDecayWidth ) :
57 chargeConjugate( NULL ),
58 isSelfConjugateFlag( isSelfConjugate ),
59 identifyingPdgCodes( 1,
61 pdgCodeMap( mapAndVectorAndBools.getMap() ),
64 massRecorded( false ),
65 defaultResetMass( defaultResetMass ),
66 signedDefaultMass( defaultResetMass ),
67 absoluteDefaultMass( defaultResetMass ),
69 runningMassesAsVector(),
70 decaysRecorded( false ),
71 defaultDecayWidth( defaultDecayWidth ),
72 decayWidth( defaultDecayWidth ),
76 asciiName( asciiName ),
77 latexName( latexName ),
78 isVerbose( mapAndVectorAndBools.getBool() ),
79 flagBools( mapAndVectorAndBools.getFlags() ),
80 setOfPointersOfMassEigenstateGroup( mapAndVectorAndBools.getVector() )
92 int const secondPdgCode,
94 bool const isSelfConjugate,
95 std::string
const& asciiName,
96 std::string
const& latexName,
97 double const defaultResetMass,
98 double const defaultDecayWidth ) :
99 chargeConjugate( NULL ),
100 isSelfConjugateFlag( isSelfConjugate ),
101 identifyingPdgCodes( 2,
103 pdgCodeMap( mapAndVectorAndBools.getMap() ),
106 massRecorded( false ),
107 defaultResetMass( defaultResetMass ),
108 signedDefaultMass( defaultResetMass ),
109 absoluteDefaultMass( defaultResetMass ),
111 runningMassesAsVector(),
112 decaysRecorded( false ),
113 defaultDecayWidth( defaultDecayWidth ),
114 decayWidth( defaultDecayWidth ),
118 asciiName( asciiName ),
119 latexName( latexName ),
120 isVerbose( mapAndVectorAndBools.getBool() ),
121 flagBools( mapAndVectorAndBools.getFlags() ),
122 setOfPointersOfMassEigenstateGroup( mapAndVectorAndBools.getVector() )
138 bool const isSelfConjugate,
139 std::string
const& asciiName,
140 std::string
const& latexName,
141 double const defaultResetMass,
142 double const defaultDecayWidth ) :
143 chargeConjugate( NULL ),
144 isSelfConjugateFlag( isSelfConjugate ),
145 identifyingPdgCodes( pdgCodes.begin(),
147 pdgCodeMap( mapAndVectorAndBools.getMap() ),
150 massRecorded( false ),
151 defaultResetMass( defaultResetMass ),
152 signedDefaultMass( defaultResetMass ),
153 absoluteDefaultMass( defaultResetMass ),
155 runningMassesAsVector(),
156 decaysRecorded( false ),
157 defaultDecayWidth( defaultDecayWidth ),
158 decayWidth( defaultDecayWidth ),
162 asciiName( asciiName ),
163 latexName( latexName ),
164 isVerbose( mapAndVectorAndBools.getBool() ),
165 flagBools( mapAndVectorAndBools.getFlags() ),
166 setOfPointersOfMassEigenstateGroup( mapAndVectorAndBools.getVector() )
179 chargeConjugate( NULL ),
180 isSelfConjugateFlag( copySource.isSelfConjugateFlag ),
181 identifyingPdgCodes( copySource.identifyingPdgCodes.begin(),
182 copySource.identifyingPdgCodes.end() ),
183 pdgCodeMap( mapAndVectorAndBools.getMap() ),
186 massRecorded( false ),
187 defaultResetMass( copySource.defaultResetMass ),
188 signedDefaultMass( copySource.signedDefaultMass ),
189 absoluteDefaultMass( copySource.absoluteDefaultMass ),
191 runningMassesAsVector(),
192 decaysRecorded( copySource.decaysRecorded ),
193 defaultDecayWidth( copySource.defaultDecayWidth ),
194 decayWidth( copySource.decayWidth ),
195 defaultDecaySet( copySource.defaultDecaySet ),
196 decaySet( copySource.decaySet ),
197 decaySetAsVector( copySource.decaySetAsVector ),
198 asciiName( copySource.asciiName ),
199 latexName( copySource.latexName ),
200 isVerbose( mapAndVectorAndBools.getBool() ),
201 flagBools( mapAndVectorAndBools.getFlags() ),
202 setOfPointersOfMassEigenstateGroup( mapAndVectorAndBools.getVector() )
215 std::string
const& asciiName,
216 std::string
const& latexName ) :
217 chargeConjugate( ©Source ),
218 isSelfConjugateFlag( copySource.isSelfConjugateFlag ),
219 identifyingPdgCodes( copySource.identifyingPdgCodes.size(),
220 -(copySource.getCode()) ),
221 pdgCodeMap( copySource.pdgCodeMap ),
224 massRecorded( false ),
225 defaultResetMass( copySource.defaultResetMass ),
226 signedDefaultMass( copySource.signedDefaultMass ),
227 absoluteDefaultMass( copySource.absoluteDefaultMass ),
229 runningMassesAsVector(),
230 decaysRecorded( false ),
231 defaultDecayWidth( copySource.defaultDecayWidth ),
232 decayWidth( copySource.decayWidth ),
236 asciiName( asciiName ),
237 latexName( latexName ),
238 isVerbose( copySource.isVerbose ),
239 flagBools( copySource.flagBools ),
240 setOfPointersOfMassEigenstateGroup(
241 copySource.setOfPointersOfMassEigenstateGroup )
274 extraCode = -extraCode;
312 MassEigenstateCodeMap::iterator codeFinder;
331 double const minusUncertainty,
332 double const plusUncertainty,
333 int const schemeType,
334 double const evaluationScale )
347 ( 0 == schemeType ) )
void setToBeChargeConjugate(MassEigenstate *const chargeConjugate)
double absoluteDefaultMass
std::map< int, MassEigenstate * > MassEigenstateCodeMap
bool hasCode(int const pdgCode) const
std::vector< ExtendedMass * > runningMassesAsVector
MassEigenstate(int const pdgCode, MassEigenstateMapVectorBools &mapAndVectorAndBools, bool const isSelfConjugate, std::string const &asciiName, std::string const &latexName, double const defaultResetMass=BOL::UsefulStuff::notANumber, double const defaultDecayWidth=BOL::UsefulStuff::notANumber)
void recordMass(double const massValue, double const minusUncertainty=0.0, double const plusUncertainty=0.0, int const schemeType=0, double const evaluationScale=0.0)
MassEigenstate * chargeConjugate
void constructorBodyFunction()
void setChargeConjugate(MassEigenstate *const chargeConjugate)
BOL::VectorlikeArray< ExtendedMass > runningMasses
MassEigenstateVector & setOfPointersOfMassEigenstateGroup
static MassEigenstate * findPointerWithCode(int pdgCode, MassEigenstateCodeMap const &codeMap)
MassEigenstate & addCode(int extraCode)
bool isSelfConjugate() const
void addToCodeMap(int const positiveExtraCode)
MassEigenstateCodeMap & pdgCodeMap
std::vector< int > identifyingPdgCodes