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,1)
79 };
80 
81 #endif
void putbetaInit(int, double)
void putchi2Val(int, double)
void putwidthVal(int, double)
int npass[fNchsel]
void putflagVal(int, int)
int phi_init[fNchsel]
virtual ~TShapeAnalysis()
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]
#define fNchsel
Definition: TShapeAnalysis.h:8
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]
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]
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)