MINT2
Public Member Functions | Private Attributes | List of all members
SumOfFitAmpLists Class Reference

#include <SumOfFitAmpLists.h>

Inheritance diagram for SumOfFitAmpLists:
MINT::IReturnRealForEvent< IDalitzEvent > IFastAmplitudeIntegrable ILookLikeFitAmpSum MINT::IReturnRealForEvent< IDalitzEvent > MINT::IReturnComplexForEvent< IDalitzEvent > IFastAmplitudeIntegrable MINT::IReturnRealForEvent< IDalitzEvent > MINT::IReturnRealForEvent< IDalitzEvent > MINT::IReturnComplexForEvent< IDalitzEvent >

Public Member Functions

 SumOfFitAmpLists ()
 
 SumOfFitAmpLists (const MINT::counted_ptr< ILookLikeFitAmpSum > &list)
 
 SumOfFitAmpLists (const MINT::counted_ptr< ILookLikeFitAmpSum > &list_1, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_2)
 
 SumOfFitAmpLists (const MINT::counted_ptr< ILookLikeFitAmpSum > &list_1, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_2, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_3)
 
 SumOfFitAmpLists (const MINT::counted_ptr< ILookLikeFitAmpSum > &list_1, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_2, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_3, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_4)
 
 SumOfFitAmpLists (const MINT::counted_ptr< ILookLikeFitAmpSum > &list_1, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_2, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_3, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_4, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_5)
 
 SumOfFitAmpLists (const MINT::counted_ptr< ILookLikeFitAmpSum > &list_1, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_2, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_3, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_4, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_5, const MINT::counted_ptr< ILookLikeFitAmpSum > &list_6)
 
void addList (const MINT::counted_ptr< ILookLikeFitAmpSum > &list)
 
virtual MINT::counted_ptr< IIntegrationCalculatormakeIntegrationCalculator ()
 
virtual MINT::counted_ptr< IntegCalculatormakeIntegCalculator ()
 
virtual double RealVal (IDalitzEvent &evt)
 
virtual DalitzBWBoxSet makeBWBoxes (const DalitzEventPattern &pat, TRandom *rnd=gRandom)
 
virtual MINT::counted_ptr< MINT::IUnweightedEventGenerator< IDalitzEvent > > makeEventGenerator (const DalitzEventPattern &pat, TRandom *rnd=gRandom)
 
virtual void print (std::ostream &os=std::cout) const
 
virtual void printNonZero (std::ostream &os=std::cout) const
 
- Public Member Functions inherited from MINT::IReturnRealForEvent< IDalitzEvent >
virtual ~IReturnRealForEvent ()
 
- Public Member Functions inherited from IFastAmplitudeIntegrable
virtual MINT::counted_ptr< FitAmpPairListmakeFitAmpPairList ()=0
 
virtual std::complex< double > ComplexVal (IDalitzEvent &evt)
 
virtual void Gradient (IDalitzEvent &evt, std::vector< double > &grad, MINT::MinuitParameterSet *mps)
 
virtual bool useAnalyticGradient ()
 
virtual ~IFastAmplitudeIntegrable ()
 
- Public Member Functions inherited from MINT::IReturnComplexForEvent< IDalitzEvent >
virtual ~IReturnComplexForEvent ()
 
- Public Member Functions inherited from ILookLikeFitAmpSum
virtual ~ILookLikeFitAmpSum ()
 

Private Attributes

std::vector< MINT::counted_ptr< ILookLikeFitAmpSum > > _listOfLists
 

Additional Inherited Members

- Protected Member Functions inherited from MINT::IReturnRealForEvent< IDalitzEvent >
 IReturnRealForEvent ()
 
- Protected Member Functions inherited from MINT::IReturnComplexForEvent< IDalitzEvent >
 IReturnComplexForEvent ()
 

Detailed Description

Definition at line 16 of file SumOfFitAmpLists.h.

Constructor & Destructor Documentation

