CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
MaterialBudgetHcalHistos Class Reference

#include <MaterialBudgetHcalHistos.h>

Public Member Functions

void fillBeginJob (const cms::DDCompactView &)
 
void fillBeginJob (const DDCompactView &)
 
void fillEndTrack ()
 
void fillPerStep (const G4Step *)
 
void fillStartTrack (const G4Track *)
 
 MaterialBudgetHcalHistos (const edm::ParameterSet &p)
 
virtual ~MaterialBudgetHcalHistos ()
 

Private Member Functions

void book ()
 
void fillHisto (int ii)
 
void fillLayer ()
 
std::vector< double > getDDDArray (const std::string &str, const DDsvalues_type &sv)
 
std::vector< std::string > getNames (cms::DDFilteredView &fv)
 
std::vector< std::string > getNames (DDFilteredView &fv)
 
void hend ()
 
bool isItEC (std::string)
 
bool isItHF (const G4VTouchable *)
 
bool isSensitive (std::string)
 

Private Attributes

int binEta_
 
int binPhi_
 
double eta_
 
double etaHigh_
 
double etaHighMax_
 
double etaHighMin_
 
double etaLow_
 
double etaLowMax_
 
double etaLowMin_
 
double etaMaxP_
 
double etaMidMax_
 
double etaMidMin_
 
double etaMinP_
 
bool fillHistos_
 
std::vector< int > hfLevels_
 
std::vector< std::string > hfNames_
 
int id_
 
double intLen_
 
std::vector< double > intLength_
 
int layer_
 
std::vector< std::string > matList_
 
double maxEta_
 
TProfile * me100 [maxSet_]
 
TProfile2D * me1000 [maxSet_]
 
TProfile2D * me1100 [maxSet_]
 
TH2F * me1200 [maxSet_]
 
TH1F * me1300 [maxSet2_]
 
TH2F * me1400 [maxSet2_]
 
TProfile * me1500 [maxSet2_]
 
TProfile * me1600 [maxSet_]
 
TProfile * me1700 [maxSet_]
 
TProfile * me1800 [maxSet_]
 
TProfile * me1900 [maxSet_]
 
TProfile * me200 [maxSet_]
 
TProfile * me2000 [maxSet_]
 
TProfile * me2100 [maxSet_]
 
TProfile * me2200 [maxSet_]
 
TProfile * me2300 [maxSet_]
 
TProfile * me2400 [maxSet_]
 
TProfile * me300 [maxSet_]
 
TH1F * me400 [maxSet_]
 
TProfile * me500 [maxSet_]
 
TProfile * me600 [maxSet_]
 
TProfile * me700 [maxSet_]
 
TH1F * me800 [maxSet_]
 
TProfile2D * me900 [maxSet_]
 
int nlayHB_
 
int nlayHE_
 
int nlayHF_
 
int nlayHO_
 
double phi_
 
bool printSum_
 
double radLen_
 
std::vector< double > radLength_
 
std::vector< std::string > sensitiveEC_
 
std::vector< std::string > sensitives_
 
double stepLen_
 
std::vector< double > stepLength_
 
int steps_
 

Static Private Attributes

static const int maxSet2_ = 9
 
static const int maxSet_ = 25
 

Detailed Description

Definition at line 22 of file MaterialBudgetHcalHistos.h.

Constructor & Destructor Documentation

◆ MaterialBudgetHcalHistos()

MaterialBudgetHcalHistos::MaterialBudgetHcalHistos ( const edm::ParameterSet p)

Definition at line 18 of file MaterialBudgetHcalHistos.cc.

18  {
19  binEta_ = p.getUntrackedParameter<int>("NBinEta", 260);
20  binPhi_ = p.getUntrackedParameter<int>("NBinPhi", 180);
21  maxEta_ = p.getUntrackedParameter<double>("MaxEta", 5.2);
22  etaLow_ = p.getUntrackedParameter<double>("EtaLow", -5.2);
23  etaHigh_ = p.getUntrackedParameter<double>("EtaHigh", 5.2);
24  fillHistos_ = p.getUntrackedParameter<bool>("FillHisto", true);
25  printSum_ = p.getUntrackedParameter<bool>("PrintSummary", false);
26  etaMinP_ = p.getUntrackedParameter<double>("EtaMinP", 5.2);
27  etaMaxP_ = p.getUntrackedParameter<double>("EtaMaxP", 0.0);
28  etaLowMin_ = p.getUntrackedParameter<double>("EtaLowMin", 0.783);
29  etaLowMax_ = p.getUntrackedParameter<double>("EtaLowMax", 0.870);
30  etaMidMin_ = p.getUntrackedParameter<double>("EtaMidMin", 2.650);
31  etaMidMax_ = p.getUntrackedParameter<double>("EtaMidMax", 2.868);
32  etaHighMin_ = p.getUntrackedParameter<double>("EtaHighMin", 2.868);
33  etaHighMax_ = p.getUntrackedParameter<double>("EtaHighMax", 3.000);
34  edm::LogVerbatim("MaterialBudget") << "MaterialBudgetHcalHistos: FillHisto : " << fillHistos_ << " PrintSummary "
35  << printSum_ << " == Eta plot: NX " << binEta_ << " Range " << -maxEta_ << ":"
36  << maxEta_ << " Phi plot: NX " << binPhi_ << " Range " << -1._pi << ":" << 1._pi
37  << " (Eta limit " << etaLow_ << ":" << etaHigh_ << ")"
38  << " Eta range (" << etaLowMin_ << ":" << etaLowMax_ << "), (" << etaMidMin_ << ":"
39  << etaMidMax_ << "), (" << etaHighMin_ << ":" << etaHighMax_
40  << ") Debug for eta range " << etaMinP_ << ":" << etaMaxP_;
41  if (fillHistos_)
42  book();
43 }

References AlCaHLTBitMon_ParallelJobs::p.

◆ ~MaterialBudgetHcalHistos()

virtual MaterialBudgetHcalHistos::~MaterialBudgetHcalHistos ( )
inlinevirtual

Definition at line 25 of file MaterialBudgetHcalHistos.h.

25 { hend(); }

References hend().

Member Function Documentation

◆ book()

void MaterialBudgetHcalHistos::book ( )
private

Definition at line 302 of file MaterialBudgetHcalHistos.cc.

