16 ,
const std::string& opt
18 ,
const std::string& integEventsFname
19 ,
const std::string& generateEventsIfNeeded
20 ,
const std::string& fnamePrefix
27 , _eventsFname(integEventsFname)
28 , _generateEventsIfNeeded(
"DoGenerate" == generateEventsIfNeeded)
40 _fname = prefix +
"noPattern";
47 name +=
"_" + antiMum.
name();
54 for(
unsigned int i=1; i <
_pat.
size(); i++){
68 return "IntegEvents" +
_fname +
".root";
72 return (
_pat[0].props()->charge() ==
"0" &&
_pat[0].hasDistinctAnti());
80 antiPat[0].antiThis();
88 cout <<
"MakePreIntegratedAmplitudes::doit()" 89 <<
" will generate events if I don't find enough in file " 91 <<
" to reach precision " <<
_prec 96 cout <<
"MakePreIntegratedAmplitudes::doit()" 97 <<
" will NOT generate my own events " 98 <<
" even if I don't find enough in file " 100 <<
" to reach precision " <<
_prec 107 cout <<
"Saved integration result for " <<
_pat
const std::string & fname() const
virtual int add(const FitAmpListBase &other, double factor=1)
MakePreIntegratedAmplitudes(const DalitzEventPattern &pat, const std::string &opt, double prec, const std::string &integEventsFname="", const std::string &fnamePrefix="", const std::string &generateEventsIfNeeded="DoGenerate", TRandom *rnd=gRandom)
const std::string & eventsFname() const
bool _generateEventsIfNeeded
bool includeCPCon() const
unsigned int size() const
const std::string & makeFname(const std::string &prefix)
void setAllAmpsTo(const std::complex< double > z)
std::string defaultEventsFname() const
const std::string & makeEventsFname()