CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | 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)
 
 ~TShapeAnalysis () override
 

Static Public Attributes

static constexpr int fNchsel = 1700
 

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 8 of file TShapeAnalysis.h.

Constructor & Destructor Documentation

◆ TShapeAnalysis() [1/2]

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

Definition at line 25 of file TShapeAnalysis.cc.

References init.

25  {
26  init(alpha0, beta0, width0, chi20);
27 }
void init(double, double, double, double)

◆ TShapeAnalysis() [2/2]

TShapeAnalysis::TShapeAnalysis ( TTree *  tAB,
double  alpha0,
double  beta0,
double  width0,
double  chi20 
)

Definition at line 29 of file TShapeAnalysis.cc.

References init.

29  {
30  init(tAB, alpha0, beta0, width0, chi20);
31 }
void init(double, double, double, double)

◆ ~TShapeAnalysis()

TShapeAnalysis::~TShapeAnalysis ( )
override

Definition at line 34 of file TShapeAnalysis.cc.

34 {}

Member Function Documentation

◆ assignChannel()

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

Definition at line 152 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n.

152  {
153  if (n >= nchsel)
154  printf(" number of channels exceed maximum allowed\n");
155 
156  index[n] = ch;
157 }
int index[fNchsel]

◆ computeShape()

void TShapeAnalysis::computeShape ( std::string  namefile,
TTree *   
)

Definition at line 205 of file TShapeAnalysis.cc.

References alpha, HLT_2022v12_cff::beta, hltPixelTracks_cff::chi2, debug, TFParams::fitpj(), RemoveAddSevLevel::flag, mps_fire::i, LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, dqmdumpme::k, hgchebackDigitizer_cfi::noise, TFParams::set_const(), ecaldqm::towerID(), and ApeEstimator_cff::width.

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

205  {
206  double tm_atmax[200];
207  double parout[3];
208 
209  double chi2_all = 0.;
210 
211  double **dbi;
212  dbi = new double *[200];
213  for (int k = 0; k < 200; k++)
214  dbi[k] = new double[2];
215 
216  double **signalu;
217  signalu = new double *[200];
218  for (int k = 0; k < 200; k++)
219  signalu[k] = new double[10];
220 
221  TFParams *pjf = new TFParams();
222 
223  for (int i = 0; i < nchsel; i++) {
224  if (index[i] >= 0) {
225  if (npass[i] <= 10) {
227  putbetaVal(i, beta_init[i]);
229  putchi2Val(i, chi2_init[i]);
230  putflagVal(i, 0);
231 
232  } else {
234 
235  for (int pass = 0; pass < npass[i]; pass++) {
236  double ped = 0;
237  for (int k = 0; k < presample; k++) {
238  ped += rawsglu[i][pass][k];
239  }
240  ped /= double(presample);
241 
242  for (int k = 0; k < nsamplecristal; k++) {
243  signalu[pass][k] = rawsglu[i][pass][k] - ped;
244  }
245  }
246 
247  int debug = 0;
248  chi2_all = pjf->fitpj(signalu, &parout[0], dbi, noise, debug);
249 
250  if (parout[0] >= 0.0 && parout[1] >= 0.0 && chi2_all <= chi2cut && chi2_all > 0.0) {
251  putalphaVal(i, parout[0]);
252  putbetaVal(i, parout[1]);
253  putchi2Val(i, chi2_all);
254  putflagVal(i, 1);
255 
256  } else {
258  putbetaVal(i, beta_init[i]);
260  putchi2Val(i, chi2_init[i]);
261  putflagVal(i, 0);
262  }
263 
264  for (int kj = 0; kj < npass[i]; kj++) { // last event wrong here
265  tm_atmax[kj] = dbi[kj][1];
266  }
267  computetmaxVal(i, &tm_atmax[0]);
268  }
269  }
270  }
271 
272  if (tAB)
273  tABinit = tAB->CloneTree();
274 
275  // Declaration of leaf types
276  Int_t sidei;
277  Int_t iphii;
278  Int_t ietai;
279  Int_t dccIDi;
280  Int_t towerIDi;
281  Int_t channelIDi;
282  Double_t alphai;
283  Double_t betai;
284  Double_t widthi;
285  Double_t chi2i;
286  Int_t flagi;
287 
288  // List of branches
289  TBranch *b_iphi;
290  TBranch *b_ieta;
291  TBranch *b_side;
292  TBranch *b_dccID;
293  TBranch *b_towerID;
294  TBranch *b_channelID;
295  TBranch *b_alpha;
296  TBranch *b_beta;
297  TBranch *b_width;
298  TBranch *b_chi2;
299  TBranch *b_flag;
300 
301  if (tABinit) {
302  tABinit->SetBranchAddress("iphi", &iphii, &b_iphi);
303  tABinit->SetBranchAddress("ieta", &ietai, &b_ieta);
304  tABinit->SetBranchAddress("side", &sidei, &b_side);
305  tABinit->SetBranchAddress("dccID", &dccIDi, &b_dccID);
306  tABinit->SetBranchAddress("towerID", &towerIDi, &b_towerID);
307  tABinit->SetBranchAddress("channelID", &channelIDi, &b_channelID);
308  tABinit->SetBranchAddress("alpha", &alphai, &b_alpha);
309  tABinit->SetBranchAddress("beta", &betai, &b_beta);
310  tABinit->SetBranchAddress("width", &widthi, &b_width);
311  tABinit->SetBranchAddress("chi2", &chi2i, &b_chi2);
312  tABinit->SetBranchAddress("flag", &flagi, &b_flag);
313  }
314 
315  TFile *fABout = new TFile(namefile.c_str(), "RECREATE");
316  tABout = new TTree("ABCol0", "ABCol0");
317 
318  // Declaration of leaf types
319  Int_t side;
320  Int_t iphi;
321  Int_t ieta;
322  Int_t dccID;
323  Int_t towerID;
324  Int_t channelID;
325  Double_t alpha;
326  Double_t beta;
327  Double_t width;
328  Double_t chi2;
329  Int_t flag;
330 
331  tABout->Branch("iphi", &iphi, "iphi/I");
332  tABout->Branch("ieta", &ieta, "ieta/I");
333  tABout->Branch("side", &side, "side/I");
334  tABout->Branch("dccID", &dccID, "dccID/I");
335  tABout->Branch("towerID", &towerID, "towerID/I");
336  tABout->Branch("channelID", &channelID, "channelID/I");
337  tABout->Branch("alpha", &alpha, "alpha/D");
338  tABout->Branch("beta", &beta, "beta/D");
339  tABout->Branch("width", &width, "width/D");
340  tABout->Branch("chi2", &chi2, "chi2/D");
341  tABout->Branch("flag", &flag, "flag/I");
342 
343  tABout->SetBranchAddress("ieta", &ieta);
344  tABout->SetBranchAddress("iphi", &iphi);
345  tABout->SetBranchAddress("side", &side);
346  tABout->SetBranchAddress("dccID", &dccID);
347  tABout->SetBranchAddress("towerID", &towerID);
348  tABout->SetBranchAddress("channelID", &channelID);
349  tABout->SetBranchAddress("alpha", &alpha);
350  tABout->SetBranchAddress("beta", &beta);
351  tABout->SetBranchAddress("width", &width);
352  tABout->SetBranchAddress("chi2", &chi2);
353  tABout->SetBranchAddress("flag", &flag);
354 
355  for (int i = 0; i < nchsel; i++) {
356  if (tABinit) {
357  tABinit->GetEntry(i);
358  iphi = iphii;
359  ieta = ietai;
360  side = sidei;
361  dccID = dccIDi;
362  towerID = towerIDi;
363  channelID = channelIDi;
364 
365  } else {
366  iphi = phi_init[i];
367  ieta = eta_init[i];
368  side = side_init[i];
369  dccID = dcc_init[i];
370  towerID = tower_init[i];
371  channelID = ch_init[i];
372  }
373 
374  alpha = alpha_val[i];
375  beta = beta_val[i];
376  width = width_val[i];
377  chi2 = chi2_val[i];
378  flag = flag_val[i];
379 
380  tABout->Fill();
381  }
382 
383  tABout->Write();
384  fABout->Close();
385 
386  delete pjf;
387 }
void putchi2Val(int, double)
float alpha
Definition: AMPTWrapper.h:105
void putwidthVal(int, double)
int npass[fNchsel]
void putflagVal(int, int)
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:509
void putalphaVal(int, double)
double beta_init[fNchsel]
#define debug
Definition: HDRShower.cc:19
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]
EcalLogicID towerID(EcalElectronicsId const &)
double alpha_init[fNchsel]
double chi2_init[fNchsel]
int side_init[fNchsel]
int tower_init[fNchsel]
double fitpj(double **, double *, double **, double noise_val, int debug)
Definition: TFParams.cc:34

◆ computetmaxVal()

void TShapeAnalysis::computetmaxVal ( int  i,
double *  tm_val 
)

Definition at line 389 of file TShapeAnalysis.cc.

References mps_fire::i, and dqmdumpme::k.

389  {
390  double tm_mean = 0; //double tm_sig=0;
391 
392  double tm = 0.;
393  double sigtm = 0.;
394  for (int k = 0; k < npass[i] - 1; k++) {
395  if (1. < tm_val[k] && tm_val[k] < 10.) {
396  npassok[i]++;
397  tm += tm_val[k];
398  sigtm += tm_val[k] * tm_val[k];
399  }
400  }
401  if (npassok[i] <= 0) {
402  tm_mean = 0.; //tm_sig=0.;
403  } else {
404  for (int k = 0; k < npass[i] - 1; k++) {
405  if (1. < tm_val[k] && tm_val[k] < 10.) {
406  tm_mean = tm / npassok[i];
407  }
408  }
409  }
410  //printf("npassok[%d]=%f tm_mean=%f tm_sig=%f\n",i,npassok[i],tm_mean,tm_sig);
411  putwidthVal(i, tm_mean);
412 }
void putwidthVal(int, double)
int npass[fNchsel]
double npassok[fNchsel]

◆ getDateStart()

void TShapeAnalysis::getDateStart ( )

Definition at line 163 of file TShapeAnalysis.cc.

References createfilelist::int, submitPVValidationJobs::t, and protons_cff::time.

163  {
164  time_t t, timecur;
165  timecur = time(&t);
166  timestart = ((long int)timecur);
167 }
long int timestart

◆ getDateStop()

void TShapeAnalysis::getDateStop ( )

Definition at line 169 of file TShapeAnalysis.cc.

References createfilelist::int, submitPVValidationJobs::t, and protons_cff::time.

169  {
170  time_t t, timecur;
171  timecur = time(&t);
172  timestop = ((long int)timecur);
173 }
long int timestop

◆ getInitVals()

std::vector< double > TShapeAnalysis::getInitVals ( int  n)

Definition at line 446 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and findQualityFiles::v.

446  {
447  std::vector<double> v;
448 
449  v.push_back(alpha_init[n]);
450  v.push_back(beta_init[n]);
451  v.push_back(width_init[n]);
452  v.push_back(chi2_init[n]);
453  v.push_back(flag_init[n]);
454 
455  return v;
456 }
int flag_init[fNchsel]
double width_init[fNchsel]
double beta_init[fNchsel]
double alpha_init[fNchsel]
double chi2_init[fNchsel]

◆ getVals()

std::vector< double > TShapeAnalysis::getVals ( int  n)

Definition at line 435 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and findQualityFiles::v.

Referenced by EcalLaserAnalyzer::endJob().

435  {
436  std::vector<double> v;
437 
438  v.push_back(alpha_val[n]);
439  v.push_back(beta_val[n]);
440  v.push_back(width_val[n]);
441  v.push_back(chi2_val[n]);
442  v.push_back(flag_val[n]);
443 
444  return v;
445 }
double beta_val[fNchsel]
double chi2_val[fNchsel]
double width_val[fNchsel]
double alpha_val[fNchsel]
int flag_val[fNchsel]

◆ init() [1/2]

void TShapeAnalysis::init ( double  alpha0,
double  beta0,
double  width0,
double  chi20 
)
private

Definition at line 36 of file TShapeAnalysis.cc.

36  {
37  tABinit = nullptr;
38  nchsel = fNchsel;
39  for (int cris = 0; cris < fNchsel; cris++) {
40  index[cris] = -1;
41  npass[cris] = 0;
42  npassok[cris] = 0.;
43 
44  alpha_val[cris] = alpha0;
45  beta_val[cris] = beta0;
46  width_val[cris] = width0;
47  chi2_val[cris] = chi20;
48  flag_val[cris] = 0;
49 
50  alpha_init[cris] = alpha0;
51  beta_init[cris] = beta0;
52  width_init[cris] = width0;
53  chi2_init[cris] = chi20;
54  flag_init[cris] = 0;
55 
56  phi_init[cris] = 0;
57  eta_init[cris] = 0;
58  side_init[cris] = 0;
59  dcc_init[cris] = 0;
60  tower_init[cris] = 0;
61  ch_init[cris] = 0;
62  assignChannel(cris, cris);
63  }
64 }
int npass[fNchsel]
int phi_init[fNchsel]
int flag_init[fNchsel]
int eta_init[fNchsel]
double width_init[fNchsel]
double beta_val[fNchsel]
int index[fNchsel]
int dcc_init[fNchsel]
void assignChannel(int, int)
double npassok[fNchsel]
double chi2_val[fNchsel]
double beta_init[fNchsel]
int ch_init[fNchsel]
double width_val[fNchsel]
static constexpr int 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]

◆ init() [2/2]

void TShapeAnalysis::init ( TTree *  tAB,
double  alpha0,
double  beta0,
double  width0,
double  chi20 
)
private

Definition at line 66 of file TShapeAnalysis.cc.

References cms::cuda::assert(), and init.

66  {
67  init(alpha0, beta0, width0, chi20);
68 
69  tABinit = tAB->CloneTree();
70 
71  // Declaration of leaf types
72  Int_t sidei;
73  Int_t iphii;
74  Int_t ietai;
75  Int_t dccIDi;
76  Int_t towerIDi;
77  Int_t channelIDi;
78  Double_t alphai;
79  Double_t betai;
80  Double_t widthi;
81  Double_t chi2i;
82  Int_t flagi;
83 
84  // List of branches
85  TBranch *b_iphi;
86  TBranch *b_ieta;
87  TBranch *b_side;
88  TBranch *b_dccID;
89  TBranch *b_towerID;
90  TBranch *b_channelID;
91  TBranch *b_alpha;
92  TBranch *b_beta;
93  TBranch *b_width;
94  TBranch *b_chi2;
95  TBranch *b_flag;
96 
97  if (tABinit) {
98  tABinit->SetBranchAddress("iphi", &iphii, &b_iphi);
99  tABinit->SetBranchAddress("ieta", &ietai, &b_ieta);
100  tABinit->SetBranchAddress("side", &sidei, &b_side);
101  tABinit->SetBranchAddress("dccID", &dccIDi, &b_dccID);
102  tABinit->SetBranchAddress("towerID", &towerIDi, &b_towerID);
103  tABinit->SetBranchAddress("channelID", &channelIDi, &b_channelID);
104  tABinit->SetBranchAddress("alpha", &alphai, &b_alpha);
105  tABinit->SetBranchAddress("beta", &betai, &b_beta);
106  tABinit->SetBranchAddress("width", &widthi, &b_width);
107  tABinit->SetBranchAddress("chi2", &chi2i, &b_chi2);
108  tABinit->SetBranchAddress("flag", &flagi, &b_flag);
109 
110  nchsel = tABinit->GetEntries();
111  assert(nchsel <= fNchsel);
112 
113  for (int cris = 0; cris < nchsel; cris++) {
114  tABinit->GetEntry(cris);
115 
116  // std::cout<< "Loop 1 "<< cris<<" "<<alphai<< std::endl;
117 
118  putalphaVal(cris, alphai);
119  putchi2Val(cris, chi2i);
120  putbetaVal(cris, betai);
121  putwidthVal(cris, widthi);
122  putflagVal(cris, flagi);
123 
124  putalphaInit(cris, alphai);
125  putchi2Init(cris, chi2i);
126  putbetaInit(cris, betai);
127  putwidthInit(cris, widthi);
128  putflagInit(cris, flagi);
129  putetaInit(cris, ietai);
130  putphiInit(cris, iphii);
131  }
132  }
133 }
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)
assert(be >=bs)
void putetaInit(int, int)
void putflagInit(int, int)
void putalphaVal(int, double)
void putchi2Init(int, double)
void putalphaInit(int, double)
static constexpr int fNchsel
void putwidthInit(int, double)
void putphiInit(int, int)

◆ printshapeData()

void TShapeAnalysis::printshapeData ( int  gRunNumber)

Definition at line 458 of file TShapeAnalysis.cc.

References ztee::fd, corrVsCorr::filename, mps_fire::i, createfilelist::int, and makeMEIFBenchmarkPlots::nev.

458  {
459  FILE *fd;
460  int nev;
461  sprintf(filename, "runABW%d.pedestal", gRunNumber);
462  fd = fopen(filename, "w");
463  if (fd == nullptr)
464  printf("Error while opening file : %s\n", filename);
465 
466  for (int i = 0; i < nchsel; i++) {
467  if (index[i] >= 0) {
468  nev = (int)npassok[i];
469  double trise = alpha_val[i] * beta_val[i];
470  fprintf(fd,
471  "%d %d 1 %ld %ld %f %f %f %f\n",
472  index[i],
473  nev,
474  timestart,
475  timestop,
476  alpha_val[i],
477  beta_val[i],
478  trise,
479  width_val[i]);
480  }
481  }
482  int iret = fclose(fd);
483  printf(" Closing file : %d\n", iret);
484 }
double beta_val[fNchsel]
int index[fNchsel]
long int timestop
char filename[80]
double npassok[fNchsel]
long int timestart
double width_val[fNchsel]
double alpha_val[fNchsel]
fd
Definition: ztee.py:136

◆ putAllVals() [1/2]

void TShapeAnalysis::putAllVals ( int  ch,
double *  sampl,
int  ieta,
int  iphi 
)

Definition at line 185 of file TShapeAnalysis.cc.

References mps_fire::i, dqmdumpme::k, dqmiodumpmetadata::n, and nevt.

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

185  {
186  int i, k;
187  int n = -1;
188  for (i = 0; i < nchsel; i++)
189  if (index[i] == ch)
190  n = i;
191 
192  if (n >= 0) {
193  if (npass[n] < nevt) {
194  for (k = 0; k < nsamplecristal; k++) {
195  rawsglu[n][npass[n]][k] = sampl[k];
196  }
197 
198  npass[n]++;
199  }
200  } else {
201  printf("no index found for ch=%d\n", ch);
202  }
203 }
int npass[fNchsel]
int index[fNchsel]
double rawsglu[fNchsel][200][10]

◆ putAllVals() [2/2]

void TShapeAnalysis::putAllVals ( int  ch,
double *  sampl,
int  ieta,
int  iphi,
int  dcc,
int  side,
int  tower,
int  chid 
)

Definition at line 175 of file TShapeAnalysis.cc.

References LEDCalibrationChannels::ieta, and LEDCalibrationChannels::iphi.

175  {
176  dcc_init[ch] = dcc;
177  tower_init[ch] = side;
178  ch_init[ch] = chid;
179  side_init[ch] = side;
180  eta_init[ch] = ieta;
181  phi_init[ch] = iphi;
182  putAllVals(ch, sampl, ieta, iphi);
183 }
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]

◆ putalphaInit()

void TShapeAnalysis::putalphaInit ( int  n,
double  val 
)

Definition at line 423 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and heppy_batch::val.

◆ putalphaVal()

void TShapeAnalysis::putalphaVal ( int  n,
double  val 
)

Definition at line 414 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and heppy_batch::val.

◆ putbetaInit()

void TShapeAnalysis::putbetaInit ( int  n,
double  val 
)

Definition at line 426 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and heppy_batch::val.

◆ putbetaVal()

void TShapeAnalysis::putbetaVal ( int  n,
double  val 
)

Definition at line 417 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and heppy_batch::val.

◆ putchi2Init()

void TShapeAnalysis::putchi2Init ( int  n,
double  val 
)

Definition at line 425 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and heppy_batch::val.

◆ putchi2Val()

void TShapeAnalysis::putchi2Val ( int  n,
double  val 
)

Definition at line 416 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and heppy_batch::val.

◆ putDateStart()

void TShapeAnalysis::putDateStart ( long int  timecur)

Definition at line 159 of file TShapeAnalysis.cc.

159 { timestart = timecur; }
long int timestart

◆ putDateStop()

void TShapeAnalysis::putDateStop ( long int  timecur)

Definition at line 161 of file TShapeAnalysis.cc.

161 { timestop = timecur; }
long int timestop

◆ putetaInit()

void TShapeAnalysis::putetaInit ( int  n,
int  val 
)

Definition at line 430 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and heppy_batch::val.

◆ putflagInit()

void TShapeAnalysis::putflagInit ( int  n,
int  val 
)

Definition at line 434 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and heppy_batch::val.

◆ putflagVal()

void TShapeAnalysis::putflagVal ( int  n,
int  val 
)

Definition at line 421 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and heppy_batch::val.

◆ putphiInit()

void TShapeAnalysis::putphiInit ( int  n,
int  val 
)

Definition at line 432 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and heppy_batch::val.

◆ putwidthInit()

void TShapeAnalysis::putwidthInit ( int  n,
double  val 
)

Definition at line 428 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and heppy_batch::val.

◆ putwidthVal()

void TShapeAnalysis::putwidthVal ( int  n,
double  val 
)

Definition at line 419 of file TShapeAnalysis.cc.

References dqmiodumpmetadata::n, and heppy_batch::val.

◆ set_const()

void TShapeAnalysis::set_const ( int  ns,
int  ns1,
int  ns2,
int  ps,
int  nevtmax,
double  noise_val,
double  chi2_cut 
)

Definition at line 135 of file TShapeAnalysis.cc.

References trackAssociatorByChi2_cfi::chi2cut, nevt, and hgchebackDigitizer_cfi::noise.

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

135  {
136  nsamplecristal = ns;
137  presample = ps;
138  sampbmax = ns1;
139  sampamax = ns2;
140  nevt = nevtmax;
141  noise = noise_val;
142  chi2cut = chi2_cut;
143 }

◆ set_nch()

void TShapeAnalysis::set_nch ( int  nch)

Definition at line 146 of file TShapeAnalysis.cc.

References cms::cuda::assert().

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

146  {
147  assert(nch <= fNchsel);
148  if (tABinit)
149  assert(nch == nchsel);
150  nchsel = nch;
151 }
assert(be >=bs)
static constexpr int fNchsel

◆ set_presample()

void TShapeAnalysis::set_presample ( int  ps)

Definition at line 145 of file TShapeAnalysis.cc.

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

145 { presample = ps; }

Member Data Documentation

◆ alpha0

double TShapeAnalysis::alpha0
private

Definition at line 19 of file TShapeAnalysis.h.

◆ alpha_init

double TShapeAnalysis::alpha_init[fNchsel]
private

Definition at line 22 of file TShapeAnalysis.h.

◆ alpha_val

double TShapeAnalysis::alpha_val[fNchsel]
private

Definition at line 20 of file TShapeAnalysis.h.

◆ beta0

double TShapeAnalysis::beta0
private

Definition at line 19 of file TShapeAnalysis.h.

◆ beta_init

double TShapeAnalysis::beta_init[fNchsel]
private

Definition at line 22 of file TShapeAnalysis.h.

◆ beta_val

double TShapeAnalysis::beta_val[fNchsel]
private

Definition at line 20 of file TShapeAnalysis.h.

◆ ch_init

int TShapeAnalysis::ch_init[fNchsel]
private

Definition at line 25 of file TShapeAnalysis.h.

◆ chi2_init

double TShapeAnalysis::chi2_init[fNchsel]
private

Definition at line 22 of file TShapeAnalysis.h.

◆ chi2_val

double TShapeAnalysis::chi2_val[fNchsel]
private

Definition at line 20 of file TShapeAnalysis.h.

◆ chi2cut

double TShapeAnalysis::chi2cut
private

Definition at line 33 of file TShapeAnalysis.h.

◆ dcc_init

int TShapeAnalysis::dcc_init[fNchsel]
private

Definition at line 25 of file TShapeAnalysis.h.

◆ eta_init

int TShapeAnalysis::eta_init[fNchsel]
private

Definition at line 23 of file TShapeAnalysis.h.

◆ filename

char TShapeAnalysis::filename[80]
private

Definition at line 13 of file TShapeAnalysis.h.

Referenced by python.rootplot.rootmath.Target::__repr__().

◆ flag_init

int TShapeAnalysis::flag_init[fNchsel]
private

Definition at line 23 of file TShapeAnalysis.h.

◆ flag_val

int TShapeAnalysis::flag_val[fNchsel]
private

Definition at line 21 of file TShapeAnalysis.h.

◆ fNchsel

constexpr int TShapeAnalysis::fNchsel = 1700
static

Definition at line 10 of file TShapeAnalysis.h.

◆ index

int TShapeAnalysis::index[fNchsel]
private

Definition at line 15 of file TShapeAnalysis.h.

Referenced by BeautifulSoup.PageElement::insert().

◆ nchsel

int TShapeAnalysis::nchsel
private

Definition at line 34 of file TShapeAnalysis.h.

◆ nevt

int TShapeAnalysis::nevt
private

Definition at line 16 of file TShapeAnalysis.h.

◆ noise

double TShapeAnalysis::noise
private

Definition at line 18 of file TShapeAnalysis.h.

◆ npass

int TShapeAnalysis::npass[fNchsel]
private

◆ npassok

double TShapeAnalysis::npassok[fNchsel]
private

Definition at line 28 of file TShapeAnalysis.h.

◆ nsamplecristal

int TShapeAnalysis::nsamplecristal
private

Definition at line 16 of file TShapeAnalysis.h.

◆ phi_init

int TShapeAnalysis::phi_init[fNchsel]
private

Definition at line 23 of file TShapeAnalysis.h.

◆ presample

int TShapeAnalysis::presample
private

Definition at line 17 of file TShapeAnalysis.h.

◆ rawsglu

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

Definition at line 27 of file TShapeAnalysis.h.

◆ sampamax

int TShapeAnalysis::sampamax
private

Definition at line 16 of file TShapeAnalysis.h.

◆ sampbmax

int TShapeAnalysis::sampbmax
private

Definition at line 16 of file TShapeAnalysis.h.

◆ side_init

int TShapeAnalysis::side_init[fNchsel]
private

Definition at line 25 of file TShapeAnalysis.h.

◆ tABinit

TTree* TShapeAnalysis::tABinit
private

Definition at line 30 of file TShapeAnalysis.h.

◆ tABout

TTree* TShapeAnalysis::tABout
private

Definition at line 31 of file TShapeAnalysis.h.

◆ timestart

long int TShapeAnalysis::timestart
private

Definition at line 14 of file TShapeAnalysis.h.

◆ timestop

long int TShapeAnalysis::timestop
private

Definition at line 14 of file TShapeAnalysis.h.

◆ tower_init

int TShapeAnalysis::tower_init[fNchsel]
private

Definition at line 25 of file TShapeAnalysis.h.

◆ width_init

double TShapeAnalysis::width_init[fNchsel]
private

Definition at line 22 of file TShapeAnalysis.h.

◆ width_val

double TShapeAnalysis::width_val[fNchsel]
private

Definition at line 20 of file TShapeAnalysis.h.