302  {
303  // Book histograms
305 
306  if (!tfile.isAvailable())
307  throw cms::Exception("BadConfig") << "TFileService unavailable: "
308  << "please add it to config file";
309 
310  double maxPhi = 1._pi;
311  edm::LogVerbatim("MaterialBudgetFull") << "MaterialBudgetHcalHistos: Booking user histos === with " << binEta_
312  << " bins in eta from " << -maxEta_ << " to " << maxEta_ << " and " << binPhi_
313  << " bins in phi from " << -maxPhi << " to " << maxPhi;
314 
315  std::string iter;
316  std::string range0 = "(" + std::to_string(etaMidMin_) + ":" + std::to_string(etaMidMax_) + ") ";
317  std::string range1 = "(" + std::to_string(etaHighMin_) + ":" + std::to_string(etaHighMax_) + ") ";
318  std::string range2 = "(" + std::to_string(etaLowMin_) + ":" + std::to_string(etaLowMax_) + ") ";
319  // total X0
320  for (int i = 0; i < maxSet_; i++) {
321  iter = std::to_string(i);
322  me100[i] = tfile->make<TProfile>(
323  std::to_string(i + 100).c_str(), ("MB(X0) prof Eta in region " + iter).c_str(), binEta_, -maxEta_, maxEta_);
324  me200[i] = tfile->make<TProfile>(
325  std::to_string(i + 200).c_str(), ("MB(L0) prof Eta in region " + iter).c_str(), binEta_, -maxEta_, maxEta_);
326  me300[i] = tfile->make<TProfile>(
327  std::to_string(i + 300).c_str(), ("MB(Step) prof Eta in region " + iter).c_str(), binEta_, -maxEta_, maxEta_);
328  me400[i] = tfile->make<TH1F>(
329  std::to_string(i + 400).c_str(), ("Eta in region " + iter).c_str(), binEta_, -maxEta_, maxEta_);
330  me500[i] = tfile->make<TProfile>(
331  std::to_string(i + 500).c_str(), ("MB(X0) prof Ph in region " + iter).c_str(), binPhi_, -maxPhi, maxPhi);
332  me600[i] = tfile->make<TProfile>(
333  std::to_string(i + 600).c_str(), ("MB(L0) prof Ph in region " + iter).c_str(), binPhi_, -maxPhi, maxPhi);
334  me700[i] = tfile->make<TProfile>(
335  std::to_string(i + 700).c_str(), ("MB(Step) prof Ph in region " + iter).c_str(), binPhi_, -maxPhi, maxPhi);
336  me800[i] =
337  tfile->make<TH1F>(std::to_string(i + 800).c_str(), ("Phi in region " + iter).c_str(), binPhi_, -maxPhi, maxPhi);
338  me900[i] = tfile->make<TProfile2D>(std::to_string(i + 900).c_str(),
339  ("MB(X0) prof Eta Phi in region " + iter).c_str(),
340  binEta_ / 2,
341  -maxEta_,
342  maxEta_,
343  binPhi_ / 2,
344  -maxPhi,
345  maxPhi);
346  me1000[i] = tfile->make<TProfile2D>(std::to_string(i + 1000).c_str(),
347  ("MB(L0) prof Eta Phi in region " + iter).c_str(),
348  binEta_ / 2,
349  -maxEta_,
350  maxEta_,
351  binPhi_ / 2,
352  -maxPhi,
353  maxPhi);
354  me1100[i] = tfile->make<TProfile2D>(std::to_string(i + 1100).c_str(),
355  ("MB(Step) prof Eta Phi in region " + iter).c_str(),
356  binEta_ / 2,
357  -maxEta_,
358  maxEta_,
359  binPhi_ / 2,
360  -maxPhi,
361  maxPhi);
362  me1200[i] = tfile->make<TH2F>(std::to_string(i + 1200).c_str(),
363  ("Eta vs Phi in region " + iter).c_str(),
364  binEta_ / 2,
365  -maxEta_,
366  maxEta_,
367  binPhi_ / 2,
368  -maxPhi,
369  maxPhi);
370  me1600[i] = tfile->make<TProfile>(std::to_string(i + 1600).c_str(),
371  ("MB(X0) prof Ph in region " + range0 + iter).c_str(),
372  binPhi_,
373  -maxPhi,
374  maxPhi);
375  me1700[i] = tfile->make<TProfile>(std::to_string(i + 1700).c_str(),
376  ("MB(L0) prof Ph in region " + range0 + iter).c_str(),
377  binPhi_,
378  -maxPhi,
379  maxPhi);
380  me1800[i] = tfile->make<TProfile>(std::to_string(i + 1800).c_str(),
381  ("MB(Step) prof Ph in region " + range0 + iter).c_str(),
382  binPhi_,
383  -maxPhi,
384  maxPhi);
385  me1900[i] = tfile->make<TProfile>(std::to_string(i + 1900).c_str(),
386  ("MB(X0) prof Ph in region " + range1 + iter).c_str(),
387  binPhi_,
388  -maxPhi,
389  maxPhi);
390  me2000[i] = tfile->make<TProfile>(std::to_string(i + 2000).c_str(),
391  ("MB(L0) prof Ph in region " + range1 + iter).c_str(),
392  binPhi_,
393  -maxPhi,
394  maxPhi);
395  me2100[i] = tfile->make<TProfile>(std::to_string(i + 2100).c_str(),
396  ("MB(Step) prof Ph in region " + range1 + iter).c_str(),
397  binPhi_,
398  -maxPhi,
399  maxPhi);
400  me2200[i] = tfile->make<TProfile>(std::to_string(i + 2200).c_str(),
401  ("MB(X0) prof Ph in region " + range2 + iter).c_str(),
402  binPhi_,
403  -maxPhi,
404  maxPhi);
405  me2300[i] = tfile->make<TProfile>(std::to_string(i + 2300).c_str(),
406  ("MB(L0) prof Ph in region " + range2 + iter).c_str(),
407  binPhi_,
408  -maxPhi,
409  maxPhi);
410  me2400[i] = tfile->make<TProfile>(std::to_string(i + 2400).c_str(),
411  ("MB(Step) prof Ph in region " + range2 + iter).c_str(),
412  binPhi_,
413  -maxPhi,
414  maxPhi);
415  }
416  for (int i = 0; i < maxSet2_; i++) {
417  iter = std::to_string(i);
418  me1300[i] = tfile->make<TH1F>(std::to_string(i + 1300).c_str(),
419  ("Events with layers Hit (0 all, 1 HB, ..) for " + iter).c_str(),
420  binEta_,
421  -maxEta_,
422  maxEta_);
423  me1400[i] = tfile->make<TH2F>(std::to_string(i + 1400).c_str(),
424  ("Eta vs Phi for layers hit in " + iter).c_str(),
425  binEta_ / 2,
426  -maxEta_,
427  maxEta_,
428  binPhi_ / 2,
429  -maxPhi,
430  maxPhi);
431  me1500[i] = tfile->make<TProfile>(std::to_string(i + 1500).c_str(),
432  ("Number of layers crossed (0 all, 1 HB, ..) for " + iter).c_str(),
433  binEta_,
434  -maxEta_,
435  maxEta_);
436  }
437 
438  edm::LogVerbatim("MaterialBudget") << "MaterialBudgetHcalHistos: Booking user histos done ===";
439 }

References mps_fire::i, HLT_FULL_cff::maxPhi, AlCaHLTBitMon_QueryRunRegistry::string, and compare::tfile.

◆ fillBeginJob() [1/2]

void MaterialBudgetHcalHistos::fillBeginJob ( const cms::DDCompactView cpv)

Definition at line 92 of file MaterialBudgetHcalHistos.cc.

