CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
TShapeAnalysis Class Reference

#include <TShapeAnalysis.h>

Inheritance diagram for TShapeAnalysis:

Public Member Functions

void assignChannel (int, int)
 
void computeShape (std::string namefile, TTree *)
 
void computetmaxVal (int, double *)
 
void getDateStart ()
 
void getDateStop ()
 
std::vector< double > getInitVals (int)
 
std::vector< double > getVals (int)
 
void printshapeData (int)
 
void putAllVals (int, double *, int, int)
 
void putAllVals (int, double *, int, int, int, int, int, int)
 
void putalphaInit (int, double)
 
void putalphaVal (int, double)
 
void putbetaInit (int, double)
 
void putbetaVal (int, double)
 
void putchi2Init (int, double)
 
void putchi2Val (int, double)
 
void putDateStart (long int)
 
void putDateStop (long int)
 
void putetaInit (int, int)
 
void putflagInit (int, int)
 
void putflagVal (int, int)
 
void putphiInit (int, int)
 
void putwidthInit (int, double)
 
void putwidthVal (int, double)
 
void set_const (int, int, int, int, int, double, double)
 
void set_nch (int)
 
void set_presample (int)
 
 TShapeAnalysis (double, double, double, double)
 
 TShapeAnalysis (TTree *tAB, double, double, double, double)
 
virtual ~TShapeAnalysis ()
 

Private Member Functions

void init (double, double, double, double)
 
void init (TTree *tAB, double, double, double, double)
 

Private Attributes

double alpha0
 
double alpha_init [fNchsel]
 
double alpha_val [fNchsel]
 
double beta0
 
double beta_init [fNchsel]
 
double beta_val [fNchsel]
 
int ch_init [fNchsel]
 
double chi2_init [fNchsel]
 
double chi2_val [fNchsel]
 
double chi2cut
 
int dcc_init [fNchsel]
 
int eta_init [fNchsel]
 
char filename [80]
 
int flag_init [fNchsel]
 
int flag_val [fNchsel]
 
int index [fNchsel]
 
int nchsel
 
int nevt
 
double noise
 
int npass [fNchsel]
 
double npassok [fNchsel]
 
int nsamplecristal
 
int phi_init [fNchsel]
 
int presample
 
double rawsglu [fNchsel][200][10]
 
int sampamax
 
int sampbmax
 
int side_init [fNchsel]
 
TTree * tABinit
 
TTree * tABout
 
long int timestart
 
long int timestop
 
int tower_init [fNchsel]
 
double width_init [fNchsel]
 
double width_val [fNchsel]
 

Detailed Description

Definition at line 10 of file TShapeAnalysis.h.

Constructor & Destructor Documentation

TShapeAnalysis::TShapeAnalysis ( double  alpha0,
double  beta0,
double  width0,
double  chi20 
)

Definition at line 26 of file TShapeAnalysis.cc.

References init.

27 {
28  init(alpha0, beta0, width0, chi20);
29 }
void init(double, double, double, double)
TShapeAnalysis::TShapeAnalysis ( TTree *  tAB,
double  alpha0,
double  beta0,
double  width0,
double  chi20 
)

Definition at line 31 of file TShapeAnalysis.cc.

References init.

32 {
33  init(tAB, alpha0, beta0, width0, chi20);
34 }
void init(double, double, double, double)
TShapeAnalysis::~TShapeAnalysis ( )
virtual

Definition at line 37 of file TShapeAnalysis.cc.

38 {
39 }

Member Function Documentation

void TShapeAnalysis::assignChannel ( int  n,
int  ch 
)

Definition at line 170 of file TShapeAnalysis.cc.

References getHLTprescales::index, and n.

171 {
172  if(n >= nchsel)
173  printf(" number of channels exceed maximum allowed\n");
174 
175  index[n]=ch;
176 }
int index[fNchsel]
void TShapeAnalysis::computeShape ( std::string  namefile,
TTree *   
)

Definition at line 236 of file TShapeAnalysis.cc.

