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
TShapeAnalysis::putflagInit
void putflagInit(int, int)
Definition: TShapeAnalysis.cc:438
TShapeAnalysis::filename
char filename[80]
Definition: TShapeAnalysis.h:13
TShapeAnalysis::getDateStart
void getDateStart()
Definition: TShapeAnalysis.cc:163
TShapeAnalysis::width_init
double width_init[fNchsel]
Definition: TShapeAnalysis.h:22
TShapeAnalysis::putalphaVal
void putalphaVal(int, double)
Definition: TShapeAnalysis.cc:418
TShapeAnalysis::putbetaVal
void putbetaVal(int, double)
Definition: TShapeAnalysis.cc:421
TShapeAnalysis::sampamax
int sampamax
Definition: TShapeAnalysis.h:16
TShapeAnalysis::flag_val
int flag_val[fNchsel]
Definition: TShapeAnalysis.h:21
TShapeAnalysis::alpha0
double alpha0
Definition: TShapeAnalysis.h:19
TShapeAnalysis::beta_val
double beta_val[fNchsel]
Definition: TShapeAnalysis.h:20
TShapeAnalysis::alpha_init
double alpha_init[fNchsel]
Definition: TShapeAnalysis.h:22
TShapeAnalysis::putphiInit
void putphiInit(int, int)
Definition: TShapeAnalysis.cc:436
TShapeAnalysis::putAllVals
void putAllVals(int, double *, int, int)
Definition: TShapeAnalysis.cc:185
TShapeAnalysis::fNchsel
static constexpr int fNchsel
Definition: TShapeAnalysis.h:10
TShapeAnalysis::putDateStop
void putDateStop(long int)
Definition: TShapeAnalysis.cc:161
TShapeAnalysis::beta_init
double beta_init[fNchsel]
Definition: TShapeAnalysis.h:22
TShapeAnalysis::tower_init
int tower_init[fNchsel]
Definition: TShapeAnalysis.h:25
TShapeAnalysis::putDateStart
void putDateStart(long int)
Definition: TShapeAnalysis.cc:159
TShapeAnalysis::assignChannel
void assignChannel(int, int)
Definition: TShapeAnalysis.cc:152
TShapeAnalysis::putflagVal
void putflagVal(int, int)
Definition: TShapeAnalysis.cc:425
TShapeAnalysis::timestop
long int timestop
Definition: TShapeAnalysis.h:14
TShapeAnalysis::chi2_val
double chi2_val[fNchsel]
Definition: TShapeAnalysis.h:20
TShapeAnalysis::putbetaInit
void putbetaInit(int, double)
Definition: TShapeAnalysis.cc:430
TShapeAnalysis::phi_init
int phi_init[fNchsel]
Definition: TShapeAnalysis.h:23
TShapeAnalysis::getVals
std::vector< double > getVals(int)
Definition: TShapeAnalysis.cc:439
TShapeAnalysis::rawsglu
double rawsglu[fNchsel][200][10]
Definition: TShapeAnalysis.h:27
TShapeAnalysis::tABinit
TTree * tABinit
Definition: TShapeAnalysis.h:30
TShapeAnalysis::dcc_init
int dcc_init[fNchsel]
Definition: TShapeAnalysis.h:25
TShapeAnalysis::flag_init
int flag_init[fNchsel]
Definition: TShapeAnalysis.h:23
TShapeAnalysis::computetmaxVal
void computetmaxVal(int, double *)
Definition: TShapeAnalysis.cc:389
TShapeAnalysis::npass
int npass[fNchsel]
Definition: TShapeAnalysis.h:15
TShapeAnalysis::putetaInit
void putetaInit(int, int)
Definition: TShapeAnalysis.cc:434
TShapeAnalysis::printshapeData
void printshapeData(int)
Definition: TShapeAnalysis.cc:462
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TShapeAnalysis::getInitVals
std::vector< double > getInitVals(int)
Definition: TShapeAnalysis.cc:450
TShapeAnalysis::~TShapeAnalysis
~TShapeAnalysis() override
Definition: TShapeAnalysis.cc:34
TShapeAnalysis::ch_init
int ch_init[fNchsel]
Definition: TShapeAnalysis.h:25
TShapeAnalysis::set_presample
void set_presample(int)
Definition: TShapeAnalysis.cc:145
TShapeAnalysis::noise
double noise
Definition: TShapeAnalysis.h:18
TShapeAnalysis::nchsel
int nchsel
Definition: TShapeAnalysis.h:34
TShapeAnalysis::putalphaInit
void putalphaInit(int, double)
Definition: TShapeAnalysis.cc:427
TShapeAnalysis::putchi2Val
void putchi2Val(int, double)
Definition: TShapeAnalysis.cc:420
TShapeAnalysis::tABout
TTree * tABout
Definition: TShapeAnalysis.h:31
TShapeAnalysis::computeShape
void computeShape(std::string namefile, TTree *)
Definition: TShapeAnalysis.cc:205
TShapeAnalysis::alpha_val
double alpha_val[fNchsel]
Definition: TShapeAnalysis.h:20
TShapeAnalysis::putwidthVal
void putwidthVal(int, double)
Definition: TShapeAnalysis.cc:423
TShapeAnalysis::width_val
double width_val[fNchsel]
Definition: TShapeAnalysis.h:20
TShapeAnalysis
Definition: TShapeAnalysis.h:8
TShapeAnalysis::presample
int presample
Definition: TShapeAnalysis.h:17
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::chi2_init
double chi2_init[fNchsel]
Definition: TShapeAnalysis.h:22
TShapeAnalysis::beta0
double beta0
Definition: TShapeAnalysis.h:19
TShapeAnalysis::timestart
long int timestart
Definition: TShapeAnalysis.h:14
TShapeAnalysis::nsamplecristal
int nsamplecristal
Definition: TShapeAnalysis.h:16
TShapeAnalysis::eta_init
int eta_init[fNchsel]
Definition: TShapeAnalysis.h:23
TShapeAnalysis::set_const
void set_const(int, int, int, int, int, double, double)
Definition: TShapeAnalysis.cc:135
TShapeAnalysis::side_init
int side_init[fNchsel]
Definition: TShapeAnalysis.h:25
TShapeAnalysis::sampbmax
int sampbmax
Definition: TShapeAnalysis.h:16
TShapeAnalysis::init
void init(double, double, double, double)
Definition: TShapeAnalysis.cc:36
TShapeAnalysis::TShapeAnalysis
TShapeAnalysis(double, double, double, double)
Definition: TShapeAnalysis.cc:25
TShapeAnalysis::index
int index[fNchsel]
Definition: TShapeAnalysis.h:15
TShapeAnalysis::chi2cut
double chi2cut
Definition: TShapeAnalysis.h:33
TShapeAnalysis::getDateStop
void getDateStop()
Definition: TShapeAnalysis.cc:169
TShapeAnalysis::npassok
double npassok[fNchsel]
Definition: TShapeAnalysis.h:28
TShapeAnalysis::nevt
int nevt
Definition: TShapeAnalysis.h:16