92  {
93  if (fillHistos_) {
94  std::string attribute = "ReadOutName";
95  std::string value = "HcalHits";
96  const cms::DDFilter filter1(attribute, value);
97  cms::DDFilteredView fv1(cpv, filter1);
98  sensitives_ = getNames(fv1);
99  edm::LogVerbatim("MaterialBudgetFull") << "MaterialBudgetHcalHistos: Names to be tested for " << attribute << " = "
100  << value << " has " << sensitives_.size() << " elements";
101  for (unsigned int i = 0; i < sensitives_.size(); i++)
102  edm::LogVerbatim("MaterialBudgetFull")
103  << "MaterialBudgetHcalHistos: sensitives[" << i << "] = " << sensitives_[i];
104  attribute = "Volume";
105  value = "HF";
106  const cms::DDFilter filter2(attribute, value);
107  cms::DDFilteredView fv2(cpv, filter2);
108  std::vector<int> temp = fv2.get<std::vector<int> >("hf", "Levels");
109  hfNames_ = getNames(fv2);
110  edm::LogVerbatim("MaterialBudgetFull") << "MaterialBudgetHcalHistos: Names to be tested for " << attribute << " = "
111  << value << " has " << hfNames_.size() << " elements";
112  for (unsigned int i = 0; i < hfNames_.size(); i++) {
113  hfLevels_.push_back(temp[i]);
114  edm::LogVerbatim("MaterialBudgetFull")
115  << "MaterialBudgetHcalHistos: HF[" << i << "] = " << hfNames_[i] << " at level " << hfLevels_[i];
116  }
117 
118  const std::string ecalRO[2] = {"EcalHitsEB", "EcalHitsEE"};
119  attribute = "ReadOutName";
120  for (int k = 0; k < 2; k++) {
121  value = ecalRO[k];
122  const cms::DDFilter filter(attribute, value);
123  cms::DDFilteredView fv(cpv, filter);
124  std::vector<std::string> senstmp = getNames(fv);
125  edm::LogVerbatim("MaterialBudgetFull") << "MaterialBudgetHcalHistos: Names to be tested for " << attribute
126  << " = " << value << " has " << senstmp.size() << " elements";
127  for (unsigned int i = 0; i < senstmp.size(); i++)
128  sensitiveEC_.push_back(senstmp[i]);
129  }
130  for (unsigned int i = 0; i < sensitiveEC_.size(); i++)
131  edm::LogVerbatim("MaterialBudgetFull")
132  << "MaterialBudgetHcalHistos:sensitiveEC[" << i << "] = " << sensitiveEC_[i];
133  }
134 }

References ALCARECOTkAlBeamHalo_cff::filter, cms::DDFilteredView::get(), MsgTools::getNames(), mps_fire::i, dqmdumpme::k, AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.

◆ fillBeginJob() [2/2]

void MaterialBudgetHcalHistos::fillBeginJob ( const DDCompactView cpv)

Definition at line 45 of file MaterialBudgetHcalHistos.cc.

45  {
46  if (fillHistos_) {
47  std::string attribute = "ReadOutName";
48  std::string value = "HcalHits";
49  DDSpecificsMatchesValueFilter filter1{DDValue(attribute, value, 0)};
50  DDFilteredView fv1(cpv, filter1);
51  sensitives_ = getNames(fv1);
52  edm::LogVerbatim("MaterialBudgetFull") << "MaterialBudgetHcalHistos: Names to be tested for " << attribute << " = "
53  << value << " has " << sensitives_.size() << " elements";
54  for (unsigned int i = 0; i < sensitives_.size(); i++)
55  edm::LogVerbatim("MaterialBudgetFull")
56  << "MaterialBudgetHcalHistos: sensitives[" << i << "] = " << sensitives_[i];
57  attribute = "Volume";
58  value = "HF";
59  DDSpecificsMatchesValueFilter filter2{DDValue(attribute, value, 0)};
60  DDFilteredView fv2(cpv, filter2);
61  hfNames_ = getNames(fv2);
62  fv2.firstChild();
63  DDsvalues_type sv(fv2.mergedSpecifics());
64  std::vector<double> temp = getDDDArray("Levels", sv);
65  edm::LogVerbatim("MaterialBudgetFull") << "MaterialBudgetHcalHistos: Names to be tested for " << attribute << " = "
66  << value << " has " << hfNames_.size() << " elements";
67  for (unsigned int i = 0; i < hfNames_.size(); i++) {
68  int level = static_cast<int>(temp[i]);
69  hfLevels_.push_back(level);
70  edm::LogVerbatim("MaterialBudgetFull")
71  << "MaterialBudgetHcalHistos: HF[" << i << "] = " << hfNames_[i] << " at level " << hfLevels_[i];
72  }
73 
74  const std::string ecalRO[2] = {"EcalHitsEB", "EcalHitsEE"};
75  attribute = "ReadOutName";
76  for (int k = 0; k < 2; k++) {
77  value = ecalRO[k];
78  DDSpecificsMatchesValueFilter filter3{DDValue(attribute, value, 0)};
79  DDFilteredView fv3(cpv, filter3);
80  std::vector<std::string> senstmp = getNames(fv3);
81  edm::LogVerbatim("MaterialBudgetFull") << "MaterialBudgetHcalHistos: Names to be tested for " << attribute
82  << " = " << value << " has " << senstmp.size() << " elements";
83  for (unsigned int i = 0; i < senstmp.size(); i++)
84  sensitiveEC_.push_back(senstmp[i]);
85  }
86  for (unsigned int i = 0; i < sensitiveEC_.size(); i++)
87  edm::LogVerbatim("MaterialBudgetFull")
88  << "MaterialBudgetHcalHistos:sensitiveEC[" << i << "] = " << sensitiveEC_[i];
89  }
90 }

References DDFilteredView::firstChild(), MsgTools::getNames(), mps_fire::i, dqmdumpme::k, personalPlayback::level, DDFilteredView::mergedSpecifics(), AlCaHLTBitMon_QueryRunRegistry::string, pfDeepBoostedJetPreprocessParams_cfi::sv, and groupFilesInBlocks::temp.

◆ fillEndTrack()

void MaterialBudgetHcalHistos::fillEndTrack ( )

Definition at line 286 of file MaterialBudgetHcalHistos.cc.

286  {
287  if ((std::abs(eta_) >= etaMinP_) && (std::abs(eta_) <= etaMaxP_))
288  edm::LogVerbatim("MaterialBudget") << "Number of layers hit in HB:" << nlayHB_ << " HE:" << nlayHE_
289  << " HO:" << nlayHO_ << " HF:" << nlayHF_;
290  if (fillHistos_) {
291  fillHisto(maxSet_ - 1);
292  fillLayer();
293  }
294  if (printSum_) {
295  for (unsigned int ii = 0; ii < matList_.size(); ii++) {
296  edm::LogVerbatim("MaterialBudget") << matList_[ii] << "\t" << stepLength_[ii] << "\t" << radLength_[ii] << "\t"
297  << intLength_[ii];
298  }
299  }
300 }

References funct::abs(), and cuy::ii.

◆ fillHisto()

void MaterialBudgetHcalHistos::fillHisto ( int  ii)
private

Definition at line 441 of file MaterialBudgetHcalHistos.cc.

