CMS 3D CMS Logo

TShapeAnalysis.h
Go to the documentation of this file.
1 #ifndef TShapeAnalysis_H
2 #define TShapeAnalysis_H
3 
4 #include "TObject.h"
5 #include <vector>
6 class TTree;
7 
8 #define fNchsel 1700
9 
10 class TShapeAnalysis : public TObject {
11 private:
12  char filename[80];
13  long int timestart, timestop;
16  int presample;
17  double noise;
18  double alpha0, beta0;
23 
25 
26  double rawsglu[fNchsel][200][10];
27  double npassok[fNchsel];
28 
29  TTree *tABinit;
30  TTree *tABout;
31 
32  double chi2cut;
33  int nchsel;
34 
35  void init(double, double, double, double);
36  void init(TTree *tAB, double, double, double, double);
37 
38 public:
39  // Default Constructor, mainly for Root
40  TShapeAnalysis(double, double, double, double);
41  // Default Constructor, mainly for Root
42  TShapeAnalysis(TTree *tAB, double, double, double, double);
43 
44  // Destructor: Does nothing
45  ~TShapeAnalysis() override;
46 
47  void set_const(int, int, int, int, int, double, double);
48  void set_presample(int);
49  void set_nch(int);
50  void assignChannel(int, int);
51  void putDateStart(long int);
52  void putDateStop(long int);
53  void getDateStart();
54  void getDateStop();
55  void putAllVals(int, double *, int, int);
56  void putAllVals(int, double *, int, int, int, int, int, int);
57  void putalphaVal(int, double);
58  void putbetaVal(int, double);
59  void putwidthVal(int, double);
60  void putchi2Val(int, double);
61  void putflagVal(int, int);
62  void putalphaInit(int, double);
63  void putbetaInit(int, double);
64  void putwidthInit(int, double);
65  void putchi2Init(int, double);
66  void putflagInit(int, int);
67  void putetaInit(int, int);
68  void putphiInit(int, int);
69  void computeShape(std::string namefile, TTree *);
70  void computetmaxVal(int, double *);
71  void printshapeData(int);
72  std::vector<double> getVals(int);
73  std::vector<double> getInitVals(int);
74 
75  ClassDefOverride(TShapeAnalysis, 0)
76 };
77 
78 #endif
TShapeAnalysis::eta_init
int eta_init[1700]
Definition: TShapeAnalysis.h:22
TShapeAnalysis::putflagInit
void putflagInit(int, int)
Definition: TShapeAnalysis.cc:438
TShapeAnalysis::chi2_init
double chi2_init[1700]
Definition: TShapeAnalysis.h:21
TShapeAnalysis::filename
char filename[80]
Definition: TShapeAnalysis.h:12
TShapeAnalysis::getDateStart
void getDateStart()
Definition: TShapeAnalysis.cc:163
TShapeAnalysis::putalphaVal
void putalphaVal(int, double)
Definition: TShapeAnalysis.cc:418
TShapeAnalysis::putbetaVal
void putbetaVal(int, double)
Definition: TShapeAnalysis.cc:421
TShapeAnalysis::tower_init
int tower_init[1700]
Definition: TShapeAnalysis.h:24
TShapeAnalysis::sampamax
int sampamax
Definition: TShapeAnalysis.h:15
TShapeAnalysis::alpha0
double alpha0
Definition: TShapeAnalysis.h:18
TShapeAnalysis::putphiInit
void putphiInit(int, int)
Definition: TShapeAnalysis.cc:436
TShapeAnalysis::putAllVals
void putAllVals(int, double *, int, int)
Definition: TShapeAnalysis.cc:185
fNchsel
#define fNchsel
Definition: TShapeAnalysis.h:8
TShapeAnalysis::putDateStop
void putDateStop(long int)
Definition: TShapeAnalysis.cc:161
TShapeAnalysis::putDateStart
void putDateStart(long int)
Definition: TShapeAnalysis.cc:159
TShapeAnalysis::flag_init
int flag_init[1700]
Definition: TShapeAnalysis.h:22
TShapeAnalysis::assignChannel
void assignChannel(int, int)
Definition: TShapeAnalysis.cc:152
TShapeAnalysis::putflagVal
void putflagVal(int, int)
Definition: TShapeAnalysis.cc:425
TShapeAnalysis::beta_val
double beta_val[1700]
Definition: TShapeAnalysis.h:19
TShapeAnalysis::timestop
long int timestop
Definition: TShapeAnalysis.h:13
TShapeAnalysis::putbetaInit
void putbetaInit(int, double)
Definition: TShapeAnalysis.cc:430
TShapeAnalysis::getVals
std::vector< double > getVals(int)
Definition: TShapeAnalysis.cc:439
TShapeAnalysis::tABinit
TTree * tABinit
Definition: TShapeAnalysis.h:29
TShapeAnalysis::rawsglu
double rawsglu[1700][200][10]
Definition: TShapeAnalysis.h:26
TShapeAnalysis::flag_val
int flag_val[1700]
Definition: TShapeAnalysis.h:20
TShapeAnalysis::computetmaxVal
void computetmaxVal(int, double *)
Definition: TShapeAnalysis.cc:389
TShapeAnalysis::putetaInit
void putetaInit(int, int)
Definition: TShapeAnalysis.cc:434
TShapeAnalysis::printshapeData
void printshapeData(int)
Definition: TShapeAnalysis.cc:462
TShapeAnalysis::index
int index[1700]
Definition: TShapeAnalysis.h:14
TShapeAnalysis::phi_init
int phi_init[1700]
Definition: TShapeAnalysis.h:22
TShapeAnalysis::alpha_val
double alpha_val[1700]
Definition: TShapeAnalysis.h:19
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TShapeAnalysis::width_val
double width_val[1700]
Definition: TShapeAnalysis.h:19
TShapeAnalysis::width_init
double width_init[1700]
Definition: TShapeAnalysis.h:21
TShapeAnalysis::getInitVals
std::vector< double > getInitVals(int)
Definition: TShapeAnalysis.cc:450
TShapeAnalysis::~TShapeAnalysis
~TShapeAnalysis() override
Definition: TShapeAnalysis.cc:34
TShapeAnalysis::set_presample
void set_presample(int)
Definition: TShapeAnalysis.cc:145
TShapeAnalysis::noise
double noise
Definition: TShapeAnalysis.h:17
TShapeAnalysis::nchsel
int nchsel
Definition: TShapeAnalysis.h:33
TShapeAnalysis::putalphaInit
void putalphaInit(int, double)
Definition: TShapeAnalysis.cc:427
TShapeAnalysis::side_init
int side_init[1700]
Definition: TShapeAnalysis.h:24
TShapeAnalysis::putchi2Val
void putchi2Val(int, double)
Definition: TShapeAnalysis.cc:420
TShapeAnalysis::tABout
TTree * tABout
Definition: TShapeAnalysis.h:30
TShapeAnalysis::computeShape
void computeShape(std::string namefile, TTree *)
Definition: TShapeAnalysis.cc:205
TShapeAnalysis::putwidthVal
void putwidthVal(int, double)
Definition: TShapeAnalysis.cc:423
TShapeAnalysis
Definition: TShapeAnalysis.h:10
TShapeAnalysis::presample
int presample
Definition: TShapeAnalysis.h:16
TShapeAnalysis::putwidthInit
void putwidthInit(int, double)
Definition: TShapeAnalysis.cc:432
TShapeAnalysis::putchi2Init
void putchi2Init(int, double)
Definition: TShapeAnalysis.cc:429
TShapeAnalysis::set_nch
void set_nch(int)
Definition: TShapeAnalysis.cc:146
TShapeAnalysis::beta0
double beta0
Definition: TShapeAnalysis.h:18
TShapeAnalysis::timestart
long int timestart
Definition: TShapeAnalysis.h:13
TShapeAnalysis::nsamplecristal
int nsamplecristal
Definition: TShapeAnalysis.h:15
TShapeAnalysis::set_const
void set_const(int, int, int, int, int, double, double)
Definition: TShapeAnalysis.cc:135
TShapeAnalysis::alpha_init
double alpha_init[1700]
Definition: TShapeAnalysis.h:21
TShapeAnalysis::dcc_init
int dcc_init[1700]
Definition: TShapeAnalysis.h:24
TShapeAnalysis::sampbmax
int sampbmax
Definition: TShapeAnalysis.h:15
TShapeAnalysis::init
void init(double, double, double, double)
Definition: TShapeAnalysis.cc:36
TShapeAnalysis::TShapeAnalysis
TShapeAnalysis(double, double, double, double)
Definition: TShapeAnalysis.cc:25
TShapeAnalysis::chi2cut
double chi2cut
Definition: TShapeAnalysis.h:32
TShapeAnalysis::ch_init
int ch_init[1700]
Definition: TShapeAnalysis.h:24
TShapeAnalysis::npass
int npass[1700]
Definition: TShapeAnalysis.h:14
TShapeAnalysis::getDateStop
void getDateStop()
Definition: TShapeAnalysis.cc:169
TShapeAnalysis::nevt
int nevt
Definition: TShapeAnalysis.h:15
TShapeAnalysis::npassok
double npassok[1700]
Definition: TShapeAnalysis.h:27
TShapeAnalysis::chi2_val
double chi2_val[1700]
Definition: TShapeAnalysis.h:19
TShapeAnalysis::beta_init
double beta_init[1700]
Definition: TShapeAnalysis.h:21