CMS 3D CMS Logo

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