CMS 3D CMS Logo

PixelResolutionHistograms.cc
Go to the documentation of this file.
1 //
2 // The implementation of the PixelResolutinHistograms.cc class. Please
3 // look at PixelResolutionHistograms.h header file for the interface.
4 //
5 //------------------------------------------------------------------------------
6 
7 // The switch, undefined in CMSSW release, and defined by standalone compilation script:
8 
9 #ifdef SI_PIXEL_TEMPLATE_STANDALONE
10 //
11 //--- Stand-alone: Include a the header file from the local directory, as well as
12 // dummy implementations of SimpleHistogramGenerator, LogInfo, LogError and LogDebug...
13 //
15 //
16 class TH1F;
17 class TH2F;
19 public:
20  SimpleHistogramGenerator(TH1F* hist) : hist_(hist){};
21 
22 private:
23  TH1F* hist_; // we don't own it
24 };
25 #define LOGDEBUG std::cout
26 #define LOGERROR std::cout
27 #define LOGINFO std::cout
28 //
29 #else
30 //--- We're inside a CMSSW release: Include the real thing.
31 //
36 //
37 #define LOGDEBUG LogDebug("")
38 #define LOGERROR edm::LogError("Error")
39 #define LOGINFO edm::LogInfo("Info")
40 //
41 #endif
42 
43 // Generic C stuff
44 #include <cmath>
45 #include <iostream>
46 #include <string>
47 
48 // ROOT
49 #include <TFile.h>
50 #include <TH1F.h>
51 #include <TH2F.h>
52 
53 // Global definitions
54 const float cmtomicron = 10000.0;
55 
56 //------------------------------------------------------------------------------
57 // Constructor: Books the FastSim Histograms, given the input parameters
58 // which are provided as arguments. These variables are then const inside
59 // the class. (That is, once we make the histograms, we can't change the
60 // definition of the binning.)
61 //------------------------------------------------------------------------------
63  std::string rootdir, // Subdirectory in the file, "" if none
64  std::string descTitle, // Descriptive title
65  unsigned int detType, // Where we are... (&&& do we need this?)
66  double cotbetaBinWidth,
67  double cotbetaLowEdge,
68  int cotbetaBins,
69  double cotalphaBinWidth,
70  double cotalphaLowEdge,
71  int cotalphaBins) //,
72  //int qbinWidth,
73  //int qbins )
74  : weOwnHistograms_(true), // we'll be making some histos
75  detType_(detType),
76  cotbetaBinWidth_(cotbetaBinWidth),
77  cotbetaLowEdge_(cotbetaLowEdge),
78  cotbetaBins_(cotbetaBins),
79  cotalphaBinWidth_(cotalphaBinWidth),
80  cotalphaLowEdge_(cotalphaLowEdge),
81  cotalphaBins_(cotalphaBins),
82  qbinWidth_(1),
83  qbins_(4),
84  binningHisto_(nullptr),
85  resMultiPixelXHist_(),
86  resSinglePixelXHist_(), // all to nullptr
87  resMultiPixelYHist_(),
88  resSinglePixelYHist_(), // all to nullptr
89  qbinHist_(), // all to nullptr
90  file_(nullptr),
91  status_(0),
92  resMultiPixelXGen_(),
93  resSinglePixelXGen_(),
94  resMultiPixelYGen_(),
95  resSinglePixelYGen_(),
96  qbinGen_() {
97  file_ = std::make_unique<TFile>(filename.c_str(), "RECREATE");
98  //Resolution binning
99  // const double cotbetaBinWidth = 1.0;
100  // const double cotbetaLowEdge = -11.5 ;
101  // const int cotbetaBins = 23;
102  // const double cotalphaBinWidth = 0.08 ;
103  // const double cotalphaLowEdge = -0.36 ;
104  // const int cotalphaBins = 9;
105  // const int qbinWidth = 1;
106  // const int qbins = 4;
107 
108  // Dummy 2D histogram to store binning:
109  binningHisto_ = new TH2F("ResHistoBinning",
110  descTitle.c_str(),
111  cotbetaBins,
112  cotbetaLowEdge,
113  cotbetaLowEdge + cotbetaBins * cotbetaBinWidth,
114  cotalphaBins,
115  cotalphaLowEdge,
116  cotalphaLowEdge + cotalphaBins * cotalphaBinWidth);
117 
118  // Store detType in the underflow bin
119  binningHisto_->SetBinContent(0, 0, detType_);
120 
121  // All other histograms:
122  Char_t histo[200];
123  Char_t title[200];
124  //
125  //--- Histograms for clusters with multiple pixels hit in a given direction.
126  //
127  for (int ii = 0; ii < cotbetaBins_; ii++) {
128  for (int jj = 0; jj < cotalphaBins_; jj++) {
129  for (int kk = 0; kk < qbins_; kk++) {
130  //
131  sprintf(histo, "hx%d1%02d%d%d", detType_, ii + 1, jj + 1, kk + 1); //information of bits of histogram names
132  //--- First bit 1/0 barrel/forward, second 1/0 multi/single, cotbeta, cotalpha, qbins
133  sprintf(title,
134  "cotbeta %.1f-%.1f cotalpha %.2f-%.2f qbin %d npixel>1 X",
139  kk + 1);
140  //
141  resMultiPixelXHist_[ii][jj][kk] = new TH1F(histo, title, 1000, -0.05, 0.05);
142 
143  sprintf(histo, "hy%d1%02d%d%d", detType_, ii + 1, jj + 1, kk + 1);
144  sprintf(title,
145  "cotbeta %.1f-%.1f cotalpha %.2f-%.2f qbin %d npixel>1 Y",
150  kk + 1);
151  //
152  resMultiPixelYHist_[ii][jj][kk] = new TH1F(histo, title, 1000, -0.05, 0.05);
153  }
154  }
155  }
156 
157  //
158  //--- Histograms for clusters where only a single pixel was hit in a given direction.
159  //
160  for (int ii = 0; ii < cotbetaBins_; ii++) {
161  for (int jj = 0; jj < cotalphaBins_; jj++) {
162  sprintf(histo, "hx%d0%02d%d", detType_, ii + 1, jj + 1); //information of bits of histogram names
163  //first bit 1/0 barrel/forward, second 1/0 multi/single, cotbeta, cotalpha
164  sprintf(title,
165  "cotbeta %.1f-%.1f cotalpha %.2f-%.2f npixel=1 X",
170  //
171  resSinglePixelXHist_[ii][jj] = new TH1F(histo, title, 1000, -0.05, 0.05);
172 
173  sprintf(histo, "hy%d0%02d%d", detType_, ii + 1, jj + 1);
174  sprintf(title,
175  "cotbeta %.1f-%.1f cotalpha %.2f-%.2f npixel=1 Y",
180  //
181  resSinglePixelYHist_[ii][jj] = new TH1F(histo, title, 1000, -0.05, 0.05);
182 
183  sprintf(histo, "hqbin%d%02d%d", detType_, ii + 1, jj + 1);
184  sprintf(title,
185  "cotbeta %.1f-%.1f cotalpha %.2f-%.2f qbin",
190  //
191  qbinHist_[ii][jj] = new TH1F(histo, title, 4, -0.49, 3.51);
192  }
193  }
194 }
195 
196 //------------------------------------------------------------------------------
197 // Another constructor: load the histograms from one file.
198 // filename = full path to filename
199 // rootdir = ROOT directory inside the file
200 //
201 // The other parameters are the same (needed later) and must correspond
202 // to the histograms we are loading from the file.
203 //------------------------------------------------------------------------------
205  std::string rootdir,
206  int detType,
207  bool ignore_multi,
208  bool ignore_single,
209  bool ignore_qBin)
210  : weOwnHistograms_(false), // resolution histograms are owned by the ROOT file
211  detType_(-1),
212  cotbetaBinWidth_(0),
213  cotbetaLowEdge_(0),
214  cotbetaBins_(0),
215  cotalphaBinWidth_(0),
216  cotalphaLowEdge_(0),
217  cotalphaBins_(0),
218  qbinWidth_(1),
219  qbins_(4),
220  binningHisto_(nullptr),
221  resMultiPixelXHist_(),
222  resSinglePixelXHist_(), // all to nullptr
223  resMultiPixelYHist_(),
224  resSinglePixelYHist_(), // all to nullptr
225  qbinHist_(), // all to nullptr
226  file_(nullptr),
227  status_(0),
228  resMultiPixelXGen_(),
229  resSinglePixelXGen_(),
230  resMultiPixelYGen_(),
231  resSinglePixelYGen_(),
232  qbinGen_() {
233  Char_t histo[200]; // the name of the histogram
234  Char_t title[200]; // histo title, for debugging and sanity checking (compare inside file)
235  TH1F* tmphist = nullptr; // cache for histo pointer
236 
237  //--- Open the file for reading.
238  file_ = std::make_unique<TFile>(filename.c_str(), "READ");
239  if (!file_) {
240  status_ = 1;
241  LOGERROR << "PixelResolutionHistograms:: Error, file " << filename << " not found.";
242  return; // PixelTemplateSmearerBase will throw an exception upon our return.
243  }
244 
245  //--- The dummy 2D histogram with the binning of cot\beta and cot\alpha:
246  binningHisto_ = (TH2F*)file_->Get(Form("%s%s", rootdir.c_str(), "ResHistoBinning"));
247  if (!binningHisto_) {
248  status_ = 11;
249  LOGERROR << "PixelResolutionHistograms:: Error, binning histogrram ResHistoBinning not found.";
250  return; // PixelTemplateSmearerBase will throw an exception upon our return.
251  }
252 
253  if (detType == -1) {
254  //--- Fish out detType from the underflow bin:
255  detType_ = binningHisto_->GetBinContent(0, 0);
256  } else {
257  detType_ = detType; // constructor's argument overrides what's in ResHistoBinning histogram.
258  }
259 
260  //--- Now we fill the binning variables:
261  cotbetaAxis_ = binningHisto_->GetXaxis();
262  cotbetaBinWidth_ = binningHisto_->GetXaxis()->GetBinWidth(1); // assume all same width
263  cotbetaLowEdge_ = binningHisto_->GetXaxis()->GetXmin(); // low edge of the first bin
264  cotbetaBins_ = binningHisto_->GetXaxis()->GetNbins();
265  cotalphaAxis_ = binningHisto_->GetYaxis();
266  cotalphaBinWidth_ = binningHisto_->GetYaxis()->GetBinWidth(1); // assume all same width;
267  cotalphaLowEdge_ = binningHisto_->GetYaxis()->GetXmin(); // low edge of the first bin;
268  cotalphaBins_ = binningHisto_->GetYaxis()->GetNbins();
269 
270  if (!ignore_multi) {
271  //
272  //--- Histograms for clusters with multiple pixels hit in a given direction.
273  //
274  for (int ii = 0; ii < cotbetaBins_; ii++) {
275  for (int jj = 0; jj < cotalphaBins_; jj++) {
276  for (int kk = 0; kk < qbins_; kk++) {
277  //
278  sprintf(histo, "hx%d1%02d%d%d", detType_, ii + 1, jj + 1, kk + 1); //information of bits of histogram names
279  //--- First bit 1/0 barrel/forward, second 1/0 multi/single, cotbeta, cotalpha, qbins
280  sprintf(title,
281  "cotbeta %.1f-%.1f cotalpha %.2f-%.2f qbin %d npixel>1 X",
286  kk + 1);
287  //
288  tmphist = (TH1F*)file_->Get(Form("%s%s", rootdir.c_str(), histo));
289  if (!tmphist) {
290  status_ = 2;
291  LOGERROR << "Failed to find histogram=" << std::string(histo);
292  return;
293  }
294  LOGDEBUG << "Found histo " << std::string(histo) << " with title = " << std::string(tmphist->GetTitle())
295  << std::endl;
296  if (tmphist->GetEntries() < 5) {
297  LOGINFO << "Histogram " << std::string(histo) << " has only " << tmphist->GetEntries()
298  << " entries. Trouble ahead." << std::endl;
299  }
300  resMultiPixelXHist_[ii][jj][kk] = tmphist;
302 
303  sprintf(histo, "hy%d1%02d%d%d", detType_, ii + 1, jj + 1, kk + 1);
304  sprintf(title,
305  "cotbeta %.1f-%.1f cotalpha %.2f-%.2f qbin %d npixel>1 Y",
310  kk + 1);
311  //
312  tmphist = (TH1F*)file_->Get(Form("%s%s", rootdir.c_str(), histo));
313  if (!tmphist) {
314  status_ = 3;
315  LOGERROR << "Failed to find histogram=" << std::string(histo);
316  return;
317  }
318  LOGDEBUG << "Found histo " << std::string(histo) << " with title = " << std::string(tmphist->GetTitle())
319  << std::endl;
320  if (tmphist->GetEntries() < 5) {
321  LOGINFO << "Histogram " << std::string(histo) << " has only " << tmphist->GetEntries()
322  << " entries. Trouble ahead." << std::endl;
323  }
324  resMultiPixelYHist_[ii][jj][kk] = tmphist;
326  }
327  }
328  }
329  //
330  } // if (not ignore multi)
331 
332  //
333  //--- Histograms for clusters where only a single pixel was hit in a given direction.
334  //
335  for (int ii = 0; ii < cotbetaBins_; ii++) {
336  for (int jj = 0; jj < cotalphaBins_; jj++) {
337  //--- Single pixel, along X.
338  //
339  sprintf(histo, "hx%d0%02d%d", detType_, ii + 1, jj + 1); //information of bits of histogram names
340  //--- First bit 1/0 barrel/forward, second 1/0 multi/single, cotbeta, cotalpha
341  sprintf(title,
342  "cotbeta %.1f-%.1f cotalpha %.2f-%.2f npixel=1 X",
347  //
348  tmphist = (TH1F*)file_->Get(Form("%s%s", rootdir.c_str(), histo));
349  if (!tmphist) {
350  if (!ignore_single) {
351  LOGERROR << "Failed to find histogram=" << std::string(histo);
352  status_ = 4;
353  return;
354  }
355  } else {
356  LOGDEBUG << "Found histo " << std::string(histo) << " with title = " << std::string(tmphist->GetTitle())
357  << std::endl;
358  LOGDEBUG << "Found histo with title = " << std::string(tmphist->GetTitle()) << std::endl;
359  if (tmphist->GetEntries() < 5) {
360  LOGINFO << "Histogram " << std::string(histo) << " has only " << tmphist->GetEntries()
361  << " entries. Trouble ahead." << std::endl;
362  }
363  resSinglePixelXHist_[ii][jj] = tmphist;
365  }
366 
367  //--- Single pixel, along Y.
368  //
369  sprintf(histo, "hy%d0%02d%d", detType_, ii + 1, jj + 1);
370  sprintf(title,
371  "cotbeta %.1f-%.1f cotalpha %.2f-%.2f npixel=1 Y",
376  //
377  tmphist = (TH1F*)file_->Get(Form("%s%s", rootdir.c_str(), histo));
378  if (!tmphist) {
379  if (!ignore_single) {
380  LOGERROR << "Failed to find histogram=" << std::string(histo);
381  status_ = 5;
382  return;
383  }
384  } else {
385  LOGDEBUG << "Found histo " << std::string(histo) << " with title = " << std::string(tmphist->GetTitle())
386  << std::endl;
387  if (tmphist->GetEntries() < 5) {
388  LOGINFO << "Histogram " << std::string(histo) << " has only " << tmphist->GetEntries()
389  << " entries. Trouble ahead." << std::endl;
390  }
391  resSinglePixelYHist_[ii][jj] = tmphist;
393  }
394 
395  //--- qBin distribution, for this (cotbeta, cotalpha) bin.
396  //
397  sprintf(histo, "hqbin%d%02d%d", detType_, ii + 1, jj + 1);
398  sprintf(title,
399  "cotbeta %.1f-%.1f cotalpha %.2f-%.2f qbin",
404  //
405  tmphist = (TH1F*)file_->Get(Form("%s%s", rootdir.c_str(), histo));
406  if (!tmphist) {
407  if (!ignore_qBin) {
408  LOGERROR << "Failed to find histogram=" << std::string(histo);
409  status_ = 6;
410  return;
411  }
412  } else {
413  LOGDEBUG << "Found histo " << std::string(histo) << " with title = " << std::string(tmphist->GetTitle())
414  << std::endl;
415  if (tmphist->GetEntries() < 5) {
416  LOGINFO << "Histogram " << std::string(histo) << " has only " << tmphist->GetEntries()
417  << " entries. Trouble ahead." << std::endl;
418  }
419  qbinHist_[ii][jj] = tmphist;
420  qbinGen_[ii][jj] = new SimpleHistogramGenerator(tmphist);
421  }
422  }
423  }
424 }
425 
426 //------------------------------------------------------------------------------
427 // Destructor. Use file_ pointer to tell whether we loaded the histograms
428 // from a file (and do not own them), or we built them ourselves and thus need
429 // to delete them.
430 //------------------------------------------------------------------------------
432  //--- Delete histograms, but only if we own them. If
433  //--- they came from a file, let them be.
434  //
435  if (!weOwnHistograms_) {
436  //--- Read the histograms from the TFile, the file will take care of them.
437  file_->Close();
440  } else {
441  //--- We made the histograms, so first write them inthe output ROOT file and close it.
442  LOGINFO << "PixelResHistoStore: Writing the histograms to the output file. " // << filename
443  << std::endl;
444  file_->Write();
445  file_->Close();
446 
447  // ROOT file has the ownership, and once the file is closed,
448  // all of these guys are deleted. So, we don't need to do anything.
449  } // else
450 
451  //--- Delete FastSim generators. (It's safe to delete a nullptr.)
452  for (int ii = 0; ii < cotbetaBins_; ii++) {
453  for (int jj = 0; jj < cotalphaBins_; jj++) {
454  for (int kk = 0; kk < qbins_; kk++) {
455  delete resMultiPixelXGen_[ii][jj][kk];
456  delete resMultiPixelYGen_[ii][jj][kk];
457  }
458  }
459  }
460  for (int ii = 0; ii < cotbetaBins_; ii++) {
461  for (int jj = 0; jj < cotalphaBins_; jj++) {
462  delete resSinglePixelXGen_[ii][jj];
463  delete resSinglePixelYGen_[ii][jj];
464  delete qbinGen_[ii][jj];
465  }
466  }
467 }
468 
469 //------------------------------------------------------------------------------
470 // Fills the appropriate FastSim histograms.
471 // Returns 0 if the relevant histogram(s) were found and filled, 1 if not.
472 //------------------------------------------------------------------------------
474  double dx, double dy, double cotalpha, double cotbeta, int qbin, int nxpix, int nypix) {
475  int icotalpha, icotbeta, iqbin;
476  icotalpha = (int)floor((cotalpha - cotalphaLowEdge_) / cotalphaBinWidth_);
477  icotbeta = (int)floor((cotbeta - cotbetaLowEdge_) / cotbetaBinWidth_);
478  iqbin = qbin > 2 ? 3 : qbin;
479  if (icotalpha >= 0 && icotalpha < cotalphaBins_ && icotbeta >= 0 && icotbeta < cotbetaBins_) {
480  qbinHist_[icotbeta][icotalpha]->Fill((double)iqbin);
481  if (nxpix == 1)
482  resSinglePixelXHist_[icotbeta][icotalpha]->Fill(dx / cmtomicron);
483  else
484  resMultiPixelXHist_[icotbeta][icotalpha][iqbin]->Fill(dx / cmtomicron);
485  if (nypix == 1)
486  resSinglePixelYHist_[icotbeta][icotalpha]->Fill(dy / cmtomicron);
487  else
488  resMultiPixelYHist_[icotbeta][icotalpha][iqbin]->Fill(dy / cmtomicron);
489  }
490 
491  return 0;
492 }
493 
494 //------------------------------------------------------------------------------
495 // Return the histogram generator for resolution in X. A generator contains
496 // both the histogram and knows how to throw a random number off it. It is
497 // called from FastSim (from PixelTemplateSmearerBase).
498 // If cotalpha or cotbeta are outside of the range, return the end of the range.
499 //------------------------------------------------------------------------------
501  double cotbeta,
502  int qbin,
503  bool single) {
504  int icotalpha, icotbeta, iqbin;
505  icotalpha = (int)floor((cotalpha - cotalphaLowEdge_) / cotalphaBinWidth_);
506  icotbeta = (int)floor((cotbeta - cotbetaLowEdge_) / cotbetaBinWidth_);
507  iqbin = qbin > 2 ? 3 : qbin; // if (qbin>2) then = 3, else return qbin
508  //
509  //if( icotalpha >= 0 && icotalpha < cotalphaBins_ && icotbeta >= 0 && icotbeta < cotbetaBins_ ) {
510 
511  if (icotalpha < 0)
512  icotalpha = 0;
513  if (icotalpha >= cotalphaBins_)
514  icotalpha = cotalphaBins_ - 1;
515 
516  if (icotbeta < 0)
517  icotbeta = 0;
518  if (icotbeta >= cotbetaBins_)
519  icotbeta = cotbetaBins_ - 1;
520 
521  // At this point we are sure to return *some bin* from the 3D histogram
522 
523  if (single)
524  return resSinglePixelXGen_[icotbeta][icotalpha];
525  else
526  return resMultiPixelXGen_[icotbeta][icotalpha][iqbin];
527 
528  // }
529  //else
530  //return nullptr;
531 }
532 
533 //------------------------------------------------------------------------------
534 // Return the histogram generator for resolution in Y. A generator contains
535 // both the histogram and knows how to throw a random number off it. It is
536 // called from FastSim (from PixelTemplateSmearerBase).
537 // If cotalpha or cotbeta are outside of the range, return the end of the range.
538 //------------------------------------------------------------------------------
540  double cotbeta,
541  int qbin,
542  bool single) {
543  int icotalpha, icotbeta, iqbin;
544  icotalpha = (int)floor((cotalpha - cotalphaLowEdge_) / cotalphaBinWidth_);
545  icotbeta = (int)floor((cotbeta - cotbetaLowEdge_) / cotbetaBinWidth_);
546  iqbin = qbin > 2 ? 3 : qbin; // if (qbin>2) then = 3, else return qbin
547  //
548  //if( icotalpha >= 0 && icotalpha < cotalphaBins_ && icotbeta >= 0 && icotbeta < cotbetaBins_ ) {
549 
550  if (icotalpha < 0)
551  icotalpha = 0;
552  if (icotalpha >= cotalphaBins_)
553  icotalpha = cotalphaBins_ - 1;
554 
555  if (icotbeta < 0)
556  icotbeta = 0;
557  if (icotbeta >= cotbetaBins_)
558  icotbeta = cotbetaBins_ - 1;
559 
560  // At this point we are sure to return *some bin* from the 3D histogram
561 
562  if (single)
563  return resSinglePixelYGen_[icotbeta][icotalpha];
564  else
565  return resMultiPixelYGen_[icotbeta][icotalpha][iqbin];
566 
567  //}
568  //else
569  //return nullptr;
570 }
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
MessageLogger.h
funct::false
false
Definition: Factorize.h:29
PixelResolutionHistograms::~PixelResolutionHistograms
virtual ~PixelResolutionHistograms()
Definition: PixelResolutionHistograms.cc:431
PixelResolutionHistograms::cotbetaBins_
int cotbetaBins_
Definition: PixelResolutionHistograms.h:84
PixelResolutionHistograms::PixelResolutionHistograms
PixelResolutionHistograms(std::string filename, std::string rootdir, std::string descTitle, unsigned int detType, double cotbetaBinWidth, double cotbetaLowEdge, int cotbetaBins, double cotalphaBinWidth, double cotalphaLowEdge, int cotalphaBins)
Definition: PixelResolutionHistograms.cc:62
PixelResolutionHistograms::status_
int status_
Definition: PixelResolutionHistograms.h:118
PixelResolutionHistograms::qbins_
int qbins_
Definition: PixelResolutionHistograms.h:89
PixelResolutionHistograms::resSinglePixelXGen_
SimpleHistogramGenerator * resSinglePixelXGen_[COTBETA_HIST_MAX][COTALPHA_HIST_MAX]
Definition: PixelResolutionHistograms.h:122
timingPdfMaker.histo
histo
Definition: timingPdfMaker.py:279
LOGERROR
#define LOGERROR
Definition: PixelResolutionHistograms.cc:38
RandomEngineAndDistribution.h
PixelResolutionHistograms::binningHisto_
TH2F * binningHisto_
Definition: PixelResolutionHistograms.h:92
PixelResolutionHistograms::qbinGen_
SimpleHistogramGenerator * qbinGen_[COTBETA_HIST_MAX][COTALPHA_HIST_MAX]
Definition: PixelResolutionHistograms.h:125
PixelResolutionHistograms::cotalphaBinWidth_
double cotalphaBinWidth_
Definition: PixelResolutionHistograms.h:85
PixelResolutionHistograms::cotbetaLowEdge_
double cotbetaLowEdge_
Definition: PixelResolutionHistograms.h:83
PixelResolutionHistograms::getGeneratorX
const SimpleHistogramGenerator * getGeneratorX(double cotalpha, double cotbeta, int qbin, bool singlex)
Definition: PixelResolutionHistograms.cc:500
PixelResolutionHistograms::cotalphaLowEdge_
double cotalphaLowEdge_
Definition: PixelResolutionHistograms.h:86
PixelResolutionHistograms::getGeneratorY
const SimpleHistogramGenerator * getGeneratorY(double cotalpha, double cotbeta, int qbin, bool singley)
Definition: PixelResolutionHistograms.cc:539
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
GetRecoTauVFromDQM_MC_cff.kk
kk
Definition: GetRecoTauVFromDQM_MC_cff.py:84
LOGDEBUG
#define LOGDEBUG
Definition: PixelResolutionHistograms.cc:37
PixelResolutionHistograms::resMultiPixelYGen_
SimpleHistogramGenerator * resMultiPixelYGen_[COTBETA_HIST_MAX][COTALPHA_HIST_MAX][QBIN_HIST_MAX]
Definition: PixelResolutionHistograms.h:123
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PixelResolutionHistograms::resMultiPixelYHist_
TH1F * resMultiPixelYHist_[COTBETA_HIST_MAX][COTALPHA_HIST_MAX][QBIN_HIST_MAX]
Definition: PixelResolutionHistograms.h:110
funct::true
true
Definition: Factorize.h:173
LOGINFO
#define LOGINFO
Definition: PixelResolutionHistograms.cc:39
trackerHitRTTI::single
Definition: trackerHitRTTI.h:10
PixelResolutionHistograms::cotalphaBins_
int cotalphaBins_
Definition: PixelResolutionHistograms.h:87
gpuVertexFinder::hist
__shared__ Hist hist
Definition: gpuClusterTracksDBSCAN.h:48
PixelResolutionHistograms::qbinHist_
TH1F * qbinHist_[COTBETA_HIST_MAX][COTALPHA_HIST_MAX]
Definition: PixelResolutionHistograms.h:112
SimpleHistogramGenerator.h
createfilelist.int
int
Definition: createfilelist.py:10
SimpleHistogramGenerator
Definition: SimpleHistogramGenerator.h:21
PVValHelper::dy
Definition: PVValidationHelpers.h:50
PixelResolutionHistograms::resMultiPixelXGen_
SimpleHistogramGenerator * resMultiPixelXGen_[COTBETA_HIST_MAX][COTALPHA_HIST_MAX][QBIN_HIST_MAX]
Definition: PixelResolutionHistograms.h:121
PixelResolutionHistograms::detType_
unsigned int detType_
Definition: PixelResolutionHistograms.h:79
PixelResolutionHistograms::resSinglePixelYHist_
TH1F * resSinglePixelYHist_[COTBETA_HIST_MAX][COTALPHA_HIST_MAX]
Definition: PixelResolutionHistograms.h:111
PixelResolutionHistograms.h
PixelResolutionHistograms::cotalphaAxis_
TAxis * cotalphaAxis_
Definition: PixelResolutionHistograms.h:94
PixelResolutionHistograms::resSinglePixelXHist_
TH1F * resSinglePixelXHist_[COTBETA_HIST_MAX][COTALPHA_HIST_MAX]
Definition: PixelResolutionHistograms.h:109
SimpleHistogramGenerator::SimpleHistogramGenerator
SimpleHistogramGenerator(TH1 *histo)
Definition: SimpleHistogramGenerator.cc:8
PixelResolutionHistograms::weOwnHistograms_
bool weOwnHistograms_
Definition: PixelResolutionHistograms.h:76
PixelResolutionHistograms::cotbetaAxis_
TAxis * cotbetaAxis_
Definition: PixelResolutionHistograms.h:93
findQualityFiles.jj
string jj
Definition: findQualityFiles.py:188
PixelResolutionHistograms::file_
std::unique_ptr< TFile > file_
Definition: PixelResolutionHistograms.h:115
PixelResolutionHistograms::resMultiPixelXHist_
TH1F * resMultiPixelXHist_[COTBETA_HIST_MAX][COTALPHA_HIST_MAX][QBIN_HIST_MAX]
Definition: PixelResolutionHistograms.h:108
PixelResolutionHistograms::resSinglePixelYGen_
SimpleHistogramGenerator * resSinglePixelYGen_[COTBETA_HIST_MAX][COTALPHA_HIST_MAX]
Definition: PixelResolutionHistograms.h:124
PixelResolutionHistograms::cotbetaBinWidth_
double cotbetaBinWidth_
Definition: PixelResolutionHistograms.h:82
cuy.ii
ii
Definition: cuy.py:590
PVValHelper::dx
Definition: PVValidationHelpers.h:49
PixelResolutionHistograms::Fill
int Fill(double dx, double dy, double cotalpha, double cotbeta, int qbin, int nxpix, int nypix)
Definition: PixelResolutionHistograms.cc:473
cmtomicron
const float cmtomicron
Definition: PixelResolutionHistograms.cc:54