441  {
442  if ((std::abs(eta_) >= etaMinP_) && (std::abs(eta_) <= etaMaxP_))
443  edm::LogVerbatim("MaterialBudget") << "MaterialBudgetHcalHistos:FillHisto called with index " << ii
444  << " integrated step " << stepLen_ << " X0 " << radLen_ << " Lamda " << intLen_;
445 
446  if (ii >= 0 && ii < maxSet_) {
447  me100[ii]->Fill(eta_, radLen_);
448  me200[ii]->Fill(eta_, intLen_);
449  me300[ii]->Fill(eta_, stepLen_);
450  me400[ii]->Fill(eta_);
451 
452  if (eta_ >= etaLow_ && eta_ <= etaHigh_) {
453  me500[ii]->Fill(phi_, radLen_);
454  me600[ii]->Fill(phi_, intLen_);
455  me700[ii]->Fill(phi_, stepLen_);
456  me800[ii]->Fill(phi_);
457  }
458 
459  me900[ii]->Fill(eta_, phi_, radLen_);
460  me1000[ii]->Fill(eta_, phi_, intLen_);
461  me1100[ii]->Fill(eta_, phi_, stepLen_);
462  me1200[ii]->Fill(eta_, phi_);
463 
464  if ((std::abs(eta_) >= etaMidMin_) && (std::abs(eta_) <= etaMidMax_)) {
465  me1600[ii]->Fill(phi_, radLen_);
466  me1700[ii]->Fill(phi_, intLen_);
467  me1800[ii]->Fill(phi_, stepLen_);
468  }
469 
470  if ((std::abs(eta_) >= etaHighMin_) && (std::abs(eta_) <= etaHighMax_)) {
471  me1900[ii]->Fill(phi_, radLen_);
472  me2000[ii]->Fill(phi_, intLen_);
473  me2100[ii]->Fill(phi_, stepLen_);
474  }
475 
476  if ((std::abs(eta_) >= etaLowMin_) && (std::abs(eta_) <= etaLowMax_)) {
477  me2200[ii]->Fill(phi_, radLen_);
478  me2300[ii]->Fill(phi_, intLen_);
479  me2400[ii]->Fill(phi_, stepLen_);
480  }
481  }
482 }

References funct::abs(), and cuy::ii.

◆ fillLayer()

void MaterialBudgetHcalHistos::fillLayer ( )
private

Definition at line 484 of file MaterialBudgetHcalHistos.cc.

484  {
485  me1300[0]->Fill(eta_);
486  me1400[0]->Fill(eta_, phi_);
487  if (nlayHB_ > 0) {
488  me1300[1]->Fill(eta_);
489  me1400[1]->Fill(eta_, phi_);
490  }
491  if (nlayHB_ >= 16) {
492  me1300[2]->Fill(eta_);
493  me1400[2]->Fill(eta_, phi_);
494  }
495  if (nlayHE_ > 0) {
496  me1300[3]->Fill(eta_);
497  me1400[3]->Fill(eta_, phi_);
498  }
499  if (nlayHE_ >= 16) {
500  me1300[4]->Fill(eta_);
501  me1400[4]->Fill(eta_, phi_);
502  }
503  if (nlayHO_ > 0) {
504  me1300[5]->Fill(eta_);
505  me1400[5]->Fill(eta_, phi_);
506  }
507  if (nlayHO_ >= 2) {
508  me1300[6]->Fill(eta_);
509  me1400[6]->Fill(eta_, phi_);
510  }
511  if (nlayHF_ > 0) {
512  me1300[7]->Fill(eta_);
513  me1400[7]->Fill(eta_, phi_);
514  }
515  if (nlayHB_ > 0 || nlayHE_ > 0 || (nlayHF_ > 0 && std::abs(eta_) > 3.0)) {
516  me1300[8]->Fill(eta_);
517  me1400[8]->Fill(eta_, phi_);
518  }
519  me1500[0]->Fill(eta_, (double)(nlayHB_ + nlayHO_ + nlayHE_ + nlayHF_));
520  me1500[1]->Fill(eta_, (double)(nlayHB_));
521  me1500[2]->Fill(eta_, (double)(nlayHE_));
522  me1500[4]->Fill(eta_, (double)(nlayHF_));
523 }

References funct::abs().

◆ fillPerStep()

void MaterialBudgetHcalHistos::fillPerStep ( const G4Step *  aStep)

Definition at line 165 of file MaterialBudgetHcalHistos.cc.

165  {
166  G4Material* material = aStep->GetPreStepPoint()->GetMaterial();
167  double step = aStep->GetStepLength();
168  double radl = material->GetRadlen();
169  double intl = material->GetNuclearInterLength();
170  double density = convertUnitsTo(1._g_per_cm3, material->GetDensity());
171 
172  int idOld = id_;
173  const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
174  std::string name = touch->GetVolume(0)->GetName();
175  const std::string& matName = material->GetName();
176  if (printSum_) {
177  bool found = false;
178  for (unsigned int ii = 0; ii < matList_.size(); ii++) {
179  if (matList_[ii] == matName) {
180  stepLength_[ii] += step;
181  radLength_[ii] += (step / radl);
182  intLength_[ii] += (step / intl);
183  found = true;
184  break;
185  }
186  }
187  if (!found) {
188  matList_.push_back(matName);
189  stepLength_.push_back(step);
190  radLength_.push_back(step / radl);
191  intLength_.push_back(step / intl);
192  }
193  if ((std::abs(eta_) >= etaMinP_) && (std::abs(eta_) <= etaMaxP_))
194  edm::LogVerbatim("MaterialBudget") << "Volume " << name << " id " << id_ << ":" << idOld << " Step " << step
195  << " Material " << matName << " Old Length " << stepLen_ << " X0 "
196  << step / radl << ":" << radLen_ << " Lambda " << step / intl << ":"
197  << intLen_;
198  } else {
199  if ((std::abs(eta_) >= etaMinP_) && (std::abs(eta_) <= etaMaxP_))
200  edm::LogVerbatim("MaterialBudget") << "MaterialBudgetHcalHistos: Step at " << name << " id " << id_ << ":"
201  << idOld << " Length " << step << " in " << matName << " of density "
202  << density << " g/cc; Radiation Length " << radl << " mm; Interaction Length "
203  << intl << " mm\n Position "
204  << aStep->GetPreStepPoint()->GetPosition() << " Cylindrical R "
205  << aStep->GetPreStepPoint()->GetPosition().perp() << " Length (so far) "
206  << stepLen_ << " L/X0 " << step / radl << "/" << radLen_ << " L/Lambda "
207  << step / intl << "/" << intLen_;
208  }
209 
210  int det = 0, lay = 0;
211  double abseta = std::abs(eta_);
212  if (fillHistos_) {
213  if (isItEC(name)) {
214  det = 1;
215  lay = 1;
216  } else {
217  if (isSensitive(name)) {
218  if (isItHF(touch)) {
219  det = 5;
220  lay = 21;
221  if (lay != layer_)
222  ++nlayHF_;
223  } else {
224  det = (touch->GetReplicaNumber(1)) / 1000;
225  lay = (touch->GetReplicaNumber(0) / 10) % 100 + 3;
226  if (det == 4) {
227  if (abseta < 1.479)
228  lay = layer_ + 1;
229  else
230  lay--;
231  if (lay < 3)
232  lay = 3;
233  if (lay == layer_)
234  lay++;
235  if (lay > 20)
236  lay = 20;
237  if (lay != layer_)
238  ++nlayHE_;
239  } else if (lay != layer_) {
240  if (lay >= 20)
241  ++nlayHO_;
242  else
243  ++nlayHB_;
244  }
245  }
246  edm::LogVerbatim("MaterialBudgetFull") << "MaterialBudgetHcalHistos: Det " << det << " Layer " << lay << " Eta "
247  << eta_ << " Phi " << convertRadToDeg(phi_);
248  } else if (layer_ == 1) {
249  det = -1;
250  lay = 2;
251  }
252  }
253  if (det != 0) {
254  if (lay != layer_) {
255  id_ = lay;
256  layer_ = lay;
257  }
258  }
259 
260  if (id_ > idOld) {
261  if ((abseta >= etaMinP_) && (abseta <= etaMaxP_))
262  edm::LogVerbatim("MaterialBudget")
263  << "MaterialBudgetHcalHistos: Step at " << name << " calls filHisto with " << (id_ - 1);
264  fillHisto(id_ - 1);
265  }
266  }
267 
268  stepLen_ += step;
269  radLen_ += (step / radl);
270  intLen_ += (step / intl);
271  if (fillHistos_) {
272  if (id_ == 21) {
273  if (!isItHF(aStep->GetPostStepPoint()->GetTouchable())) {
274  if ((abseta >= etaMinP_) && (abseta <= etaMaxP_))
275  edm::LogVerbatim("MaterialBudget")
276  << "MaterialBudgetHcalHistos: After HF in " << name << ":"
277  << aStep->GetPostStepPoint()->GetTouchable()->GetVolume(0)->GetName() << " calls fillHisto with " << id_;
278  fillHisto(idOld);
279  ++id_;
280  layer_ = 0;
281  }
282  }
283  }
284 }

References funct::abs(), angle_units::operators::convertRadToDeg(), geant_units::operators::convertUnitsTo(), fastSimProducer_cff::density, newFWLiteAna::found, cuy::ii, sistrip::layer_, Skims_PA_cff::name, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ fillStartTrack()

void MaterialBudgetHcalHistos::fillStartTrack ( const G4Track *  aTrack)

Definition at line 136 of file MaterialBudgetHcalHistos.cc.

136  {
137  id_ = layer_ = steps_ = 0;
138  radLen_ = intLen_ = stepLen_ = 0;
139  nlayHB_ = nlayHE_ = nlayHF_ = nlayHO_ = 0;
140 
141  const G4ThreeVector& dir = aTrack->GetMomentum();
142  if (dir.theta() != 0) {
143  eta_ = dir.eta();
144  } else {
145  eta_ = -99;
146  }
147  phi_ = dir.phi();
148  double theEnergy = aTrack->GetTotalEnergy();
149  int theID = (int)(aTrack->GetDefinition()->GetPDGEncoding());
150 
151  if (printSum_) {
152  matList_.clear();
153  stepLength_.clear();
154  radLength_.clear();
155  intLength_.clear();
156  }
157 
158  if ((std::abs(eta_) >= etaMinP_) && (std::abs(eta_) <= etaMaxP_))
159  edm::LogVerbatim("MaterialBudget") << "MaterialBudgetHcalHistos: Track " << aTrack->GetTrackID() << " Code "
160  << theID << " Energy " << convertUnitsTo(1._GeV, theEnergy) << " GeV; Eta "
161  << eta_ << " Phi " << convertRadToDeg(phi_) << " PT "
162  << convertUnitsTo(1._GeV, dir.perp()) << " GeV *****";
163 }

References funct::abs(), angle_units::operators::convertRadToDeg(), geant_units::operators::convertUnitsTo(), DeadROC_duringRun::dir, createfilelist::int, and sistrip::layer_.

◆ getDDDArray()

std::vector< double > MaterialBudgetHcalHistos::getDDDArray ( const std::string &  str,
const DDsvalues_type sv 
)
private

Definition at line 558 of file MaterialBudgetHcalHistos.cc.

558  {
559  edm::LogVerbatim("MaterialBudgetFull") << "MaterialBudgetHcalHistos:getDDDArray called for " << str;
560  DDValue value(str);
561  if (DDfetch(&sv, value)) {
562  edm::LogVerbatim("MaterialBudgetFull") << value;
563  const std::vector<double>& fvec = value.doubles();
564  int nval = fvec.size();
565  if (nval < 1) {
566  throw cms::Exception("MaterialBudgetHcalHistos") << "nval = " << nval << " < 1 for array " << str << "\n";
567  }
568 
569  return fvec;
570  } else {
571  throw cms::Exception("MaterialBudgetHcalHistos") << "cannot get array " << str << "\n";
572  }
573 }

References DDfetch(), Exception, str, pfDeepBoostedJetPreprocessParams_cfi::sv, and relativeConstraints::value.

◆ getNames() [1/2]

std::vector< std::string > MaterialBudgetHcalHistos::getNames ( cms::DDFilteredView fv)
private

Definition at line 542 of file MaterialBudgetHcalHistos.cc.

542  {
543  std::vector<std::string> tmp;
544  const std::vector<std::string> notIn = {
545  "CALO", "HCal", "MBBTL", "MBBTR", "MBBTC", "MBAT", "MBBT_R1M", "MBBT_R1P", "VCAL", "HVQF"};
546  while (fv.firstChild()) {
547  const std::string n{fv.name().data(), fv.name().size()};
548  if (std::find(notIn.begin(), notIn.end(), n) == notIn.end()) {
549  std::string::size_type pos = n.find(':');
550  const std::string namx = (pos == std::string::npos) ? n : std::string(n, pos + 1, n.size() - 1);
551  if (std::find(tmp.begin(), tmp.end(), namx) == tmp.end())
552  tmp.push_back(namx);
553  }
554  }
555  return tmp;
556 }

References spr::find(), cms::DDFilteredView::firstChild(), dqmiodumpmetadata::n, cms::DDFilteredView::name(), AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.

◆ getNames() [2/2]

std::vector< std::string > MaterialBudgetHcalHistos::getNames ( DDFilteredView fv)
private

Definition at line 529 of file MaterialBudgetHcalHistos.cc.

529  {
530  std::vector<std::string> tmp;
531  bool dodet = fv.firstChild();
532  while (dodet) {
533  const DDLogicalPart& log = fv.logicalPart();
534  std::string namx = log.name().name();
535  if (std::find(tmp.begin(), tmp.end(), namx) == tmp.end())
536  tmp.push_back(namx);
537  dodet = fv.next();
538  }
539  return tmp;
540 }

References spr::find(), DDFilteredView::firstChild(), dqm-mbProfile::log, DDFilteredView::logicalPart(), DDFilteredView::next(), AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.

◆ hend()

void MaterialBudgetHcalHistos::hend ( )
private

Definition at line 525 of file MaterialBudgetHcalHistos.cc.

525  {
526  edm::LogVerbatim("MaterialBudget") << "MaterialBudgetHcalHistos: Save user histos ===";
527 }

Referenced by ~MaterialBudgetHcalHistos().

◆ isItEC()

bool MaterialBudgetHcalHistos::isItEC ( std::string  name)
private

Definition at line 597 of file MaterialBudgetHcalHistos.cc.

597  {
598  std::vector<std::string>::const_iterator it = sensitiveEC_.begin();
599  std::vector<std::string>::const_iterator itEnd = sensitiveEC_.end();
600  for (; it != itEnd; ++it)
601  if (name == *it)
602  return true;
603  return false;
604 }

References Skims_PA_cff::name.

◆ isItHF()

bool MaterialBudgetHcalHistos::isItHF ( const G4VTouchable *  touch)
private

Definition at line 584 of file MaterialBudgetHcalHistos.cc.

584  {
585  int levels = ((touch->GetHistoryDepth()) + 1);
586  for (unsigned int it = 0; it < hfNames_.size(); it++) {
587  if (levels >= hfLevels_[it]) {
588  std::string name = touch->GetVolume(levels - hfLevels_[it])->GetName();
589  if (name == hfNames_[it]) {
590  return true;
591  }
592  }
593  }
594  return false;
595 }

References jets_cff::levels, Skims_PA_cff::name, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ isSensitive()

bool MaterialBudgetHcalHistos::isSensitive ( std::string  name)
private

Definition at line 575 of file MaterialBudgetHcalHistos.cc.

575  {
576  std::vector<std::string>::const_iterator it = sensitives_.begin();
577  std::vector<std::string>::const_iterator itEnd = sensitives_.end();
578  for (; it != itEnd; ++it)
579  if (name == *it)
580  return true;
581  return false;
582 }

