MINT2
DalitzBWBox.h
Go to the documentation of this file.
1 #ifndef DALITZ_BW_BOX_HH
2 #define DALITZ_BW_BOX_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:17:58 GMT
5 
10 #include "Mint/DalitzEventList.h"
11 
12 #include "Mint/IGenFct.h"
13 
14 #include "Mint/counted_ptr.h"
15 
16 #include "TRandom.h"
17 
18 #include <vector>
19 #include <string>
20 #include <iostream>
21 
23  std::string _name;
24 
26 
29 
30  TRandom* _rnd;
31  double _height;
32 
34 
35  public:
36  double& height(){ return _height;}
37  const double& height() const{ return _height;}
38 
39 
40  DalitzBWBox(TRandom* rnd = gRandom);
43  , TRandom* rnd = gRandom
44  );
45 
47  , const MINT::counted_ptr<IGenFct>& fct
49  , TRandom* rnd = gRandom);
50 
52  , const std::vector<MINT::counted_ptr<IGenFct> >& limits
54  , TRandom* rnd = gRandom);
55 
56  DalitzBWBox(const DalitzBWBox& other);
57  virtual ~DalitzBWBox();
58 
60  const DalitzEventPattern& pattern()const{return _pat;}
61 
62  void setName(const std::string& name){ _name = name;}
63  const std::string& name() const{return _name;}
64 
65  const MappedDalitzBWArea& area()const{return _area;}
67 
68  double volume() const;
69 
70  bool checkIntegration() const{
71  return _area.checkIntegration();}
72 
73  double genValue(const DalitzEvent& evt) const;
74 
75  void setUnWeightPs(bool doSo=true){_area.setUnWeightPs(doSo);}
76  bool unWeightPs(){return _area.unWeightPs();}
77 
78 
80 
81  bool insideArea(const DalitzEvent& evt) const;
82 
86 
87  bool setRnd(TRandom* rnd=gRandom);
88 
89  void print(std::ostream& os = std::cout) const;
90 
91 };
92 
93 std::ostream& operator<<(std::ostream& os, const DalitzBWBox& box);
94 
95 
96 #endif
97 //
double & height()
Definition: DalitzBWBox.h:36
const DalitzEventPattern & pattern() const
Definition: DalitzBWBox.h:60
MappedDalitzBWArea & area()
Definition: DalitzBWBox.h:66
const std::string & name() const
Definition: DalitzBWBox.h:63
double _height
Definition: DalitzBWBox.h:31
MINT::IReturnRealForEvent< IDalitzEvent > * _amps
Definition: DalitzBWBox.h:28
bool insideArea(const DalitzEvent &evt) const
Definition: DalitzBWBox.cpp:87
std::string _name
Definition: DalitzBWBox.h:23
void print(std::ostream &os=std::cout) const
void setUnWeightPs(bool doSo=true)
bool setAmps(MINT::IReturnRealForEvent< IDalitzEvent > *amps)
Definition: DalitzBWBox.cpp:78
MappedDalitzBWArea _area
Definition: DalitzBWBox.h:25
DalitzEventPattern _pat
Definition: DalitzBWBox.h:27
bool setRnd(TRandom *rnd=gRandom)
const double & height() const
Definition: DalitzBWBox.h:37
std::ostream & operator<<(std::ostream &os, const DalitzBWBox &box)
bool checkIntegration() const
Definition: DalitzBWBox.h:70
double volume() const
void setUnWeightPs(bool doSo=true)
Definition: DalitzBWBox.h:75
const MappedDalitzBWArea & area() const
Definition: DalitzBWBox.h:65
double genValue(const DalitzEvent &evt) const
MINT::counted_ptr< DalitzEvent > makeEventForOwner()
TRandom * _rnd
Definition: DalitzBWBox.h:30
bool unWeightPs()
Definition: DalitzBWBox.h:76
void setName(const std::string &name)
Definition: DalitzBWBox.h:62
bool checkIntegration() const
virtual ~DalitzBWBox()
Definition: DalitzBWBox.cpp:84
MINT::counted_ptr< DalitzEvent > tryEventForOwner()
MINT::counted_ptr< DalitzEvent > tryNewEvent()
DalitzEventPattern & pattern()
Definition: DalitzBWBox.h:59
DalitzBWBox(TRandom *rnd=gRandom)
Definition: DalitzBWBox.cpp:17