MINT2
DalitzEventPtrList.h
Go to the documentation of this file.
1 #ifndef DALITZEVENPTRTLIST_HH
2 #define DALITZEVENPTRTLIST_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:18:00 GMT
5 
6 #include <string>
7 
8 #include "Mint/EventPtrList.h"
9 #include "Mint/IDalitzEvent.h"
11 #include "Mint/DalitzHistoSet.h"
12 //#include "Mint/IDalitzEventAccess.h"
13 //#include "Mint/IEventAccess.h"
14 
15 #include "TNtupleD.h"
16 
17 #include "Mint/IReturnReal.h"
18 
19 #include "Mint/DalitzEvent.h"
20 #include "Mint/counted_ptr.h"
21 
22 #include "Mint/PlotSet.h"
24 
26 
27 class TRandom;
28 class TH1D;
29 class TH2D;
30 class TNtupleD;
31 
32 class FitAmpSum;
33 
35 public MINT::EventPtrList<DalitzEvent>
36 {
37  static const std::string _className;
38  protected:
39 
40  public:
43  virtual ~DalitzEventPtrList();
44 
45  const std::string& className() const{return _className;}
46 
47  int generatePhaseSpaceEvents(int NumEvents
48  , const DalitzEventPattern& pat
49  , TRandom* rnd=0
50  );
51  int generateEvents(unsigned int NumEvents
52  , const DalitzEventPattern& pat
54  , TRandom* rnd
55  );
56 
57  DalitzHistoSet histoSet() const;
61 
62  bool save(const std::string& fname = "DalitzEvents.root") const;
63  bool fromFile(const std::string& fname = "DalitzEvents.root");
64 
65  TNtupleD* makeNtuple() const;
66  TNtupleD* makeNtuple(const std::string& ntpName) const;
67 
68  bool saveAsNtuple(const std::string& fname="DalitzEvents.root")const;
69  bool saveAsNtuple(const std::string& fname
70  , const std::string& ntpName
71  ) const;
72  bool fromNtuple(TTree* ntp);
73  bool fromNtupleFile(const std::string& fname="DalitzEvents.root");
74 
75 
76 };
77 
78 #endif
79 //
static const std::string _className
DalitzHistoSet weighedReWeightedHistoSet(MINT::IReturnRealForEvent< IDalitzEvent > *w)
int generateEvents(unsigned int NumEvents, const DalitzEventPattern &pat, MINT::IReturnRealForEvent< IDalitzEvent > *amps, TRandom *rnd)
int generatePhaseSpaceEvents(int NumEvents, const DalitzEventPattern &pat, TRandom *rnd=0)
DalitzHistoSet histoSet() const
bool fromFile(const std::string &fname="DalitzEvents.root")
const std::string & className() const
DalitzHistoSet weightedHistoSet() const
bool fromNtupleFile(const std::string &fname="DalitzEvents.root")
bool saveAsNtuple(const std::string &fname="DalitzEvents.root") const
bool fromNtuple(TTree *ntp)
TNtupleD * makeNtuple() const
DalitzHistoSet reWeightedHistoSet(MINT::IReturnRealForEvent< IDalitzEvent > *w)
bool save(const std::string &fname="DalitzEvents.root") const