References alpha, beta, debug, TFParams::fitpj(), i, getHLTprescales::index, gen::k, TFParams::set_const(), and create_public_lumi_plots::width.

Referenced by EcalABAnalyzer::endJob(), and EcalLaserAnalyzer::endJob().

237 {
238 
239  double tm_atmax[200];
240  double parout[3];
241 
242  double chi2_all=0.;
243 
244  double **dbi ;
245  dbi = new double *[200];
246  for(int k=0;k<200;k++) dbi[k] = new double[2];
247 
248  double **signalu ;
249  signalu = new double *[200];
250  for(int k=0 ;k<200;k++) signalu[k] = new double[10];
251 
252  TFParams *pjf = new TFParams() ;
253 
254  for(int i=0;i<nchsel;i++) {
255 
256  if(index[i] >= 0) {
257 
258  if(npass[i] <= 10) {
259 
261  putbetaVal(i, beta_init[i]);
264  putflagVal(i,0);
265 
266  } else {
267 
269 
270  for(int pass=0;pass<npass[i];pass++){
271 
272  double ped=0;
273  for(int k=0;k<presample;k++) {
274  ped+= rawsglu[i][pass][k];
275  }
276  ped/=double(presample);
277 
278  for(int k=0;k<nsamplecristal;k++) {
279  signalu[pass][k]= rawsglu[i][pass][k]-ped;
280  }
281  }
282 
283  int debug=0;
284  chi2_all= pjf->fitpj(signalu,&parout[0],dbi,noise, debug);
285 
286  if(parout[0]>=0.0 && parout[1]>=0.0 && chi2_all<=chi2cut && chi2_all>0.0){
287 
288  putalphaVal(i,parout[0]);
289  putbetaVal(i,parout[1]);
290  putchi2Val(i,chi2_all);
291  putflagVal(i,1);
292 
293  }else{
294 
295  putalphaVal(i,alpha_init[i]);
296  putbetaVal(i,beta_init[i]);
297  putwidthVal(i,width_init[i]);
298  putchi2Val(i,chi2_init[i]);
299  putflagVal(i,0);
300 
301  }
302 
303  for(int kj=0;kj<npass[i];kj++) { // last event wrong here
304  tm_atmax[kj]= dbi[kj][1];
305  }
306  computetmaxVal(i,&tm_atmax[0]);
307 
308  }
309  }
310  }
311 
312  if(tAB) tABinit=tAB->CloneTree();
313 
314  // Declaration of leaf types
315  Int_t sidei;
316  Int_t iphii;
317  Int_t ietai;
318  Int_t dccIDi;
319  Int_t towerIDi;
320  Int_t channelIDi;
321  Double_t alphai;
322  Double_t betai;
323  Double_t widthi;
324  Double_t chi2i;
325  Int_t flagi;
326 
327  // List of branches
328  TBranch *b_iphi;
329  TBranch *b_ieta;
330  TBranch *b_side;
331  TBranch *b_dccID;
332  TBranch *b_towerID;
333  TBranch *b_channelID;
334  TBranch *b_alpha;
335  TBranch *b_beta;
336  TBranch *b_width;
337  TBranch *b_chi2;
338  TBranch *b_flag;
339 
340 
341  if(tABinit){
342  tABinit->SetBranchAddress("iphi", &iphii, &b_iphi);
343  tABinit->SetBranchAddress("ieta", &ietai, &b_ieta);
344  tABinit->SetBranchAddress("side", &sidei, &b_side);
345  tABinit->SetBranchAddress("dccID", &dccIDi, &b_dccID);
346  tABinit->SetBranchAddress("towerID", &towerIDi, &b_towerID);
347  tABinit->SetBranchAddress("channelID", &channelIDi, &b_channelID);
348  tABinit->SetBranchAddress("alpha", &alphai, &b_alpha);
349  tABinit->SetBranchAddress("beta", &betai, &b_beta);
350  tABinit->SetBranchAddress("width", &widthi, &b_width);
351  tABinit->SetBranchAddress("chi2", &chi2i, &b_chi2);
352  tABinit->SetBranchAddress("flag", &flagi, &b_flag);
353  }
354 
355  TFile *fABout = new TFile(namefile.c_str(), "RECREATE");
356  tABout=new TTree("ABCol0","ABCol0");
357 
358  // Declaration of leaf types
359  Int_t side;
360  Int_t iphi;
361  Int_t ieta;
362  Int_t dccID;
363  Int_t towerID;
364  Int_t channelID;
365  Double_t alpha;
366  Double_t beta;
367  Double_t width;
368  Double_t chi2;
369  Int_t flag;
370 
371  tABout->Branch( "iphi", &iphi, "iphi/I" );
372  tABout->Branch( "ieta", &ieta, "ieta/I" );
373  tABout->Branch( "side", &side, "side/I" );
374  tABout->Branch( "dccID", &dccID, "dccID/I" );
375  tABout->Branch( "towerID", &towerID, "towerID/I" );
376  tABout->Branch( "channelID", &channelID, "channelID/I" );
377  tABout->Branch( "alpha", &alpha, "alpha/D" );
378  tABout->Branch( "beta", &beta, "beta/D" );
379  tABout->Branch( "width", &width, "width/D" );
380  tABout->Branch( "chi2", &chi2, "chi2/D" );
381  tABout->Branch( "flag", &flag, "flag/I" );
382 
383  tABout->SetBranchAddress( "ieta", &ieta );
384  tABout->SetBranchAddress( "iphi", &iphi );
385  tABout->SetBranchAddress( "side", &side );
386  tABout->SetBranchAddress( "dccID", &dccID );
387  tABout->SetBranchAddress( "towerID", &towerID );
388  tABout->SetBranchAddress( "channelID", &channelID );
389  tABout->SetBranchAddress( "alpha", &alpha );
390  tABout->SetBranchAddress( "beta", &beta );
391  tABout->SetBranchAddress( "width", &width );
392  tABout->SetBranchAddress( "chi2", &chi2 );
393  tABout->SetBranchAddress( "flag", &flag );
394 
395  for(int i=0;i<nchsel;i++) {
396 
397  if(tABinit){
398 
399  tABinit->GetEntry(i);
400  iphi=iphii;
401  ieta=ietai;
402  side=sidei;
403  dccID=dccIDi;
404  towerID=towerIDi;
405  channelID=channelIDi;
406 
407  }else{
408 
409  iphi=phi_init[i];
410  ieta=eta_init[i];
411  side=side_init[i];
412  dccID=dcc_init[i];
413  towerID=tower_init[i];
414  channelID=ch_init[i];
415 
416  }
417 
418  alpha=alpha_val[i];
419  beta=beta_val[i];
420  width=width_val[i];
421  chi2=chi2_val[i];
422  flag=flag_val[i];
423 
424  tABout->Fill();
425  }
426 
427 
428  tABout->Write();
429  fABout->Close();
430 
431  delete pjf;
432 }
const double beta
void putchi2Val(int, double)
int i
Definition: DBlmapReader.cc:9
float alpha
Definition: AMPTWrapper.h:95
void putwidthVal(int, double)
int npass[fNchsel]
void putflagVal(int, int)
long int flag
Definition: mlp_lapack.h:47
int phi_init[fNchsel]
int eta_init[fNchsel]
double width_init[fNchsel]
double beta_val[fNchsel]
int index[fNchsel]
void putbetaVal(int, double)
int dcc_init[fNchsel]
double chi2_val[fNchsel]
void set_const(int, int, int, double, double, int)
Definition: TFParams.cc:552
void putalphaVal(int, double)
int k[5][pyjets_maxn]
double beta_init[fNchsel]
int ch_init[fNchsel]
double width_val[fNchsel]
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]
#define debug
Definition: MEtoEDMFormat.h:34
int tower_init[fNchsel]
double fitpj(double **, double *, double **, double noise_val, int debug)
Definition: TFParams.cc:38
void TShapeAnalysis::computetmaxVal ( int  i,
double *  tm_val 
)

