CMS 3D CMS Logo

CastorShowerLibraryInfo.h
Go to the documentation of this file.
1 #ifndef CastorShowerLibraryInfo_h
2 #define CastorShowerLibraryInfo_h
3 
4 #include "TROOT.h"
5 #include "Rtypes.h"
6 #include "TObject.h"
7 #include "TClass.h"
8 #include "TDictionary.h"
9 
10 #include <vector>
11 #include <string>
12 class SLBin : public TObject {
13 public:
14  SLBin(){};
15  ~SLBin() override{};
16  // Setters
17  void Clear(Option_t* option = "") override {
18  NEvts = NBins = NEvtPerBin = 0;
19  Bins.clear();
20  };
21  void setNEvts(unsigned int n) { NEvts = n; };
22  void setNBins(unsigned int n) { NBins = n; };
23  void setNEvtPerBin(unsigned int n) { NEvtPerBin = n; };
24  void setBin(double val) { Bins.push_back(val); };
25  void setBin(const std::vector<double>& b) { Bins = b; };
26  // getters
27  unsigned int getNEvts() { return NEvts; };
28  unsigned int getNBins() { return NBins; };
29  unsigned int getNEvtPerBin() { return NEvtPerBin; };
30  double getBin(int i) { return Bins.at(i); };
31  std::vector<double>& getBin() { return Bins; };
32 
33 private:
34  unsigned int NEvts;
35  unsigned int NBins;
36  unsigned int NEvtPerBin;
37  std::vector<double> Bins;
39 };
40 
41 class CastorShowerLibraryInfo : public TObject {
42 public:
44  ~CastorShowerLibraryInfo() override;
45 
46  void Clear(Option_t* option = "") override;
47 
48  // Data members
52 
54 };
55 
56 #endif
ClassDefOverride(SLBin, 2)
void setNBins(unsigned int n)
void Clear(Option_t *option="") override
~SLBin() override
void setBin(double val)
std::vector< double > Bins
void setNEvtPerBin(unsigned int n)
unsigned int getNBins()
std::vector< double > & getBin()
unsigned int NEvtPerBin
unsigned int NBins
unsigned int getNEvts()
unsigned int getNEvtPerBin()
void setBin(const std::vector< double > &b)
double b
Definition: hdecay.h:120
unsigned int NEvts
void setNEvts(unsigned int n)
double getBin(int i)