#include <MappedDalitzBWArea.h>
|
| MappedDalitzBWArea () |
|
| MappedDalitzBWArea (const DalitzEventPattern &pat, TRandom *rnd=gRandom) |
|
| MappedDalitzBWArea (const DalitzEventPattern &pat, const MINT::counted_ptr< IGenFct > &oneFunction, TRandom *rnd=gRandom) |
|
| MappedDalitzBWArea (const DalitzEventPattern &pat, const MINT::counted_ptr< IGenFct > &oneFunction, const MINT::counted_ptr< IGenFct > &otherFunction, TRandom *rnd=gRandom) |
|
| MappedDalitzBWArea (const DalitzEventPattern &pat, const std::vector< MINT::counted_ptr< IGenFct > > &functions, TRandom *rnd=gRandom) |
|
| MappedDalitzBWArea (const MappedDalitzBWArea &other) |
|
virtual | ~MappedDalitzBWArea () |
|
bool | checkIntegration () const |
|
MINT::counted_ptr< DalitzEvent > | tryEventForOwner () const |
|
bool | isInside (const DalitzEvent &evt) const |
|
bool | isInside (const DalitzCoordinate &dc) const |
|
bool | isInside (const std::vector< DalitzCoordinate > &dcList) const |
|
double | genValue (const DalitzEvent &evt) const |
|
double | size () const |
|
double | integral () const |
|
void | setUnWeightPs (bool doSo=true) |
|
bool | unWeightPs () |
|
void | print (std::ostream &os=std::cout) const |
|
MINT::counted_ptr< IGenFct > | fct_for_s (const std::vector< int > &indices) const |
|
MINT::counted_ptr< IGenFct > | fct_for_s (int i, int j, int k=-1) const |
|
MappedDalitzBWArea & | operator= (const MappedDalitzBWArea &other) |
|
bool | setRnd (TRandom *rnd=gRandom) |
|
Definition at line 21 of file MappedDalitzBWArea.h.
◆ MappedDalitzBWArea() [1/6]
MappedDalitzBWArea::MappedDalitzBWArea |
( |
| ) |
|
Definition at line 24 of file MappedDalitzBWArea.cpp.
DalitzEventPattern _mappedPat
std::vector< MINT::counted_ptr< IGenFct > > _limits
Permutation _inverseMapping
◆ MappedDalitzBWArea() [2/6]
MappedDalitzBWArea::MappedDalitzBWArea |
( |
const DalitzEventPattern & |
pat, |
|
|
TRandom * |
rnd = gRandom |
|
) |
| |
Definition at line 35 of file MappedDalitzBWArea.cpp.
DalitzEventPattern _mappedPat
std::vector< MINT::counted_ptr< IGenFct > > _limits
unsigned int size() const
Permutation _inverseMapping
◆ MappedDalitzBWArea() [3/6]
Definition at line 47 of file MappedDalitzBWArea.cpp.
DalitzEventPattern _mappedPat
std::vector< MINT::counted_ptr< IGenFct > > _limits
unsigned int size() const
Permutation _inverseMapping
◆ MappedDalitzBWArea() [4/6]
Definition at line 61 of file MappedDalitzBWArea.cpp.
DalitzEventPattern _mappedPat
std::vector< MINT::counted_ptr< IGenFct > > _limits
unsigned int size() const
Permutation _inverseMapping
◆ MappedDalitzBWArea() [5/6]
Definition at line 87 of file MappedDalitzBWArea.cpp.
DalitzEventPattern _mappedPat
std::vector< MINT::counted_ptr< IGenFct > > _limits
unsigned int size() const
Permutation _inverseMapping
◆ MappedDalitzBWArea() [6/6]
Definition at line 101 of file MappedDalitzBWArea.cpp.
DalitzEventPattern _mappedPat
std::vector< MINT::counted_ptr< IGenFct > > _limits
Permutation _inverseMapping
◆ ~MappedDalitzBWArea()
MappedDalitzBWArea::~MappedDalitzBWArea |
( |
| ) |
|
|
virtual |
◆ allConsecutive()
bool MappedDalitzBWArea::allConsecutive |
( |
| ) |
const |
|
private |
Definition at line 126 of file MappedDalitzBWArea.cpp.
127 for(
unsigned int i=0; i <
_limits.size(); i++){
bool I_am_Consecutive() const
std::vector< MINT::counted_ptr< IGenFct > > _limits
DalitzCoordinate mapMe(const Permutation &perm) const
◆ allStandardised()
bool MappedDalitzBWArea::allStandardised |
( |
| ) |
const |
|
private |
Definition at line 138 of file MappedDalitzBWArea.cpp.
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;
std::vector< MINT::counted_ptr< IGenFct > > _limits
◆ applyLimits()
void MappedDalitzBWArea::applyLimits |
( |
| ) |
|
|
private |
Definition at line 235 of file MappedDalitzBWArea.cpp.
237 for(
unsigned int i=0; i <
_limits.size(); i++){
239 cout <<
"mapped co-ordinates " void setFcn(const DalitzCoordinate &c, const MINT::counted_ptr< IGenFct > &fcn)
std::vector< MINT::counted_ptr< IGenFct > > _limits
◆ checkIntegration()
bool MappedDalitzBWArea::checkIntegration |
( |
| ) |
const |
|
inline |
◆ fct_for_s() [1/2]
◆ fct_for_s() [2/2]
◆ findMapping()
void MappedDalitzBWArea::findMapping |
( |
| ) |
|
|
private |
Definition at line 168 of file MappedDalitzBWArea.cpp.
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 " bool allStandardised() const
DalitzEventPattern _mappedPat
bool allConsecutive() const
unsigned int size() const
Permutation _inverseMapping
Permutation getInverse() const
◆ genValue()
double MappedDalitzBWArea::genValue |
( |
const DalitzEvent & |
evt | ) |
const |
Definition at line 307 of file MappedDalitzBWArea.cpp.
315 cout <<
" mapping: " <<
_mapping << endl;
318 <<
"\n MappedDalitzBWArea::genValue returning " << returnVal << endl;
std::vector< TLorentzVector > & mapP4(const DalitzEvent &evt, const Permutation &mapping, std::vector< TLorentzVector > &p4) const
DalitzEventPattern _mappedPat
bool isInside(const DalitzEvent &evt) const
double genValue(const IDalitzEvent *evtPtr) const
Permutation _inverseMapping
◆ integral()
double MappedDalitzBWArea::integral |
( |
| ) |
const |
|
inline |
◆ isInside() [1/3]
bool MappedDalitzBWArea::isInside |
( |
const DalitzEvent & |
evt | ) |
const |
Definition at line 323 of file MappedDalitzBWArea.cpp.
327 vector<TLorentzVector> p4 =
std::vector< TLorentzVector > & mapP4(const DalitzEvent &evt, const Permutation &mapping, std::vector< TLorentzVector > &p4) const
DalitzEventPattern _mappedPat
Permutation _inverseMapping
bool isInside(const DalitzEvent &evt) const
◆ isInside() [2/3]
Definition at line 336 of file MappedDalitzBWArea.cpp.
DalitzCoordinate mapMe(const Permutation &perm) const
bool isInside(const DalitzEvent &evt) const
◆ isInside() [3/3]
bool MappedDalitzBWArea::isInside |
( |
const std::vector< DalitzCoordinate > & |
dcList | ) |
const |
Definition at line 339 of file MappedDalitzBWArea.cpp.
341 for(
unsigned int i=0; i < dcList.size(); i++){
bool isInside(const DalitzEvent &evt) const
◆ mapP4() [1/2]
std::vector<TLorentzVector>& MappedDalitzBWArea::mapP4 |
( |
const DalitzEvent & |
evt, |
|
|
const Permutation & |
mapping, |
|
|
std::vector< TLorentzVector > & |
p4 |
|
) |
| const |
|
inlineprivate |
Definition at line 49 of file MappedDalitzBWArea.h.
55 for(
unsigned int i=0; i < n; i++){
56 int mappedIndex = mapping[i];
57 if(mappedIndex < 0 || mappedIndex + 1 > (
int) n){
58 std::cout <<
"ERROR in MappedDalitzBWArea::mapP4()" 59 <<
"\n Index out of range: " << mappedIndex
60 <<
" not in [0, " << n-1
62 throw "index out of range.";
64 p4[mappedIndex] = evt.
p(i);
virtual const DalitzEventPattern & eventPattern() const
virtual const TLorentzVector & p(unsigned int i) const
unsigned int size() const
◆ mapP4() [2/2]
std::vector<TLorentzVector> MappedDalitzBWArea::mapP4 |
( |
const DalitzEvent & |
evt, |
|
|
const Permutation & |
mapping |
|
) |
| const |
|
inlineprivate |
Definition at line 68 of file MappedDalitzBWArea.h.
72 return mapP4(evt, mapping, p4);
virtual const DalitzEventPattern & eventPattern() const
std::vector< TLorentzVector > & mapP4(const DalitzEvent &evt, const Permutation &mapping, std::vector< TLorentzVector > &p4) const
unsigned int size() const
◆ operator=()
Definition at line 112 of file MappedDalitzBWArea.cpp.
DalitzEventPattern _mappedPat
std::vector< MINT::counted_ptr< IGenFct > > _limits
Permutation _inverseMapping
◆ print()
void MappedDalitzBWArea::print |
( |
std::ostream & |
os = std::cout | ) |
const |
Definition at line 353 of file MappedDalitzBWArea.cpp.
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;
std::vector< MINT::counted_ptr< IGenFct > > _limits
◆ setRnd()
bool MappedDalitzBWArea::setRnd |
( |
TRandom * |
rnd = gRandom | ) |
|
◆ setUnWeightPs()
void MappedDalitzBWArea::setUnWeightPs |
( |
bool |
doSo = true | ) |
|
|
inline |
◆ setup()
void MappedDalitzBWArea::setup |
( |
| ) |
|
|
private |
Definition at line 224 of file MappedDalitzBWArea.cpp.
229 if(dbThis) cout <<
" mappedPat " <<
_mappedPat << endl;
bool setRnd(TRandom *rnd=gRandom)
DalitzEventPattern _mappedPat
std::vector< MINT::counted_ptr< IGenFct > > _limits
void setPattern(const DalitzEventPattern &pat)
◆ size()
double MappedDalitzBWArea::size |
( |
| ) |
const |
|
inline |
◆ tryEventForOwner()
Definition at line 278 of file MappedDalitzBWArea.cpp.
281 cout <<
"Hello from MappedDalitzBWArea::tryEventForOwner()" MINT::counted_ptr< DalitzEvent > tryEventForOwner(const Permutation &mapping=Permutation::unity()) const
Permutation _inverseMapping
◆ unWeightPs()
bool MappedDalitzBWArea::unWeightPs |
( |
| ) |
|
|
inline |
◆ _area
◆ _inverseMapping
◆ _limits
◆ _mappedPat
◆ _mapping
◆ _pat
◆ _rnd
TRandom* MappedDalitzBWArea::_rnd |
|
private |
The documentation for this class was generated from the following files: