MINT2
DalitzPdfNormChecker.h
Go to the documentation of this file.
1 #ifndef DALITZ_PDF_NORM_CHECKER_HH
2 #define DALITZ_PDF_NORM_CHECKER_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:18:02 GMT
5 
6 #include "TRandom.h"
9 #include "Mint/DalitzEvent.h"
10 #include "Mint/IDalitzEvent.h"
11 #include "Mint/IDalitzPdf.h"
12 
13 #include "Mint/counted_ptr.h"
14 
15 #include <iostream>
16 
19  TRandom* _rnd;
22 
24  double _sum, _sumsq;
25  int _NInside;
27  long unsigned int _Nevents;
28 
29  void makeMiMa();
30 
32  , double scale1
33  , double scale2
34  , double scale3
35  , double scale4
36  ) const;
37 
41 
42  double currentAbsolutePrecision()const;
43  double currentRelativePrecision()const;
44  double boxSize() const;
45  bool sufficientPrecision() const;
46  public:
48  , const DalitzEventPattern& pat
49  , double prec = 1.0e-2
50  , TRandom* rnd=gRandom);
51 
52  double checkNorm();
53  double result() const;
54  double resultError() const;
55 
56  void print(std::ostream& os = std::cout)const;
57 };
58 
59 std::ostream& operator<<(std::ostream& os, const DalitzPdfNormChecker& nc);
60 
61 #endif
62 //
MINT::counted_ptr< DalitzEvent > make3Event() const
long unsigned int _Nevents
void print(std::ostream &os=std::cout) const
DalitzPdfNormChecker(IDalitzPdf *pdf, const DalitzEventPattern &pat, double prec=1.0e-2, TRandom *rnd=gRandom)
std::ostream & operator<<(std::ostream &os, const DalitzPdfNormChecker &nc)
double currentAbsolutePrecision() const
MINT::counted_ptr< DalitzEvent > make4Event() const
DalitzEventPattern _pat
MINT::counted_ptr< DalitzEvent > makeEventForOwner() const
double currentRelativePrecision() const