test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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() {};
16 // Setters
17  void Clear() {NEvts=NBins=NEvtPerBin=0;Bins.clear();};
18  void setNEvts(unsigned int n) {NEvts = n;};
19  void setNBins(unsigned int n) {NBins = n;};
20  void setNEvtPerBin(unsigned int n) {NEvtPerBin=n;};
21  void setBin(double val) {Bins.push_back(val);};
22  void setBin(const std::vector<double>& b) {Bins=b;};
23 // getters
24  unsigned int getNEvts() { return NEvts;};
25  unsigned int getNBins() { return NBins;};
26  unsigned int getNEvtPerBin() { return NEvtPerBin;};
27  double getBin(int i) { return Bins.at(i);};
28  std::vector<double>& getBin() { return Bins;};
29  private:
30  unsigned int NEvts;
31  unsigned int NBins;
32  unsigned int NEvtPerBin;
33  std::vector<double> Bins;
34  ClassDef(SLBin,2);
35 };
36 
37 class CastorShowerLibraryInfo : public TObject {
38 
39  public:
40 
43 
44  void Clear();
45 
46  // Data members
50 
52 
53  };
54 
55 #endif
void setNBins(unsigned int n)
int i
Definition: DBlmapReader.cc:9
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
ClassDef(SLBin, 2)
unsigned int getNEvts()
unsigned int getNEvtPerBin()
void setBin(const std::vector< double > &b)
double b
Definition: hdecay.h:120
ClassDef(CastorShowerLibraryInfo, 2)
unsigned int NEvts
void setNEvts(unsigned int n)
double getBin(int i)