References Skims_PA_cff::name.

Member Data Documentation

◆ binEta_

int MaterialBudgetHcalHistos::binEta_
private

Definition at line 50 of file MaterialBudgetHcalHistos.h.

◆ binPhi_

int MaterialBudgetHcalHistos::binPhi_
private

Definition at line 50 of file MaterialBudgetHcalHistos.h.

◆ eta_

double MaterialBudgetHcalHistos::eta_
private

Definition at line 66 of file MaterialBudgetHcalHistos.h.

◆ etaHigh_

double MaterialBudgetHcalHistos::etaHigh_
private

Definition at line 51 of file MaterialBudgetHcalHistos.h.

◆ etaHighMax_

double MaterialBudgetHcalHistos::etaHighMax_
private

Definition at line 52 of file MaterialBudgetHcalHistos.h.

◆ etaHighMin_

double MaterialBudgetHcalHistos::etaHighMin_
private

Definition at line 52 of file MaterialBudgetHcalHistos.h.

◆ etaLow_

double MaterialBudgetHcalHistos::etaLow_
private

Definition at line 51 of file MaterialBudgetHcalHistos.h.

◆ etaLowMax_

double MaterialBudgetHcalHistos::etaLowMax_
private

Definition at line 51 of file MaterialBudgetHcalHistos.h.

◆ etaLowMin_

double MaterialBudgetHcalHistos::etaLowMin_
private

Definition at line 51 of file MaterialBudgetHcalHistos.h.

◆ etaMaxP_

double MaterialBudgetHcalHistos::etaMaxP_
private

Definition at line 52 of file MaterialBudgetHcalHistos.h.

◆ etaMidMax_

double MaterialBudgetHcalHistos::etaMidMax_
private

Definition at line 52 of file MaterialBudgetHcalHistos.h.

◆ etaMidMin_

double MaterialBudgetHcalHistos::etaMidMin_
private

Definition at line 51 of file MaterialBudgetHcalHistos.h.

◆ etaMinP_

double MaterialBudgetHcalHistos::etaMinP_
private

Definition at line 52 of file MaterialBudgetHcalHistos.h.

◆ fillHistos_

bool MaterialBudgetHcalHistos::fillHistos_
private

Definition at line 49 of file MaterialBudgetHcalHistos.h.

◆ hfLevels_

std::vector<int> MaterialBudgetHcalHistos::hfLevels_
private

Definition at line 48 of file MaterialBudgetHcalHistos.h.

◆ hfNames_

std::vector<std::string> MaterialBudgetHcalHistos::hfNames_
private

Definition at line 47 of file MaterialBudgetHcalHistos.h.

◆ id_

int MaterialBudgetHcalHistos::id_
private

Definition at line 64 of file MaterialBudgetHcalHistos.h.

◆ intLen_

double MaterialBudgetHcalHistos::intLen_
private

Definition at line 65 of file MaterialBudgetHcalHistos.h.

◆ intLength_

std::vector<double> MaterialBudgetHcalHistos::intLength_
private

Definition at line 54 of file MaterialBudgetHcalHistos.h.

◆ layer_

int MaterialBudgetHcalHistos::layer_
private

Definition at line 64 of file MaterialBudgetHcalHistos.h.

◆ matList_

std::vector<std::string> MaterialBudgetHcalHistos::matList_
private

Definition at line 53 of file MaterialBudgetHcalHistos.h.

◆ maxEta_

double MaterialBudgetHcalHistos::maxEta_
private

Definition at line 51 of file MaterialBudgetHcalHistos.h.

◆ maxSet2_

const int MaterialBudgetHcalHistos::maxSet2_ = 9
staticprivate

Definition at line 46 of file MaterialBudgetHcalHistos.h.

◆ maxSet_

const int MaterialBudgetHcalHistos::maxSet_ = 25
staticprivate

Definition at line 46 of file MaterialBudgetHcalHistos.h.

◆ me100

TProfile* MaterialBudgetHcalHistos::me100[maxSet_]
private

Definition at line 57 of file MaterialBudgetHcalHistos.h.

◆ me1000

TProfile2D * MaterialBudgetHcalHistos::me1000[maxSet_]
private

Definition at line 63 of file MaterialBudgetHcalHistos.h.

◆ me1100

TProfile2D * MaterialBudgetHcalHistos::me1100[maxSet_]
private

Definition at line 63 of file MaterialBudgetHcalHistos.h.

◆ me1200

TH2F* MaterialBudgetHcalHistos::me1200[maxSet_]
private

Definition at line 56 of file MaterialBudgetHcalHistos.h.

◆ me1300

TH1F * MaterialBudgetHcalHistos::me1300[maxSet2_]
private

Definition at line 55 of file MaterialBudgetHcalHistos.h.

◆ me1400

TH2F * MaterialBudgetHcalHistos::me1400[maxSet2_]
private

Definition at line 56 of file MaterialBudgetHcalHistos.h.

◆ me1500

TProfile* MaterialBudgetHcalHistos::me1500[maxSet2_]
private

Definition at line 59 of file MaterialBudgetHcalHistos.h.

◆ me1600

TProfile* MaterialBudgetHcalHistos::me1600[maxSet_]
private

Definition at line 60 of file MaterialBudgetHcalHistos.h.

◆ me1700

TProfile * MaterialBudgetHcalHistos::me1700[maxSet_]
private

Definition at line 60 of file MaterialBudgetHcalHistos.h.

◆ me1800

TProfile * MaterialBudgetHcalHistos::me1800[maxSet_]
private

Definition at line 60 of file MaterialBudgetHcalHistos.h.

◆ me1900

TProfile* MaterialBudgetHcalHistos::me1900[maxSet_]
private

Definition at line 61 of file MaterialBudgetHcalHistos.h.

◆ me200

TProfile * MaterialBudgetHcalHistos::me200[maxSet_]
private

Definition at line 57 of file MaterialBudgetHcalHistos.h.

◆ me2000

TProfile * MaterialBudgetHcalHistos::me2000[maxSet_]
private

Definition at line 61 of file MaterialBudgetHcalHistos.h.

◆ me2100

TProfile * MaterialBudgetHcalHistos::me2100[maxSet_]
private

Definition at line 61 of file MaterialBudgetHcalHistos.h.

◆ me2200

TProfile* MaterialBudgetHcalHistos::me2200[maxSet_]
private

Definition at line 62 of file MaterialBudgetHcalHistos.h.

◆ me2300

TProfile * MaterialBudgetHcalHistos::me2300[maxSet_]
private

Definition at line 62 of file MaterialBudgetHcalHistos.h.

◆ me2400

TProfile * MaterialBudgetHcalHistos::me2400[maxSet_]
private

Definition at line 62 of file MaterialBudgetHcalHistos.h.

◆ me300

TProfile * MaterialBudgetHcalHistos::me300[maxSet_]
private

Definition at line 57 of file MaterialBudgetHcalHistos.h.

◆ me400

TH1F* MaterialBudgetHcalHistos::me400[maxSet_]
private

Definition at line 55 of file MaterialBudgetHcalHistos.h.

◆ me500

TProfile* MaterialBudgetHcalHistos::me500[maxSet_]
private

Definition at line 58 of file MaterialBudgetHcalHistos.h.

◆ me600

TProfile * MaterialBudgetHcalHistos::me600[maxSet_]
private

Definition at line 58 of file MaterialBudgetHcalHistos.h.

◆ me700

TProfile * MaterialBudgetHcalHistos::me700[maxSet_]
private

Definition at line 58 of file MaterialBudgetHcalHistos.h.

◆ me800

TH1F * MaterialBudgetHcalHistos::me800[maxSet_]
private

Definition at line 55 of file MaterialBudgetHcalHistos.h.

◆ me900

TProfile2D* MaterialBudgetHcalHistos::me900[maxSet_]
private

Definition at line 63 of file MaterialBudgetHcalHistos.h.

◆ nlayHB_

int MaterialBudgetHcalHistos::nlayHB_
private

Definition at line 67 of file MaterialBudgetHcalHistos.h.

◆ nlayHE_

int MaterialBudgetHcalHistos::nlayHE_
private

Definition at line 67 of file MaterialBudgetHcalHistos.h.

◆ nlayHF_

int MaterialBudgetHcalHistos::nlayHF_
private

Definition at line 67 of file MaterialBudgetHcalHistos.h.

◆ nlayHO_

int MaterialBudgetHcalHistos::nlayHO_
private

Definition at line 67 of file MaterialBudgetHcalHistos.h.

◆ phi_

double MaterialBudgetHcalHistos::phi_
private

Definition at line 66 of file MaterialBudgetHcalHistos.h.

◆ printSum_

bool MaterialBudgetHcalHistos::printSum_
private

Definition at line 49 of file MaterialBudgetHcalHistos.h.

◆ radLen_

double MaterialBudgetHcalHistos::radLen_
private

Definition at line 65 of file MaterialBudgetHcalHistos.h.

◆ radLength_

std::vector<double> MaterialBudgetHcalHistos::radLength_
private

Definition at line 54 of file MaterialBudgetHcalHistos.h.

◆ sensitiveEC_

std::vector<std::string> MaterialBudgetHcalHistos::sensitiveEC_
private

Definition at line 47 of file MaterialBudgetHcalHistos.h.

◆ sensitives_

std::vector<std::string> MaterialBudgetHcalHistos::sensitives_
private

Definition at line 47 of file MaterialBudgetHcalHistos.h.

◆ stepLen_

double MaterialBudgetHcalHistos::stepLen_
private

Definition at line 65 of file MaterialBudgetHcalHistos.h.

◆ stepLength_

std::vector<double> MaterialBudgetHcalHistos::stepLength_
private

Definition at line 54 of file MaterialBudgetHcalHistos.h.

◆ steps_

int MaterialBudgetHcalHistos::steps_
private

Definition at line 64 of file MaterialBudgetHcalHistos.h.

