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 class TShapeAnalysis : public TObject {
9 public:
10  static constexpr int fNchsel = 1700;
11 
12 private:
13  char filename[80];
14  long int timestart, timestop;
17  int presample;
18  double noise;
19  double alpha0, beta0;
24 
26 
27  double rawsglu[fNchsel][200][10];
28  double npassok[fNchsel];
29 
30  TTree *tABinit;
31  TTree *tABout;
32 
33  double chi2cut;
34  int nchsel;
35 
36  void init(double, double, double, double);
37  void init(TTree *tAB, double, double, double, double);
38 
39 public:
40  // Default Constructor, mainly for Root
41  TShapeAnalysis(double, double, double, double);
42  // Default Constructor, mainly for Root
43  TShapeAnalysis(TTree *tAB, double, double, double, double);
44 
45  // Destructor: Does nothing
46  ~TShapeAnalysis() override;
47 
48  void set_const(int, int, int, int, int, double, double);
49  void set_presample(int);
50  void set_nch(int);
51  void assignChannel(int, int);
52  void putDateStart(long int);
53  void putDateStop(long int);
54  void getDateStart();
55  void getDateStop();
56  void putAllVals(int, double *, int, int);
57  void putAllVals(int, double *, int, int, int, int, int, int);
58  void putalphaVal(int, double);
59  void putbetaVal(int, double);
60  void putwidthVal(int, double);
61  void putchi2Val(int, double);
62  void putflagVal(int, int);
63  void putalphaInit(int, double);
64  void putbetaInit(int, double);
65  void putwidthInit(int, double);
66  void putchi2Init(int, double);
67  void putflagInit(int, int);
68  void putetaInit(int, int);
69  void putphiInit(int, int);
70  void computeShape(std::string namefile, TTree *);
71  void computetmaxVal(int, double *);
72  void printshapeData(int);
73  std::vector<double> getVals(int);
74  std::vector<double> getInitVals(int);
75 
76  ClassDefOverride(TShapeAnalysis, 0)
77 };
78 
79 #endif
void putbetaInit(int, double)
void putchi2Val(int, double)
void putwidthVal(int, double)
int npass[fNchsel]
void putflagVal(int, int)
int phi_init[fNchsel]
int flag_init[fNchsel]
int eta_init[fNchsel]
double width_init[fNchsel]
void putDateStart(long int)
double beta_val[fNchsel]
void init(double, double, double, double)
void computeShape(std::string namefile, TTree *)
int index[fNchsel]
void putAllVals(int, double *, int, int)
void putbetaVal(int, double)
long int timestop
int dcc_init[fNchsel]
char filename[80]
void putDateStop(long int)
void printshapeData(int)
TShapeAnalysis(double, double, double, double)
void assignChannel(int, int)
double npassok[fNchsel]
void putetaInit(int, int)
double chi2_val[fNchsel]
~TShapeAnalysis() override
void putflagInit(int, int)
long int timestart
std::vector< double > getInitVals(int)
void putalphaVal(int, double)
double beta_init[fNchsel]
void putchi2Init(int, double)
int ch_init[fNchsel]
void putalphaInit(int, double)
double width_val[fNchsel]
static constexpr int fNchsel
void putwidthInit(int, double)
std::vector< double > getVals(int)
void set_const(int, int, int, int, int, double, double)
void set_presample(int)
double alpha_val[fNchsel]
void computetmaxVal(int, double *)
int flag_val[fNchsel]
double rawsglu[fNchsel][200][10]
double alpha_init[fNchsel]
double chi2_init[fNchsel]
int side_init[fNchsel]
int tower_init[fNchsel]
void putphiInit(int, int)