Definition at line 434 of file TShapeAnalysis.cc.

References i, and gen::k.

435 {
436  double tm_mean=0; //double tm_sig=0;
437 
438  double tm=0.; double sigtm=0.;
439  for(int k=0;k<npass[i]-1;k++) {
440  if(1. < tm_val[k] && tm_val[k] < 10.) {
441  npassok[i]++;
442  tm+= tm_val[k];
443  sigtm+= tm_val[k]*tm_val[k];
444  }
445  }
446  if(npassok[i] <= 0) {
447  tm_mean=0.; //tm_sig=0.;
448  } else {
449  for(int k=0;k<npass[i]-1;k++) {
450  if(1. < tm_val[k] && tm_val[k] < 10.) {
451  double ss= (sigtm/npassok[i]-tm/npassok[i]*tm/npassok[i]);
452  if(ss < 0.) ss=0.;
453  //tm_sig=sqrt(ss);
454  tm_mean= tm/npassok[i];
455  }
456  }
457  }
458  //printf("npassok[%d]=%f tm_mean=%f tm_sig=%f\n",i,npassok[i],tm_mean,tm_sig);
459  putwidthVal(i,tm_mean);
460 
461 }
int i
Definition: DBlmapReader.cc:9
void putwidthVal(int, double)
int npass[fNchsel]
double npassok[fNchsel]
int k[5][pyjets_maxn]
void TShapeAnalysis::getDateStart ( )

Definition at line 188 of file TShapeAnalysis.cc.

References lumiQTWidget::t, and cond::rpcobgas::time.

189 {
190  time_t t,timecur;
191  timecur= time(&t);
192  timestart= ((long int) timecur);
193 }
long int timestart
void TShapeAnalysis::getDateStop ( )

Definition at line 195 of file TShapeAnalysis.cc.

References lumiQTWidget::t, and cond::rpcobgas::time.

196 {
197  time_t t,timecur;
198  timecur= time(&t);
199  timestop= ((long int) timecur);
200 }
long int timestop
std::vector< double > TShapeAnalysis::getInitVals ( int  n)

Definition at line 533 of file TShapeAnalysis.cc.

References findQualityFiles::v.

534 {
535 
536  std::vector<double> v;
537 
538  v.push_back(alpha_init[n]);
539  v.push_back(beta_init[n]);
540  v.push_back(width_init[n]);
541  v.push_back(chi2_init[n]);
542  v.push_back(flag_init[n]);
543 
544  return v;
545 }
int flag_init[fNchsel]
double width_init[fNchsel]
double beta_init[fNchsel]
double alpha_init[fNchsel]
double chi2_init[fNchsel]
std::vector< double > TShapeAnalysis::getVals ( int  n)

Definition at line 520 of file TShapeAnalysis.cc.

References findQualityFiles::v.

Referenced by EcalLaserAnalyzer::endJob().

521 {
522 
523  std::vector<double> v;
524 
525  v.push_back(alpha_val[n]);
526  v.push_back(beta_val[n]);
527  v.push_back(width_val[n]);
528  v.push_back(chi2_val[n]);
529  v.push_back(flag_val[n]);
530 
531  return v;
532 }
double beta_val[fNchsel]
double chi2_val[fNchsel]
double width_val[fNchsel]
double alpha_val[fNchsel]
int flag_val[fNchsel]
void TShapeAnalysis::init ( double  alpha0,
double  beta0,
double  width0,
double  chi20 
)
private

Definition at line 41 of file TShapeAnalysis.cc.

References fNchsel, getHLTprescales::index, and NULL.

42 {
43  tABinit=NULL;
45  for(int cris=0;cris<fNchsel;cris++){
46 
47  index[cris]=-1;
48  npass[cris]=0;
49  npassok[cris]=0.;
50 
51  alpha_val[cris]=alpha0;
52  beta_val[cris]=beta0;
53  width_val[cris]=width0;
54  chi2_val[cris]=chi20;
55  flag_val[cris]=0;
56 
57  alpha_init[cris]=alpha0;
58  beta_init[cris]=beta0;
59  width_init[cris]=width0;
60  chi2_init[cris]=chi20;
61  flag_init[cris]=0;
62 
63  phi_init[cris]=0;
64  eta_init[cris]=0;
65  side_init[cris]=0;
66  dcc_init[cris]=0;
67  tower_init[cris]=0;
68  ch_init[cris]=0;
69  assignChannel(cris,cris);
70 
71  }
72 }
int npass[fNchsel]
int phi_init[fNchsel]
int flag_init[fNchsel]
int eta_init[fNchsel]
double width_init[fNchsel]
double beta_val[fNchsel]
#define NULL
Definition: scimark2.h:8
int index[fNchsel]
int dcc_init[fNchsel]
#define fNchsel
Definition: TShapeAnalysis.h:8
void assignChannel(int, int)
double npassok[fNchsel]
double chi2_val[fNchsel]
double beta_init[fNchsel]
int ch_init[fNchsel]
double width_val[fNchsel]
double alpha_val[fNchsel]
int flag_val[fNchsel]
double alpha_init[fNchsel]
double chi2_init[fNchsel]
int side_init[fNchsel]
int tower_init[fNchsel]
void TShapeAnalysis::init ( TTree *  tAB,
double  alpha0,
double  beta0,
double  width0,
double  chi20 
)
private

Definition at line 74 of file TShapeAnalysis.cc.

References fNchsel, and init.

75 {
76  init( alpha0, beta0, width0, chi20 );
77 
78  tABinit=tAB->CloneTree();
79 
80  // Declaration of leaf types
81  Int_t sidei;
82  Int_t iphii;
83  Int_t ietai;
84  Int_t dccIDi;
85  Int_t towerIDi;
86  Int_t channelIDi;
87  Double_t alphai;
88  Double_t betai;
89  Double_t widthi;
90  Double_t chi2i;
91  Int_t flagi;
92 
93  // List of branches
94  TBranch *b_iphi;
95  TBranch *b_ieta;
96  TBranch *b_side;
97  TBranch *b_dccID;
98  TBranch *b_towerID;
99  TBranch *b_channelID;
100  TBranch *b_alpha;
101  TBranch *b_beta;
102  TBranch *b_width;
103  TBranch *b_chi2;
104  TBranch *b_flag;
105 
106  if(tABinit){
107 
108  tABinit->SetBranchAddress("iphi", &iphii, &b_iphi);
109  tABinit->SetBranchAddress("ieta", &ietai, &b_ieta);
110  tABinit->SetBranchAddress("side", &sidei, &b_side);
111  tABinit->SetBranchAddress("dccID", &dccIDi, &b_dccID);
112  tABinit->SetBranchAddress("towerID", &towerIDi, &b_towerID);
113  tABinit->SetBranchAddress("channelID", &channelIDi, &b_channelID);
114  tABinit->SetBranchAddress("alpha", &alphai, &b_alpha);
115  tABinit->SetBranchAddress("beta", &betai, &b_beta);
116  tABinit->SetBranchAddress("width", &widthi, &b_width);
117  tABinit->SetBranchAddress("chi2", &chi2i, &b_chi2);
118  tABinit->SetBranchAddress("flag", &flagi, &b_flag);
119 
120  nchsel=tABinit->GetEntries();
121  assert(nchsel<=fNchsel);
122 
123  for(int cris=0;cris<nchsel;cris++){
124 
125  tABinit->GetEntry(cris);
126 
127  // std::cout<< "Loop 1 "<< cris<<" "<<alphai<< std::endl;
128 
129  putalphaVal(cris,alphai);
130  putchi2Val(cris,chi2i);
131  putbetaVal(cris,betai);
132  putwidthVal(cris,widthi);
133  putflagVal(cris,flagi);
134 
135  putalphaInit(cris,alphai);
136  putchi2Init(cris,chi2i);
137  putbetaInit(cris,betai);
138  putwidthInit(cris,widthi);
139  putflagInit(cris,flagi);
140  putetaInit(cris,ietai);
141  putphiInit(cris,iphii);
142 
143  }
144  }
145 }
void putbetaInit(int, double)
void putchi2Val(int, double)
void putwidthVal(int, double)
void putflagVal(int, int)
void init(double, double, double, double)
void putbetaVal(int, double)
#define fNchsel
Definition: TShapeAnalysis.h:8
void putetaInit(int, int)
void putflagInit(int, int)
void putalphaVal(int, double)
void putchi2Init(int, double)
void putalphaInit(int, double)
void putwidthInit(int, double)
void putphiInit(int, int)
void TShapeAnalysis::printshapeData ( int  gRunNumber)

Definition at line 547 of file TShapeAnalysis.cc.

References lut2db_cfg::filename, i, getHLTprescales::index, and NULL.

548 {
549  FILE *fd;
550  int nev;
551  sprintf(filename,"runABW%d.pedestal",gRunNumber);
552  fd = fopen(filename, "w");
553  if(fd == NULL) printf("Error while opening file : %s\n",filename);
554 
555  for(int i=0; i<nchsel;i++) {
556  if(index[i] >= 0) {
557  nev= (int) npassok[i];
558  double trise= alpha_val[i]*beta_val[i];
559  fprintf( fd, "%d %d 1 %ld %ld %f %f %f %f\n",
560  index[i],nev,timestart,timestop,alpha_val[i],beta_val[i],trise,width_val[i]);
561  }
562  }
563  int iret=fclose(fd);
564  printf(" Closing file : %d\n",iret);
565 
566 }
int i
Definition: DBlmapReader.cc:9
double beta_val[fNchsel]
#define NULL
Definition: scimark2.h:8
int index[fNchsel]
long int timestop
char filename[80]
double npassok[fNchsel]
long int timestart
double width_val[fNchsel]
double alpha_val[fNchsel]
void TShapeAnalysis::putAllVals ( int  ch,
double *  sampl,
int  ieta,
int  iphi 
)

Definition at line 214 of file TShapeAnalysis.cc.

References i, getHLTprescales::index, gen::k, n, and nevt.

215 {
216 
217  int i,k;
218  int n=-1;
219  for(i=0;i<nchsel;i++)
220  if(index[i] == ch) n=i;
221 
222  if(n >= 0) {
223  if(npass[n] < nevt) {
224 
225  for(k=0;k<nsamplecristal;k++) {
226  rawsglu[n][npass[n]][k] = sampl[k];
227  }
228 
229  npass[n]++;
230  }
231  } else {
232  printf("no index found for ch=%d\n",ch);
233  }
234 }
int i
Definition: DBlmapReader.cc:9
int npass[fNchsel]
int index[fNchsel]
int k[5][pyjets_maxn]
double rawsglu[fNchsel][200][10]
void TShapeAnalysis::putAllVals ( int  ch,
double *  sampl,
int  ieta,
int  iphi,
int  dcc,
int  side,
int  tower,
int  chid 
)

Definition at line 202 of file TShapeAnalysis.cc.

203 {
204  dcc_init[ch]=dcc;
205  tower_init[ch]=side;
206  ch_init[ch]=chid;
207  side_init[ch]=side;
208  eta_init[ch]=ieta;
209  phi_init[ch]=iphi;
210  putAllVals(ch, sampl, ieta, iphi);
211 
212 }
int phi_init[fNchsel]
int eta_init[fNchsel]
void putAllVals(int, double *, int, int)
int dcc_init[fNchsel]
int ch_init[fNchsel]
int side_init[fNchsel]
int tower_init[fNchsel]
void TShapeAnalysis::putalphaInit ( int  n,
double  val 
)

Definition at line 487 of file TShapeAnalysis.cc.

References n.

488 {
489  alpha_init[n]= val;
490 }
double alpha_init[fNchsel]
void TShapeAnalysis::putalphaVal ( int  n,
double  val 
)

Definition at line 463 of file TShapeAnalysis.cc.

References n.

464 {
465  alpha_val[n]= val;
466 }
double alpha_val[fNchsel]
void TShapeAnalysis::putbetaInit ( int  n,
double  val 
)

Definition at line 496 of file TShapeAnalysis.cc.

References n.

497 {
498  beta_init[n]= val;
499 }
double beta_init[fNchsel]
void TShapeAnalysis::putbetaVal ( int  n,
double  val 
)

Definition at line 472 of file TShapeAnalysis.cc.

References n.

473 {
474  beta_val[n]= val;
475 }
double beta_val[fNchsel]
void TShapeAnalysis::putchi2Init ( int  n,
double  val 
)

Definition at line 492 of file TShapeAnalysis.cc.

References n.

493 {
494  chi2_init[n]= val;
495 }
double chi2_init[fNchsel]
void TShapeAnalysis::putchi2Val ( int  n,
double  val 
)

Definition at line 468 of file TShapeAnalysis.cc.

References n.

469 {
470  chi2_val[n]= val;
471 }
double chi2_val[fNchsel]
void TShapeAnalysis::putDateStart ( long int  timecur)

Definition at line 178 of file TShapeAnalysis.cc.

179 {
180  timestart=timecur;
181 }
long int timestart
void TShapeAnalysis::putDateStop ( long int  timecur)

Definition at line 183 of file TShapeAnalysis.cc.

184 {
185  timestop=timecur;
186 }
long int timestop
void TShapeAnalysis::putetaInit ( int  n,
int  val 
)

Definition at line 506 of file TShapeAnalysis.cc.

References n.

507 {
508  eta_init[n]= val;
509 }
int eta_init[fNchsel]
void TShapeAnalysis::putflagInit ( int  n,
int  val 
)

Definition at line 516 of file TShapeAnalysis.cc.

References n.

517 {
518  flag_init[n]= val;
519 }
int flag_init[fNchsel]
void TShapeAnalysis::putflagVal ( int  n,
int  val 
)

Definition at line 482 of file TShapeAnalysis.cc.

References n.

483 {
484  flag_val[n]= val;
485 }
int flag_val[fNchsel]
void TShapeAnalysis::putphiInit ( int  n,
int  val 
)

Definition at line 511 of file TShapeAnalysis.cc.

References n.

512 {
513  phi_init[n]= val;
514 }
int phi_init[fNchsel]
void TShapeAnalysis::putwidthInit ( int  n,
double  val 
)

Definition at line 501 of file TShapeAnalysis.cc.

References n.

502 {
503  width_init[n]= val;
504 }
double width_init[fNchsel]
void TShapeAnalysis::putwidthVal ( int  n,
double  val 
)

Definition at line 477 of file TShapeAnalysis.cc.

References n.

478 {
479  width_val[n]= val;
480 }
double width_val[fNchsel]
void TShapeAnalysis::set_const ( int  ns,
int  ns1,
int  ns2,
int  ps,
int  nevtmax,
double  noise_val,
double  chi2_cut 
)

Definition at line 147 of file TShapeAnalysis.cc.

References nevt.

148 {
149  nsamplecristal= ns;
150  presample=ps;
151  sampbmax= ns1;
152  sampamax= ns2;
153  nevt= nevtmax;
154  noise= noise_val;
155  chi2cut=chi2_cut;
156 }
void TShapeAnalysis::set_nch ( int  nch)

Definition at line 163 of file TShapeAnalysis.cc.

References fNchsel.

Referenced by EcalABAnalyzer::endJob(), and EcalLaserAnalyzer::endJob().

163  {
164 
165  assert (nch<=fNchsel);
166  if(tABinit) assert(nch==nchsel);
167  nchsel=nch;
168 
169 }
#define fNchsel
Definition: TShapeAnalysis.h:8
void TShapeAnalysis::set_presample ( int  ps)

Definition at line 159 of file TShapeAnalysis.cc.

Referenced by EcalABAnalyzer::endJob(), and EcalLaserAnalyzer::endJob().

160 {
161  presample=ps;
162 }

Member Data Documentation