◆ SumOfFitAmpLists() [1/7]

SumOfFitAmpLists::SumOfFitAmpLists ( )

Definition at line 6 of file SumOfFitAmpLists.cpp.

7 {
8 }

◆ SumOfFitAmpLists() [2/7]

SumOfFitAmpLists::SumOfFitAmpLists ( const MINT::counted_ptr< ILookLikeFitAmpSum > &  list)

Definition at line 10 of file SumOfFitAmpLists.cpp.

11  {
12  addList(list);
13 }
void addList(const MINT::counted_ptr< ILookLikeFitAmpSum > &list)

◆ SumOfFitAmpLists() [3/7]

SumOfFitAmpLists::SumOfFitAmpLists ( const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_1,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_2 
)

Definition at line 14 of file SumOfFitAmpLists.cpp.

17  {
18  addList(list_1);
19  addList(list_2);
20 }
void addList(const MINT::counted_ptr< ILookLikeFitAmpSum > &list)

◆ SumOfFitAmpLists() [4/7]

SumOfFitAmpLists::SumOfFitAmpLists ( const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_1,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_2,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_3 
)

Definition at line 21 of file SumOfFitAmpLists.cpp.

26  {
27  addList(list_1);
28  addList(list_2);
29  addList(list_3);
30 }
void addList(const MINT::counted_ptr< ILookLikeFitAmpSum > &list)

◆ SumOfFitAmpLists() [5/7]

SumOfFitAmpLists::SumOfFitAmpLists ( const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_1,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_2,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_3,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_4 
)

Definition at line 31 of file SumOfFitAmpLists.cpp.

38  {
39  addList(list_1);
40  addList(list_2);
41  addList(list_3);
42  addList(list_4);
43 }
void addList(const MINT::counted_ptr< ILookLikeFitAmpSum > &list)

◆ SumOfFitAmpLists() [6/7]

SumOfFitAmpLists::SumOfFitAmpLists ( const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_1,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_2,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_3,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_4,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_5 
)

Definition at line 44 of file SumOfFitAmpLists.cpp.

53  {
54  addList(list_1);
55  addList(list_2);
56  addList(list_3);
57  addList(list_4);
58  addList(list_5);
59 }
void addList(const MINT::counted_ptr< ILookLikeFitAmpSum > &list)

◆ SumOfFitAmpLists() [7/7]

SumOfFitAmpLists::SumOfFitAmpLists ( const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_1,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_2,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_3,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_4,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_5,
const MINT::counted_ptr< ILookLikeFitAmpSum > &  list_6 
)

Definition at line 60 of file SumOfFitAmpLists.cpp.

71  {
72  addList(list_1);
73  addList(list_2);
74  addList(list_3);
75  addList(list_4);
76  addList(list_5);
77  addList(list_6);
78 }
void addList(const MINT::counted_ptr< ILookLikeFitAmpSum > &list)

Member Function Documentation

◆ addList()

void SumOfFitAmpLists::addList ( const MINT::counted_ptr< ILookLikeFitAmpSum > &  list)

Definition at line 80 of file SumOfFitAmpLists.cpp.

81  {
82  _listOfLists.push_back(list);
83 }
std::vector< MINT::counted_ptr< ILookLikeFitAmpSum > > _listOfLists

◆ makeBWBoxes()

DalitzBWBoxSet SumOfFitAmpLists::makeBWBoxes ( const DalitzEventPattern pat,
TRandom *  rnd = gRandom 
)
virtual

Implements ILookLikeFitAmpSum.

Definition at line 114 of file SumOfFitAmpLists.cpp.

