82 _listOfLists.push_back(list);
87 return makeIntegCalculator();
93 if(_listOfLists.empty())
return ptr;
95 ptr = _listOfLists[0]->makeIntegCalculator();
96 if(_listOfLists.size() == 1)
return ptr;
98 for(
unsigned int i=1; i < _listOfLists.size(); i++){
99 ptr->
append(_listOfLists[i]->makeIntegCalculator());
106 if(_listOfLists.empty())
return 0;
108 for(
unsigned int i=0; i < _listOfLists.size(); i++){
109 sum += _listOfLists[i]->RealVal(evt);
115 if(_listOfLists.empty()){
120 if(_listOfLists.size() == 1)
return boxset;
122 for(
unsigned int i=1; i < _listOfLists.size(); i++){
137 os <<
"SumOfFitAmpList with " << _listOfLists.size()
138 <<
" components:" << endl;
139 for(
unsigned int i=0; i < _listOfLists.size(); i++){
140 os <<
" ------ " << endl;
141 if(0 != _listOfLists[i]) _listOfLists[i]->print(os);
145 os <<
"SumOfFitAmpList with " << _listOfLists.size()
146 <<
" components:" << endl;
147 for(
unsigned int i=0; i < _listOfLists.size(); i++){
148 os <<
" ------ " << i <<
" ----- " << endl;
149 if(0 != _listOfLists[i]) _listOfLists[i]->printNonZero(os);
151 os <<
" =========================== " << endl;
virtual bool append(const IntegCalculator &other)
virtual MINT::counted_ptr< IntegCalculator > makeIntegCalculator()
std::ostream & operator<<(std::ostream &os, const SumOfFitAmpLists &sofal)
virtual void print(std::ostream &os=std::cout) const
virtual double RealVal(IDalitzEvent &evt)
virtual void printNonZero(std::ostream &os=std::cout) const
virtual MINT::counted_ptr< IIntegrationCalculator > makeIntegrationCalculator()
virtual MINT::counted_ptr< MINT::IUnweightedEventGenerator< IDalitzEvent > > makeEventGenerator(const DalitzEventPattern &pat, TRandom *rnd=gRandom)
void addList(const MINT::counted_ptr< ILookLikeFitAmpSum > &list)
void add(DalitzBWBox &box)
virtual DalitzBWBoxSet makeBWBoxes(const DalitzEventPattern &pat, TRandom *rnd=gRandom)