CMS 3D CMS Logo

TMCReader.h
Go to the documentation of this file.
1 #ifndef TMCReader_H
2 #define TMCReader_H
3 
4 #include "TObject.h"
5 
6 class TMCReader : public TObject {
7 public:
8  static constexpr unsigned int FNPNMAX = 10;
9  static constexpr unsigned int FNLMODNMAX = 9;
10  static constexpr unsigned int FNCHANMAX = 200;
11  static constexpr unsigned int fNpns = 2;
12  static constexpr unsigned int fNchans = 400;
13  static constexpr unsigned int fNbins = 102;
14 
15 private:
17  long int timestart, timestop;
18  float evts[fNpns + 1][FNCHANMAX + FNPNMAX];
19  double min[fNpns + 1][FNCHANMAX + FNPNMAX], max[fNpns + 1][FNCHANMAX + FNPNMAX];
20  double val[fNpns + 1][FNCHANMAX + FNPNMAX], sig[fNpns + 1][FNCHANMAX + FNPNMAX];
21  double wbin[fNpns + 1][FNCHANMAX + FNPNMAX];
22  float sumprob;
23 
25 
26  void init();
27 
28 public:
29  // Default Constructor, mainly for Root
30  TMCReader();
31 
32  // Destructor: Does nothing
33  virtual ~TMCReader();
34 
35  void validMCLaser(int, int);
36  void getMCLaserData(int, int);
37  void validMCPulse(int);
38  void getMCPulseData(int);
39 
40  int getSMNumb() { return smN; }
41  int getNbOflmodN() { return nlmodN; }
42  int getlmodN(int indx) { return arr[indx]; }
43  int getstartime() { return timestart; }
44  int getstoptime() { return timestop; }
45  int getnevts(int norm) { return (int)evts[norm][0]; }
46 
47  void setsmlocal(int sm) { smlocal = sm; }
48  void setcolor(int c) { color = c; }
49  void setdirlmodN(int lmp) { lmdir = lmp; }
50  void setpartition(int p) { part = p; }
51 
52  void changedatatoraw(int, int, int);
53  void changedatatopeak(int, int, int);
54 
55  void printeinjData(int, int, int);
56  void printlaserData(int, int, int, int);
57  void printlaserpeak(int, int, int);
58  void printnormlaserData(int, int, int, int, int);
59  void printnormlaserpeak(int, int, int, int);
60 
61  // ClassDef(TMCReader,1)
62 };
63 
64 #endif
TMCReader::init
void init()
TMCReader::nlmodN
int nlmodN
Definition: TMCReader.h:16
TMCReader::getstoptime
int getstoptime()
Definition: TMCReader.h:44
TMCReader::validMCLaser
void validMCLaser(int, int)
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TMCReader::getNbOflmodN
int getNbOflmodN()
Definition: TMCReader.h:41
TMCReader::FNPNMAX
static constexpr unsigned int FNPNMAX
Definition: TMCReader.h:8
TMCReader::setdirlmodN
void setdirlmodN(int lmp)
Definition: TMCReader.h:49
TMCReader::setpartition
void setpartition(int p)
Definition: TMCReader.h:50
TMCReader::~TMCReader
virtual ~TMCReader()
TMCReader::min
double min[fNpns+1][FNCHANMAX+FNPNMAX]
Definition: TMCReader.h:19
TMCReader::evts
float evts[fNpns+1][FNCHANMAX+FNPNMAX]
Definition: TMCReader.h:18
TMCReader::setsmlocal
void setsmlocal(int sm)
Definition: TMCReader.h:47
TMCReader::changedatatopeak
void changedatatopeak(int, int, int)
TMCReader::lmdir
int lmdir
Definition: TMCReader.h:24
TMCReader::printnormlaserData
void printnormlaserData(int, int, int, int, int)
TMCReader::FNCHANMAX
static constexpr unsigned int FNCHANMAX
Definition: TMCReader.h:10
part
part
Definition: HCALResponse.h:20
TMCReader::printlaserData
void printlaserData(int, int, int, int)
TMCReader::printeinjData
void printeinjData(int, int, int)
TMCReader
Definition: TMCReader.h:6
TMCReader::changedatatoraw
void changedatatoraw(int, int, int)
TMCReader::getlmodN
int getlmodN(int indx)
Definition: TMCReader.h:42
TMCReader::fNpns
static constexpr unsigned int fNpns
Definition: TMCReader.h:11
TMCReader::sumprob
float sumprob
Definition: TMCReader.h:22
TMCReader::getstartime
int getstartime()
Definition: TMCReader.h:43
TMCReader::setcolor
void setcolor(int c)
Definition: TMCReader.h:48
TMCReader::max
double max[fNpns+1][FNCHANMAX+FNPNMAX]
Definition: TMCReader.h:19
TMCReader::timestart
long int timestart
Definition: TMCReader.h:17
TMCReader::TMCReader
TMCReader()
TMCReader::smN
int smN
Definition: TMCReader.h:16
TMCReader::getMCPulseData
void getMCPulseData(int)
TMCReader::getMCLaserData
void getMCLaserData(int, int)
TMCReader::fNchans
static constexpr unsigned int fNchans
Definition: TMCReader.h:12
TMCReader::color
int color
Definition: TMCReader.h:24
TMCReader::sig
double sig[fNpns+1][FNCHANMAX+FNPNMAX]
Definition: TMCReader.h:20
TMCReader::printlaserpeak
void printlaserpeak(int, int, int)
TMCReader::arr
int arr[FNLMODNMAX]
Definition: TMCReader.h:16
TMCReader::getSMNumb
int getSMNumb()
Definition: TMCReader.h:40
TMCReader::wbin
double wbin[fNpns+1][FNCHANMAX+FNPNMAX]
Definition: TMCReader.h:21
TMCReader::validMCPulse
void validMCPulse(int)
TMCReader::smlocal
int smlocal
Definition: TMCReader.h:24
TMCReader::FNLMODNMAX
static constexpr unsigned int FNLMODNMAX
Definition: TMCReader.h:9
TMCReader::val
double val[fNpns+1][FNCHANMAX+FNPNMAX]
Definition: TMCReader.h:20
TMCReader::getnevts
int getnevts(int norm)
Definition: TMCReader.h:45
TMCReader::printnormlaserpeak
void printnormlaserpeak(int, int, int, int)
TMCReader::fNbins
static constexpr unsigned int fNbins
Definition: TMCReader.h:13
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
TMCReader::part
int part
Definition: TMCReader.h:24
TMCReader::timestop
long int timestop
Definition: TMCReader.h:17