test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
12 
13  private:
14 
15  char filename[80];
16  long int timestart,timestop;
19  int presample;
20  double noise;
21  double alpha0,beta0;
26 
28 
29  double rawsglu[fNchsel][200][10];
30  double npassok[fNchsel];
31 
32  TTree *tABinit;
33  TTree *tABout;
34 
35  double chi2cut;
36  int nchsel;
37 
38  void init(double, double, double, double);
39  void init(TTree *tAB, double, double, double, double);
40 
41  public:
42  // Default Constructor, mainly for Root
43  TShapeAnalysis(double, double, double, double);
44  // Default Constructor, mainly for Root
45  TShapeAnalysis(TTree *tAB, double, double, double, double);
46 
47  // Destructor: Does nothing
48  virtual ~TShapeAnalysis();
49 
50  void set_const(int,int,int,int,int,double,double);
51  void set_presample(int);
52  void set_nch(int);
53  void assignChannel(int,int);
54  void putDateStart(long int);
55  void putDateStop(long int);
56  void getDateStart();
57  void getDateStop();
58  void putAllVals(int,double*, int, int);
59  void putAllVals(int,double*, int, int, int, int, int, int);
60  void putalphaVal(int,double);
61  void putbetaVal(int,double);
62  void putwidthVal(int,double);
63  void putchi2Val(int,double);
64  void putflagVal(int,int);
65  void putalphaInit(int,double);
66  void putbetaInit(int,double);
67  void putwidthInit(int,double);
68  void putchi2Init(int,double);
69  void putflagInit(int,int);
70  void putetaInit(int,int);
71  void putphiInit(int,int);
72  void computeShape(std::string namefile, TTree*);
73  void computetmaxVal(int,double*);
74  void printshapeData(int);
75  std::vector<double> getVals(int);
76  std::vector<double> getInitVals(int);
77 
78  ClassDef(TShapeAnalysis,0)
79 };
80 
81 #endif
int side_init[1700]
void putbetaInit(int, double)
void putchi2Val(int, double)
void putwidthVal(int, double)
void putflagVal(int, int)
virtual ~TShapeAnalysis()
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]
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)