simple-tof-analysis
 All Classes Namespaces Functions Variables Groups Pages
TSPhaseSpaceFld.h
1 /*
2  * TSPhaseSpaceFld.h
3  *
4  * Created on: Jun 5, 2014
5  * Author: Silvestro di Luise
6  * Silvestro.Di.Luise@cern.ch
7  *
8  *
9  *
10  *
11  *
12  */
13 
14 #ifndef TSPHASESPACEFLD_H_
15 #define TSPHASESPACEFLD_H_
16 
17 #include <string>
18 #include <map>
19 
20 #include <TString.h>
21 
22 #include "TSHistogramFld.h"
23 #include "TSPhaseSpaceMap.h"
24 
25 
26 class TSPhaseSpaceFld: public TSNamed {
27 
28  // to begin with
29  // Relate to Map by pointer
30  //: public TSPhaseSpaceMap {
31 
32 
33 public:
34 
35  TSPhaseSpaceFld(TString name, TString tag, TString title, const TSPhaseSpaceMap &);
36  virtual ~TSPhaseSpaceFld();
37 
38 
39  int Fill();
40  int GetEntriesIn() const {return fEntriesIn;}
41  TSHistogramFld* GetHistogramFld() const {return fHistoFld;}
42  int GetNumOfCalls() const {return fNumOfCalls;}
43  TString GetTag() const {return fTag;}
44  float GetVolumeEntries(int) const;
45  void Init();
46  void Print() const;
47 
48  void SetTag(TString);
49 
50 private:
51 
52 
53  int fEntriesIn;
54  long int fNumOfCalls;
55 
56  void fRenameHistos();
57  void fInitCounters();
58 
59  TString fTag;
60 
61  const TSPhaseSpaceMap *fPhaseSpaceMap;
62 
63  std::map<int,float> fVolumeEntries;
64 
65  TSHistogramFld *fHistoFld;
66 
67 };
68 
69 
70 
71 #endif /* TSPHASESPACEFLD_H_ */
Definition: TSHistogramFld.h:39
Definition: TSPhaseSpaceMap.h:35
Definition: TSNamed.h:38
Definition: TSPhaseSpaceFld.h:26