42 , _mapping(pat.size())
43 , _inverseMapping(pat.size())
55 , _mapping(pat.size())
56 , _inverseMapping(pat.size())
70 , _mapping(pat.size())
71 , _inverseMapping(pat.size())
95 , _mapping(pat.size())
96 , _inverseMapping(pat.size())
104 , _mappedPat(other._mappedPat)
106 , _limits(other._limits)
107 , _mapping(other._mapping)
108 , _inverseMapping(other._inverseMapping)
127 for(
unsigned int i=0; i <
_limits.size(); i++){
152 if(
_limits[0]->getCoordinate().mapMe(
_mapping).sameIndices(s123))
return true;
153 if(
_limits[0]->getCoordinate().mapMe(
_mapping).sameIndices(s12))
return true;
157 &&
_limits[1]->getCoordinate().mapMe(
_mapping).sameIndices(s12))
return true;
159 &&
_limits[1]->getCoordinate().mapMe(
_mapping).sameIndices(s34))
return true;
161 &&
_limits[0]->getCoordinate().mapMe(
_mapping).sameIndices(s12))
return true;
163 &&
_limits[0]->getCoordinate().mapMe(
_mapping).sameIndices(s34))
return true;
175 for(
unsigned int i=1; i<
_pat.
size(); i++){
185 for(
unsigned int i=0; i< ptor.
size(); i++){
187 if(dbThis) cout <<
" trying out mapping\n " <<
_mapping << endl;
194 cout <<
" MappedDalitzBWArea::findMapping: WARNING!!" 195 <<
" didn't find a mapping!!!" 200 for(
unsigned int i=0; i <
_pat.
size(); i++){
203 cout <<
"ERROR in MappedDalitzBWArea::findMapping()" 204 <<
"\n Index out of range: " << mappedIndex
207 throw "index out of range.";
210 cout <<
" mapped index of " << i
211 <<
" = " << mappedIndex << endl;
217 cout <<
" using the following mapping:\n " 229 if(dbThis) cout <<
" mappedPat " <<
_mappedPat << endl;
237 for(
unsigned int i=0; i <
_limits.size(); i++){
239 cout <<
"mapped co-ordinates " 281 cout <<
"Hello from MappedDalitzBWArea::tryEventForOwner()" 315 cout <<
" mapping: " <<
_mapping << endl;
318 <<
"\n MappedDalitzBWArea::genValue returning " << returnVal << endl;
327 vector<TLorentzVector> p4 =
341 for(
unsigned int i=0; i < dcList.size(); i++){
354 os <<
" MappedDalitzBWArea " 356 for(
unsigned int i=0; i <
_limits.size(); i++){
358 os <<
"\n ZERO-PTR LIMIT!" << endl;
360 os <<
"\n " << (
_limits[i])->getCoordinate() << endl;
365 <<
"\n area: " <<
_area;
bool allStandardised() const
bool I_am_Consecutive() const
bool setRnd(TRandom *rnd=gRandom)
std::ostream & operator<<(std::ostream &os, const MappedDalitzBWArea &mda)
MINT::counted_ptr< DalitzEvent > tryEventForOwner(const Permutation &mapping=Permutation::unity()) const
std::vector< TLorentzVector > & mapP4(const DalitzEvent &evt, const Permutation &mapping, std::vector< TLorentzVector > &p4) const
MINT::counted_ptr< DalitzEvent > tryEventForOwner() const
bool setRnd(TRandom *rnd=gRandom)
void setFcn(const DalitzCoordinate &c, const MINT::counted_ptr< IGenFct > &fcn)
DalitzEventPattern _mappedPat
std::vector< MINT::counted_ptr< IGenFct > > _limits
bool isInside(const DalitzEvent &evt) const
virtual ~MappedDalitzBWArea()
bool allConsecutive() const
DalitzCoordinate mapMe(const Permutation &perm) const
double genValue(const IDalitzEvent *evtPtr) const
unsigned int size() const
Permutation _inverseMapping
void setPattern(const DalitzEventPattern &pat)
MappedDalitzBWArea & operator=(const MappedDalitzBWArea &other)
bool isInside(const DalitzEvent &evt) const
double genValue(const DalitzEvent &evt) const
void print(std::ostream &os=std::cout) const
Permutation getInverse() const