personalPlayback.level
level
Definition: personalPlayback.py:22
MaterialBudgetHcalHistos::me2100
TProfile * me2100[maxSet_]
Definition: MaterialBudgetHcalHistos.h:61
MaterialBudgetHcalHistos::etaMidMin_
double etaMidMin_
Definition: MaterialBudgetHcalHistos.h:51
MaterialBudgetHcalHistos::me1800
TProfile * me1800[maxSet_]
Definition: MaterialBudgetHcalHistos.h:60
MaterialBudgetHcalHistos::me400
TH1F * me400[maxSet_]
Definition: MaterialBudgetHcalHistos.h:55
mps_fire.i
i
Definition: mps_fire.py:428
MaterialBudgetHcalHistos::me2300
TProfile * me2300[maxSet_]
Definition: MaterialBudgetHcalHistos.h:62
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
MaterialBudgetHcalHistos::me800
TH1F * me800[maxSet_]
Definition: MaterialBudgetHcalHistos.h:55
step
step
Definition: StallMonitor.cc:94
MaterialBudgetHcalHistos::me1100
TProfile2D * me1100[maxSet_]
Definition: MaterialBudgetHcalHistos.h:63
MaterialBudgetHcalHistos::getNames
std::vector< std::string > getNames(DDFilteredView &fv)
Definition: MaterialBudgetHcalHistos.cc:529
MaterialBudgetHcalHistos::me300
TProfile * me300[maxSet_]
Definition: MaterialBudgetHcalHistos.h:57
angle_units::operators::convertRadToDeg
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
geant_units::operators::convertUnitsTo
constexpr NumType convertUnitsTo(long double desiredUnits, NumType val)
Definition: GeantUnits.h:87
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
MaterialBudgetHcalHistos::sensitiveEC_
std::vector< std::string > sensitiveEC_
Definition: MaterialBudgetHcalHistos.h:47
DDFilteredView::logicalPart
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
Definition: DDFilteredView.cc:16
pos
Definition: PixelAliasList.h:18
MaterialBudgetHcalHistos::etaLowMin_
double etaLowMin_
Definition: MaterialBudgetHcalHistos.h:51
MaterialBudgetHcalHistos::me700
TProfile * me700[maxSet_]
Definition: MaterialBudgetHcalHistos.h:58
MaterialBudgetHcalHistos::hfLevels_
std::vector< int > hfLevels_
Definition: MaterialBudgetHcalHistos.h:48
MaterialBudgetHcalHistos::nlayHO_
int nlayHO_
Definition: MaterialBudgetHcalHistos.h:67
MaterialBudgetHcalHistos::hend
void hend()
Definition: MaterialBudgetHcalHistos.cc:525
MaterialBudgetHcalHistos::etaMaxP_
double etaMaxP_
Definition: MaterialBudgetHcalHistos.h:52
MaterialBudgetHcalHistos::isItHF
bool isItHF(const G4VTouchable *)
Definition: MaterialBudgetHcalHistos.cc:584
cms::DDFilteredView
Definition: DDFilteredView.h:70
MaterialBudgetHcalHistos::etaLow_
double etaLow_
Definition: MaterialBudgetHcalHistos.h:51
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
newFWLiteAna.found
found
Definition: newFWLiteAna.py:118
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
MaterialBudgetHcalHistos::nlayHB_
int nlayHB_
Definition: MaterialBudgetHcalHistos.h:67
MaterialBudgetHcalHistos::printSum_
bool printSum_
Definition: MaterialBudgetHcalHistos.h:49
cms::DDFilteredView::name
std::string_view name() const
Definition: DDFilteredView.cc:853
HLT_FULL_cff.maxPhi
maxPhi
Definition: HLT_FULL_cff.py:52976
MaterialBudgetHcalHistos::layer_
int layer_
Definition: MaterialBudgetHcalHistos.h:64
MaterialBudgetHcalHistos::book
void book()
Definition: MaterialBudgetHcalHistos.cc:302
MaterialBudgetHcalHistos::fillHisto
void fillHisto(int ii)
Definition: MaterialBudgetHcalHistos.cc:441
MaterialBudgetHcalHistos::nlayHE_
int nlayHE_
Definition: MaterialBudgetHcalHistos.h:67
trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
DDFilteredView::firstChild
bool firstChild()
set the current node to the first child ...
Definition: DDFilteredView.cc:86
cms::DDFilter
Definition: DDFilteredView.h:59
MaterialBudgetHcalHistos::maxSet2_
static const int maxSet2_
Definition: MaterialBudgetHcalHistos.h:46
MaterialBudgetHcalHistos::me2200
TProfile * me2200[maxSet_]
Definition: MaterialBudgetHcalHistos.h:62
MaterialBudgetHcalHistos::stepLength_
std::vector< double > stepLength_
Definition: MaterialBudgetHcalHistos.h:54
MaterialBudgetHcalHistos::me2400
TProfile * me2400[maxSet_]
Definition: MaterialBudgetHcalHistos.h:62
MaterialBudgetHcalHistos::radLen_
double radLen_
Definition: MaterialBudgetHcalHistos.h:65
DDFilteredView::next
bool next()
set current node to the next node in the filtered tree
Definition: DDFilteredView.cc:67
tfile
Definition: tfile.py:1
pfDeepBoostedJetPreprocessParams_cfi.sv
sv
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:352
MaterialBudgetHcalHistos::nlayHF_
int nlayHF_
Definition: MaterialBudgetHcalHistos.h:67
MaterialBudgetHcalHistos::stepLen_
double stepLen_
Definition: MaterialBudgetHcalHistos.h:65
str
#define str(s)
Definition: TestProcessor.cc:51
MaterialBudgetHcalHistos::me1300
TH1F * me1300[maxSet2_]
Definition: MaterialBudgetHcalHistos.h:55
cms::DDFilteredView::firstChild
bool firstChild()
set the current node to the first child
Definition: DDFilteredView.cc:268
MaterialBudgetHcalHistos::etaHighMax_
double etaHighMax_
Definition: MaterialBudgetHcalHistos.h:52
DDfetch
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
Definition: DDsvalues.cc:79
MaterialBudgetHcalHistos::me1000
TProfile2D * me1000[maxSet_]
Definition: MaterialBudgetHcalHistos.h:63
MaterialBudgetHcalHistos::phi_
double phi_
Definition: MaterialBudgetHcalHistos.h:66
dqmdumpme.k
k
Definition: dqmdumpme.py:60
MaterialBudgetHcalHistos::maxSet_
static const int maxSet_
Definition: MaterialBudgetHcalHistos.h:46
ALCARECOTkAlBeamHalo_cff.filter
filter
Definition: ALCARECOTkAlBeamHalo_cff.py:27
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MaterialBudgetHcalHistos::intLen_
double intLen_
Definition: MaterialBudgetHcalHistos.h:65
MaterialBudgetHcalHistos::etaHighMin_
double etaHighMin_
Definition: MaterialBudgetHcalHistos.h:52
MaterialBudgetHcalHistos::etaHigh_
double etaHigh_
Definition: MaterialBudgetHcalHistos.h:51
MaterialBudgetHcalHistos::binEta_
int binEta_
Definition: MaterialBudgetHcalHistos.h:50
MaterialBudgetHcalHistos::etaLowMax_
double etaLowMax_
Definition: MaterialBudgetHcalHistos.h:51
MaterialBudgetHcalHistos::fillLayer
void fillLayer()
Definition: MaterialBudgetHcalHistos.cc:484
MaterialBudgetHcalHistos::me1900
TProfile * me1900[maxSet_]
Definition: MaterialBudgetHcalHistos.h:61
MaterialBudgetHcalHistos::intLength_
std::vector< double > intLength_
Definition: MaterialBudgetHcalHistos.h:54
MaterialBudgetHcalHistos::isItEC
bool isItEC(std::string)
Definition: MaterialBudgetHcalHistos.cc:597
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
MaterialBudgetHcalHistos::me600
TProfile * me600[maxSet_]
Definition: MaterialBudgetHcalHistos.h:58
edm::Service< TFileService >
createfilelist.int
int
Definition: createfilelist.py:10
MaterialBudgetHcalHistos::me200
TProfile * me200[maxSet_]
Definition: MaterialBudgetHcalHistos.h:57
value
Definition: value.py:1
MaterialBudgetHcalHistos::me1700
TProfile * me1700[maxSet_]
Definition: MaterialBudgetHcalHistos.h:60
MaterialBudgetHcalHistos::etaMinP_
double etaMinP_
Definition: MaterialBudgetHcalHistos.h:52
MaterialBudgetHcalHistos::radLength_
std::vector< double > radLength_
Definition: MaterialBudgetHcalHistos.h:54
compare.tfile
tfile
Definition: compare.py:325
MaterialBudgetHcalHistos::me1500
TProfile * me1500[maxSet2_]
Definition: MaterialBudgetHcalHistos.h:59
MaterialBudgetHcalHistos::etaMidMax_
double etaMidMax_
Definition: MaterialBudgetHcalHistos.h:52
DDValue
Definition: DDValue.h:21
MaterialBudgetHcalHistos::id_
int id_
Definition: MaterialBudgetHcalHistos.h:64
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
relativeConstraints.value
value
Definition: relativeConstraints.py:53
Exception
Definition: hltDiff.cc:246
MaterialBudgetHcalHistos::me2000
TProfile * me2000[maxSet_]
Definition: MaterialBudgetHcalHistos.h:61
MaterialBudgetHcalHistos::sensitives_
std::vector< std::string > sensitives_
Definition: MaterialBudgetHcalHistos.h:47
MaterialBudgetHcalHistos::fillHistos_
bool fillHistos_
Definition: MaterialBudgetHcalHistos.h:49
MaterialBudgetHcalHistos::me900
TProfile2D * me900[maxSet_]
Definition: MaterialBudgetHcalHistos.h:63
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
DDSpecificsMatchesValueFilter
Definition: DDFilter.h:70
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
DDFilteredView
Definition: DDFilteredView.h:20
MaterialBudgetHcalHistos::isSensitive
bool isSensitive(std::string)
Definition: MaterialBudgetHcalHistos.cc:575
cms::Exception
Definition: Exception.h:70
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
MaterialBudgetHcalHistos::me1200
TH2F * me1200[maxSet_]
Definition: MaterialBudgetHcalHistos.h:56
MaterialBudgetHcalHistos::me1600
TProfile * me1600[maxSet_]
Definition: MaterialBudgetHcalHistos.h:60
MaterialBudgetHcalHistos::me500
TProfile * me500[maxSet_]
Definition: MaterialBudgetHcalHistos.h:58
edm::Log
Definition: MessageLogger.h:70
DDsvalues_type
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
Definition: DDsvalues.h:12
MaterialBudgetHcalHistos::me1400
TH2F * me1400[maxSet2_]
Definition: MaterialBudgetHcalHistos.h:56
cuy.ii
ii
Definition: cuy.py:590
MaterialBudgetHcalHistos::getDDDArray
std::vector< double > getDDDArray(const std::string &str, const DDsvalues_type &sv)
Definition: MaterialBudgetHcalHistos.cc:558
MaterialBudgetHcalHistos::steps_
int steps_
Definition: MaterialBudgetHcalHistos.h:64
jets_cff.levels
levels
Definition: jets_cff.py:21
MaterialBudgetHcalHistos::matList_
std::vector< std::string > matList_
Definition: MaterialBudgetHcalHistos.h:53
fastSimProducer_cff.density
density
Definition: fastSimProducer_cff.py:61
MaterialBudgetHcalHistos::maxEta_
double maxEta_
Definition: MaterialBudgetHcalHistos.h:51
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23
MaterialBudgetHcalHistos::me100
TProfile * me100[maxSet_]
Definition: MaterialBudgetHcalHistos.h:57
MaterialBudgetHcalHistos::binPhi_
int binPhi_
Definition: MaterialBudgetHcalHistos.h:50
MaterialBudgetHcalHistos::hfNames_
std::vector< std::string > hfNames_
Definition: MaterialBudgetHcalHistos.h:47
MaterialBudgetHcalHistos::eta_
double eta_
Definition: MaterialBudgetHcalHistos.h:66