114  {
115  if(_listOfLists.empty()){
116  DalitzBWBoxSet emptyBoxes;
117  return emptyBoxes;
118  }
119  DalitzBWBoxSet boxset(_listOfLists[0]->makeBWBoxes(pat, rnd));
120  if(_listOfLists.size() == 1) return boxset;
121 
122  for(unsigned int i=1; i < _listOfLists.size(); i++){
123  DalitzBWBoxSet boxes(_listOfLists[i]->makeBWBoxes(pat, rnd));
124  boxset.add(boxes);
125  }
126  return boxset;
127 }
std::vector< MINT::counted_ptr< ILookLikeFitAmpSum > > _listOfLists
virtual DalitzBWBoxSet makeBWBoxes(const DalitzEventPattern &pat, TRandom *rnd=gRandom)

◆ makeEventGenerator()

MINT::counted_ptr< MINT::IUnweightedEventGenerator< IDalitzEvent > > SumOfFitAmpLists::makeEventGenerator ( const DalitzEventPattern pat,
TRandom *  rnd = gRandom 
)
virtual

Implements IFastAmplitudeIntegrable.

Definition at line 130 of file SumOfFitAmpLists.cpp.

130  {
132  ptr(new DalitzBWBoxSet(makeBWBoxes(pat, rnd)));
133  return ptr;
134 }
virtual DalitzBWBoxSet makeBWBoxes(const DalitzEventPattern &pat, TRandom *rnd=gRandom)

◆ makeIntegCalculator()

counted_ptr< IntegCalculator > SumOfFitAmpLists::makeIntegCalculator ( )
virtual

Implements IFastAmplitudeIntegrable.

Definition at line 91 of file SumOfFitAmpLists.cpp.

91  {
93  if(_listOfLists.empty()) return ptr;
94 
95  ptr = _listOfLists[0]->makeIntegCalculator();
96  if(_listOfLists.size() == 1) return ptr;
97 
98  for(unsigned int i=1; i < _listOfLists.size(); i++){
99  ptr->append(_listOfLists[i]->makeIntegCalculator());
100  }
101  return ptr;
102 }
virtual MINT::counted_ptr< IntegCalculator > makeIntegCalculator()
std::vector< MINT::counted_ptr< ILookLikeFitAmpSum > > _listOfLists

◆ makeIntegrationCalculator()

counted_ptr< IIntegrationCalculator > SumOfFitAmpLists::makeIntegrationCalculator ( )
virtual

Implements IFastAmplitudeIntegrable.

Definition at line 86 of file SumOfFitAmpLists.cpp.

86  {
87  return makeIntegCalculator();
88 }
virtual MINT::counted_ptr< IntegCalculator > makeIntegCalculator()

◆ print()

void SumOfFitAmpLists::print ( std::ostream &  os = std::cout) const
virtual

Implements IFastAmplitudeIntegrable.

Definition at line 136 of file SumOfFitAmpLists.cpp.

136  {
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);
142  }
143 }
std::vector< MINT::counted_ptr< ILookLikeFitAmpSum > > _listOfLists

◆ printNonZero()

void SumOfFitAmpLists::printNonZero ( std::ostream &  os = std::cout) const
virtual

Implements ILookLikeFitAmpSum.

Definition at line 144 of file SumOfFitAmpLists.cpp.

144  {
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);
150  }
151  os << " =========================== " << endl;
152 }
std::vector< MINT::counted_ptr< ILookLikeFitAmpSum > > _listOfLists

◆ RealVal()

double SumOfFitAmpLists::RealVal ( IDalitzEvent evt)
virtual

Implements ILookLikeFitAmpSum.

Definition at line 104 of file SumOfFitAmpLists.cpp.

104  {
105  double sum=0;
106  if(_listOfLists.empty()) return 0;
107 
108  for(unsigned int i=0; i < _listOfLists.size(); i++){
109  sum += _listOfLists[i]->RealVal(evt);
110  }
111  return sum;
112 }
std::vector< MINT::counted_ptr< ILookLikeFitAmpSum > > _listOfLists

Member Data Documentation

◆ _listOfLists

std::vector<MINT::counted_ptr<ILookLikeFitAmpSum> > SumOfFitAmpLists::_listOfLists
private

Definition at line 21 of file SumOfFitAmpLists.h.


The documentation for this class was generated from the following files: