19 return "With_EfficiencyEffects";
22 return "Without_EfficiencyEffects";
35 : _withEff(), _noEff(), _onlyOneFitAmpPairList(false)
39 : _withEff(wEff), _noEff(wEff)
51 , _withEff(other._withEff)
52 , _noEff(other._noEff)
53 , _onlyOneFitAmpPairList(other._onlyOneFitAmpPairList)
78 if(0 == evtPtr)
return;
87 if(0 == evtPtr)
return;
91 if(0 == evtPtr)
return;
100 if(0 == evtPtr)
return;
111 if(0 != other)
return add(*other);
115 if(0 != other)
return add(*other);
126 if(0 != other)
return append(*other);
130 if(0 != other)
return append(*other);
139 cout <<
"WARNING in IntegCalculator::numEvents()!" 140 <<
" number of events in FitAmpPairList with efficiency" 141 <<
" is not the same as without: " 142 << Nw <<
" != " << Nn << endl;
143 cout <<
"I'll return the one with efficiency, Nw = " << Nw << endl;
162 cout <<
"Fractions WITH efficiency (for debug only)" << endl;
164 cout <<
"\n and now Fractions WITHOUT efficiency" 165 <<
" (i.e. what you really want):" << endl;
208 if(dbThis) cout <<
"IntegCalculator::doFinalStats called" << endl;
236 mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO
241 int zeroForSuccess = 0;
242 zeroForSuccess |= mkdir( (asSubdirOf ).c_str(), mode );
243 zeroForSuccess |= mkdir( (asSubdirOf+
"/"+
dirNameWithEff() ).c_str(), mode );
244 zeroForSuccess |= mkdir( (asSubdirOf+
"/"+
dirNameNoEff() ).c_str(), mode );
245 return (0 == zeroForSuccess);
263 std::stringstream is(commaSeparatedList);
266 while(getline(is, dirname,
',')){
267 dirname = ParsedParameterLine::removeLeadingAndTrailingBlanks(dirname);
268 if(
"" == dirname)
continue;
270 cout <<
"IntegCalculator::retrieve: reading file: " 297 os <<
"IntegCalculator" 298 <<
"my FitAmpPairList with eff:\n" <<
withEff()
299 <<
"\n the integral: " <<
integral();
bool _onlyOneFitAmpPairList
virtual bool append(const IntegCalculator &other)
virtual double getFractionChi2() const
void startReIntegration()
virtual bool retrieve(const std::string &commaSeparatedList)
virtual bool append(const FitAmpPairList &otherListPtr)
virtual DalitzHistoSet interferenceHistoSet() const
virtual void saveInterferenceHistograms(const std::string &prefix) const
virtual DalitzHistoSet histoSet() const
virtual double integral() const
virtual bool save(const std::string &dirname) const
virtual void addAmps(FitAmplitude *a1, FitAmplitude *a2)
virtual FitFractionList getFractions() const
virtual void reAddEvent(IDalitzEvent &evt, double weight=1)
std::vector< DalitzHistoSet > GetEachAmpsHistograms()
virtual DalitzHistoSet un_normalised_histoSetRe() const
virtual void print(std::ostream &os=std::cout) const
void saveEachAmpsHistograms(const std::string &prefix) const
virtual DalitzHistoSet un_normalised_histoSetIm() const
virtual std::vector< DalitzHistoSet > GetInterferenceHistograms()
virtual double variance() const
std::vector< DalitzHistoSet > GetInterferenceHistograms()
static std::string dirNameWithEff()
virtual std::vector< DalitzHistoSet > GetEachAmpsHistograms()
virtual bool add(const FitAmpPairList &otherList)
virtual bool add(const IntegCalculator &other)
void setEfficiency(MINT::counted_ptr< MINT::IReturnRealForEvent< IDalitzEvent > > eff)
bool needToReIntegrate() const
virtual double integral() const
virtual void addAmps(FitAmplitude *a1, FitAmplitude *a2)
virtual bool makeAndStoreFractions(MINT::Minimiser *mini=0)
virtual std::complex< double > ComplexSum() const
virtual int numEvents() const
virtual MINT::counted_ptr< IIntegrationCalculator > clone_IIntegrationCalculator() const
virtual bool makeAndStoreFractions(MINT::Minimiser *mini=0)
virtual double variance() const
virtual bool save(const std::string &asSubdirOf=".") const
virtual void doFinalStats(MINT::Minimiser *mini=0)
virtual void addEvent(IDalitzEvent *evtPtr, double weight=1)
virtual bool retrieveSingle(const std::string &dirname)
bool makeDirectories(const std::string &asSubdirOf=".") const
virtual void saveEachAmpsHistograms(const std::string &prefix) const
static std::string dirNameNoEff()
virtual DalitzHistoSet un_normalised_histoSetIm() const
virtual std::complex< double > ComplexSum() const
virtual double getFractionChi2() const
FitFractionList getFractions() const
void saveInterferenceHistograms(const std::string &prefix) const
bool haveEfficiency() const
DalitzHistoSet interferenceHistoSet() const
virtual int numEvents() const
virtual void addEvent(IDalitzEvent *evtPtr, double weight=1)
bool needToReIntegrate() const
void setEfficiency(MINT::counted_ptr< MINT::IReturnRealForEvent< IDalitzEvent > > eff)
virtual DalitzHistoSet histoSet() const
virtual DalitzHistoSet un_normalised_histoSetRe() const
void startReIntegration()
virtual bool retrieve(const std::string &asSubdirOf=".")
FitAmpPairList & withEff()
virtual void reAddEvent(IDalitzEvent *evtPtr, double weight=1)