double TShapeAnalysis::alpha0
private

Definition at line 21 of file TShapeAnalysis.h.

double TShapeAnalysis::alpha_init[fNchsel]
private

Definition at line 24 of file TShapeAnalysis.h.

double TShapeAnalysis::alpha_val[fNchsel]
private

Definition at line 22 of file TShapeAnalysis.h.

double TShapeAnalysis::beta0
private

Definition at line 21 of file TShapeAnalysis.h.

double TShapeAnalysis::beta_init[fNchsel]
private

Definition at line 24 of file TShapeAnalysis.h.

double TShapeAnalysis::beta_val[fNchsel]
private

Definition at line 22 of file TShapeAnalysis.h.

int TShapeAnalysis::ch_init[fNchsel]
private

Definition at line 27 of file TShapeAnalysis.h.

double TShapeAnalysis::chi2_init[fNchsel]
private

Definition at line 24 of file TShapeAnalysis.h.

double TShapeAnalysis::chi2_val[fNchsel]
private

Definition at line 22 of file TShapeAnalysis.h.

double TShapeAnalysis::chi2cut
private

Definition at line 35 of file TShapeAnalysis.h.

int TShapeAnalysis::dcc_init[fNchsel]
private

Definition at line 27 of file TShapeAnalysis.h.

int TShapeAnalysis::eta_init[fNchsel]
private

Definition at line 25 of file TShapeAnalysis.h.

char TShapeAnalysis::filename[80]
private
int TShapeAnalysis::flag_init[fNchsel]
private

Definition at line 25 of file TShapeAnalysis.h.

int TShapeAnalysis::flag_val[fNchsel]
private

Definition at line 23 of file TShapeAnalysis.h.

int TShapeAnalysis::index[fNchsel]
private

Definition at line 17 of file TShapeAnalysis.h.

int TShapeAnalysis::nchsel
private

Definition at line 36 of file TShapeAnalysis.h.

int TShapeAnalysis::nevt
private

Definition at line 18 of file TShapeAnalysis.h.

double TShapeAnalysis::noise
private

Definition at line 20 of file TShapeAnalysis.h.

int TShapeAnalysis::npass[fNchsel]
private

Definition at line 17 of file TShapeAnalysis.h.

Referenced by runall.testit::run(), and WorkFlowRunner.WorkFlowRunner::run().

double TShapeAnalysis::npassok[fNchsel]
private

Definition at line 30 of file TShapeAnalysis.h.

int TShapeAnalysis::nsamplecristal
private

Definition at line 18 of file TShapeAnalysis.h.

int TShapeAnalysis::phi_init[fNchsel]
private

Definition at line 25 of file TShapeAnalysis.h.

int TShapeAnalysis::presample
private

Definition at line 19 of file TShapeAnalysis.h.

double TShapeAnalysis::rawsglu[fNchsel][200][10]
private

Definition at line 29 of file TShapeAnalysis.h.

int TShapeAnalysis::sampamax
private

Definition at line 18 of file TShapeAnalysis.h.

int TShapeAnalysis::sampbmax
private

Definition at line 18 of file TShapeAnalysis.h.

int TShapeAnalysis::side_init[fNchsel]
private

Definition at line 27 of file TShapeAnalysis.h.

TTree* TShapeAnalysis::tABinit
private

Definition at line 32 of file TShapeAnalysis.h.

TTree* TShapeAnalysis::tABout
private

Definition at line 33 of file TShapeAnalysis.h.

long int TShapeAnalysis::timestart
private

Definition at line 16 of file TShapeAnalysis.h.

long int TShapeAnalysis::timestop
private

Definition at line 16 of file TShapeAnalysis.h.

int TShapeAnalysis::tower_init[fNchsel]
private

Definition at line 27 of file TShapeAnalysis.h.

double TShapeAnalysis::width_init[fNchsel]
private

Definition at line 24 of file TShapeAnalysis.h.

double TShapeAnalysis::width_val[fNchsel]
private

Definition at line 22 of file TShapeAnalysis.h.