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
int side_init[1700]
void putbetaInit(int, double)
void putchi2Val(int, double)
void putwidthVal(int, double)
void putflagVal(int, int)
double chi2_init[1700]
double npassok[1700]
void putDateStart(long int)
double alpha_init[1700]
int ch_init[1700]
void init(double, double, double, double)
void computeShape(std::string namefile, TTree *)
void putAllVals(int, double *, int, int)
void putbetaVal(int, double)
long int timestop
double beta_init[1700]
#define fNchsel
Definition: TShapeAnalysis.h:8
char filename[80]
void putDateStop(long int)
void printshapeData(int)
double width_val[1700]
TShapeAnalysis(double, double, double, double)
void assignChannel(int, int)
int tower_init[1700]
void putetaInit(int, int)
double width_init[1700]
~TShapeAnalysis() override
void putflagInit(int, int)
int flag_val[1700]
long int timestart
std::vector< double > getInitVals(int)
void putalphaVal(int, double)
int index[1700]
int flag_init[1700]
int npass[1700]
double chi2_val[1700]
int phi_init[1700]
void putchi2Init(int, double)
double alpha_val[1700]
void putalphaInit(int, double)
int dcc_init[1700]
void putwidthInit(int, double)
std::vector< double > getVals(int)
void set_const(int, int, int, int, int, double, double)
double beta_val[1700]
void set_presample(int)
void computetmaxVal(int, double *)
double rawsglu[1700][200][10]
int eta_init[1700]
void putphiInit(int, int)