22 ,
const std::string& prefix
23 ,
const std::string& lineshapePrefix
24 ,
const std::string& opt
28 , _minuitParaSet(pset)
42 ,
const std::string& prefix
43 ,
const std::string& lineshapePrefix
44 ,
const std::string& opt
48 , _minuitParaSet(pset)
52 cout <<
"pset pointer in FitAmpList::FitAmpList " <<
getMPS() << endl;
59 ,
const std::string& prefix
60 ,
const std::string& lineshapePrefix
61 ,
const std::string& opt
77 , _paraFName(other._paraFName)
78 , _minuitParaSet(other._minuitParaSet)
84 if(&other ==
this)
return *
this;
102 if(dbThis) cout <<
"FitAmpList::GetCloneSameFitParameters()" << endl;
118 if(dbThis) cout <<
"FitAmpList::GetCPConjugateSameFitParameters()" << endl;
126 ,
const std::string& prefix
127 ,
const std::string& lineshapePrefix
136 cout <<
"ERROR in FitAmpList::createAllAmps!" 137 <<
"\n > Can't get NamedDecayTreeList." 142 if(ndl->
size() == 0){
143 cout <<
"ERROR in FitAmpList::createAllAmps!" 144 <<
"\n > NamedDecayTreeList is empty." 150 const char* fnamePtr = 0;
154 for(AmpInitMap::const_iterator it= ndl->
trees(
_opt).begin();
158 const DecayTree& theTree = it->second.tree();
160 if(dbThis) cout <<
"making amplitude " << prefix + it->first << endl;
162 if(
A_is_in_B(
"TopHats", it->second.lopt())){
163 cout <<
"making TopHats" << endl;
165 if(TopHatsLimits.
size() < 2){
166 cout <<
"error when setting TopHatsLimits: need at least 2 limits, have " 167 << TopHatsLimits.
size() << endl;
171 for(
int i=1; i < TopHatsLimits.
size(); i++){
172 double lo = TopHatsLimits.
getVal(i-1);
173 double hi = TopHatsLimits.
getVal(i);
175 cout <<
"TopHatLimits: " << lo <<
", " << hi << endl;
180 cout <<
"ai set " << endl;
189 if(dbThis) cout <<
"adding this: " << *famp << endl;
192 if(dbThis) cout <<
"ignoring this: " << *famp << endl;
198 if(dbThis)cout <<
"making a normal amplitude " << it->first << endl;
199 if(dbThis)cout <<
"with prefix: " << prefix << endl;
200 if(dbThis)cout <<
"lopt: " << it->second.lopt() << endl;
202 if(dbThis)cout <<
"lopt2 " << ai.
lopt() <<endl;
203 if(dbThis)cout <<
"at FitAmpList: lineshapePrefix " << lineshapePrefix << endl;
210 if(dbThis)cout <<
"adding this: " << *famp << endl;
213 if(dbThis) cout <<
"ignoring this: " << *famp << endl;
218 cout <<
"ERROR in FitAmpList::createAllAmps!" 219 <<
"\n > failed to create FitAmplitude" 220 <<
"\n > for decay name " << it->first
221 <<
"\n > \"new\" returned zero." 222 <<
"\n > I'll keep going and try to" 223 <<
"\n > create the other amplitudes." 255 if(dbThis) cout <<
"FitAmpList::~FitAmpList()" << endl;
257 if(dbThis) cout <<
"FitAmpList::~FitAmpList() done" << endl;
FitAmpList & operator+=(const FitAmpList &other)
friend class FitAmplitude
virtual int add(const FitAmpListBase &other, double factor=1)
virtual bool addAmplitude(FitAmplitude *fa)
virtual void printLargestAmp(IDalitzEvent &evt, std::ostream &os=std::cout)
const std::string & lopt() const
FitAmpList & operator *=(double r)
virtual bool CPConjugateSameFitParameters()
bool canBeIgnored() const
virtual void printAllAmps(std::ostream &os=std::cout) const
bool compatibleWith(const DecayTree &tree) const
std::ostream & operator<<(std::ostream &os, const FitAmpList &fal)
FitAmpList operator+(const FitAmpList &other) const
FitAmpList operator *(double r, const FitAmpList &rhs)
virtual void printLargestAmp(IDalitzEvent &evt, std::ostream &os=std::cout)
virtual int addAsList(const FitAmpListBase &other, double factor=1)
bool A_is_in_B(const std::string &a, const std::string &b)
virtual void printNonZeroWithValue(IDalitzEvent &evt, std::ostream &os=std::cout)
std::vector< FitAmplitude * > _fitAmps
virtual void printNonZeroWithValue(IDalitzEvent &evt, std::ostream &os=std::cout)
FitAmpList operator *(double r) const
virtual MINT::MinuitParameterSet * getMPS()
static NamedDecayTreeList * getMe(const std::string &printopt="printNever")
FitAmpList(const DalitzEventPattern &pat, const char *fname=0, MINT::MinuitParameterSet *pset=0, const std::string &prefix="", const std::string &lineshapePrefix="", const std::string &opt="")
virtual const DalitzEventPattern & eventPattern() const =0
virtual MINT::counted_ptr< FitAmpListBase > GetCPConjugateSameFitParameters() const
const AmpInitMap & trees(const std::string &opt="ALL") const
unsigned int size(const std::string &opt="ALL") const
virtual MINT::counted_ptr< FitAmpListBase > GetCloneSameFitParameters() const
virtual const T & getVal(int i=0) const
virtual void print(std::ostream &os=std::cout) const
virtual bool createAllAmps(const DalitzEventPattern &thePattern, const std::string &prefix="", const std::string &lineshapePrefix="")
MINT::MinuitParameterSet * _minuitParaSet
virtual void printAllAmps(std::ostream &os=std::cout) const
void setNumOpts(const std::vector< double > &numOpts_in=std::vector< double >())
virtual void multiply(double r)
FitAmpList & operator=(const FitAmpList &other)