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
SLBin
Definition: CastorShowerLibraryInfo.h:12
mps_fire.i
i
Definition: mps_fire.py:428
SLBin::ClassDefOverride
ClassDefOverride(SLBin, 2)
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
SLBin::~SLBin
~SLBin() override
Definition: CastorShowerLibraryInfo.h:15
SLBin::Clear
void Clear(Option_t *option="") override
Definition: CastorShowerLibraryInfo.h:17
CastorShowerLibraryInfo::CastorShowerLibraryInfo
CastorShowerLibraryInfo()
Definition: CastorShowerLibraryInfo.cc:4
SLBin::Bins
std::vector< double > Bins
Definition: CastorShowerLibraryInfo.h:37
SLBin::setBin
void setBin(double val)
Definition: CastorShowerLibraryInfo.h:24
CastorShowerLibraryInfo::~CastorShowerLibraryInfo
~CastorShowerLibraryInfo() override
Definition: CastorShowerLibraryInfo.cc:9
fileinputsource_cfi.option
option
Definition: fileinputsource_cfi.py:94
CastorShowerLibraryInfo
Definition: CastorShowerLibraryInfo.h:41
CastorShowerLibraryInfo::ClassDefOverride
ClassDefOverride(CastorShowerLibraryInfo, 2)
SLBin::NBins
unsigned int NBins
Definition: CastorShowerLibraryInfo.h:35
SLBin::setNEvtPerBin
void setNEvtPerBin(unsigned int n)
Definition: CastorShowerLibraryInfo.h:23
SLBin::getNEvts
unsigned int getNEvts()
Definition: CastorShowerLibraryInfo.h:27
SLBin::getNEvtPerBin
unsigned int getNEvtPerBin()
Definition: CastorShowerLibraryInfo.h:29
b
double b
Definition: hdecay.h:118
CastorShowerLibraryInfo::Clear
void Clear(Option_t *option="") override
Definition: CastorShowerLibraryInfo.cc:11
SLBin::getNBins
unsigned int getNBins()
Definition: CastorShowerLibraryInfo.h:28
SLBin::NEvtPerBin
unsigned int NEvtPerBin
Definition: CastorShowerLibraryInfo.h:36
SLBin::getBin
std::vector< double > & getBin()
Definition: CastorShowerLibraryInfo.h:31
SLBin::setNEvts
void setNEvts(unsigned int n)
Definition: CastorShowerLibraryInfo.h:21
SLBin::NEvts
unsigned int NEvts
Definition: CastorShowerLibraryInfo.h:31
SLBin::setBin
void setBin(const std::vector< double > &b)
Definition: CastorShowerLibraryInfo.h:25
CastorShowerLibraryInfo::Phi
SLBin Phi
Definition: CastorShowerLibraryInfo.h:51
heppy_batch.val
val
Definition: heppy_batch.py:351
CastorShowerLibraryInfo::Eta
SLBin Eta
Definition: CastorShowerLibraryInfo.h:50
CastorShowerLibraryInfo::Energy
SLBin Energy
Definition: CastorShowerLibraryInfo.h:49
SLBin::SLBin
SLBin()
Definition: CastorShowerLibraryInfo.h:14
SLBin::getBin
double getBin(int i)
Definition: CastorShowerLibraryInfo.h:30
SLBin::setNBins
void setNBins(unsigned int n)
Definition: CastorShowerLibraryInfo.h:22