|
|
#include <MaterialBudgetHcalHistos.h>
Definition at line 22 of file MaterialBudgetHcalHistos.h.
◆ MaterialBudgetHcalHistos()
Definition at line 18 of file MaterialBudgetHcalHistos.cc.
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);
36 <<
maxEta_ <<
" Phi plot: NX " <<
binPhi_ <<
" Range " << -1._pi <<
":" << 1._pi
References AlCaHLTBitMon_ParallelJobs::p.
◆ ~MaterialBudgetHcalHistos()
virtual MaterialBudgetHcalHistos::~MaterialBudgetHcalHistos |
( |
| ) |
|
|
inlinevirtual |
◆ book()
void MaterialBudgetHcalHistos::book |
( |
| ) |
|
|
private |
Definition at line 302 of file MaterialBudgetHcalHistos.cc.
306 if (!
tfile.isAvailable())
308 <<
"please add it to config file";
321 iter = std::to_string(
i);
323 std::to_string(
i + 100).c_str(), (
"MB(X0) prof Eta in region " + iter).c_str(),
binEta_, -
maxEta_,
maxEta_);
325 std::to_string(
i + 200).c_str(), (
"MB(L0) prof Eta in region " + iter).c_str(),
binEta_, -
maxEta_,
maxEta_);
327 std::to_string(
i + 300).c_str(), (
"MB(Step) prof Eta in region " + iter).c_str(),
binEta_, -
maxEta_,
maxEta_);
331 std::to_string(
i + 500).c_str(), (
"MB(X0) prof Ph in region " + iter).c_str(),
binPhi_, -
maxPhi,
maxPhi);
333 std::to_string(
i + 600).c_str(), (
"MB(L0) prof Ph in region " + iter).c_str(),
binPhi_, -
maxPhi,
maxPhi);
335 std::to_string(
i + 700).c_str(), (
"MB(Step) prof Ph 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(),
346 me1000[
i] =
tfile->make<TProfile2D>(std::to_string(
i + 1000).c_str(),
347 (
"MB(L0) prof Eta Phi in region " + iter).c_str(),
354 me1100[
i] =
tfile->make<TProfile2D>(std::to_string(
i + 1100).c_str(),
355 (
"MB(Step) prof Eta Phi in region " + iter).c_str(),
362 me1200[
i] =
tfile->make<TH2F>(std::to_string(
i + 1200).c_str(),
363 (
"Eta vs Phi in region " + iter).c_str(),
370 me1600[
i] =
tfile->make<TProfile>(std::to_string(
i + 1600).c_str(),
371 (
"MB(X0) prof Ph in region " + range0 + iter).c_str(),
375 me1700[
i] =
tfile->make<TProfile>(std::to_string(
i + 1700).c_str(),
376 (
"MB(L0) prof Ph in region " + range0 + iter).c_str(),
380 me1800[
i] =
tfile->make<TProfile>(std::to_string(
i + 1800).c_str(),
381 (
"MB(Step) prof Ph in region " + range0 + iter).c_str(),
385 me1900[
i] =
tfile->make<TProfile>(std::to_string(
i + 1900).c_str(),
386 (
"MB(X0) prof Ph in region " + range1 + iter).c_str(),
390 me2000[
i] =
tfile->make<TProfile>(std::to_string(
i + 2000).c_str(),
391 (
"MB(L0) prof Ph in region " + range1 + iter).c_str(),
395 me2100[
i] =
tfile->make<TProfile>(std::to_string(
i + 2100).c_str(),
396 (
"MB(Step) prof Ph in region " + range1 + iter).c_str(),
400 me2200[
i] =
tfile->make<TProfile>(std::to_string(
i + 2200).c_str(),
401 (
"MB(X0) prof Ph in region " + range2 + iter).c_str(),
405 me2300[
i] =
tfile->make<TProfile>(std::to_string(
i + 2300).c_str(),
406 (
"MB(L0) prof Ph in region " + range2 + iter).c_str(),
410 me2400[
i] =
tfile->make<TProfile>(std::to_string(
i + 2400).c_str(),
411 (
"MB(Step) prof Ph in region " + range2 + iter).c_str(),
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(),
423 me1400[
i] =
tfile->make<TH2F>(std::to_string(
i + 1400).c_str(),
424 (
"Eta vs Phi for layers hit in " + iter).c_str(),
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(),
438 edm::LogVerbatim(
"MaterialBudget") <<
"MaterialBudgetHcalHistos: Booking user histos done ===";
References mps_fire::i, HLT_FULL_cff::maxPhi, AlCaHLTBitMon_QueryRunRegistry::string, and compare::tfile.
◆ fillBeginJob() [1/2]
◆ fillBeginJob() [2/2]
void MaterialBudgetHcalHistos::fillBeginJob |
( |
const DDCompactView & |
cpv | ) |
|
◆ fillEndTrack()
void MaterialBudgetHcalHistos::fillEndTrack |
( |
| ) |
|
◆ fillHisto()
void MaterialBudgetHcalHistos::fillHisto |
( |
int |
ii | ) |
|
|
private |
◆ fillLayer()
void MaterialBudgetHcalHistos::fillLayer |
( |
| ) |
|
|
private |
◆ fillPerStep()
void MaterialBudgetHcalHistos::fillPerStep |
( |
const G4Step * |
aStep | ) |
|
Definition at line 165 of file MaterialBudgetHcalHistos.cc.
166 G4Material* material = aStep->GetPreStepPoint()->GetMaterial();
167 double step = aStep->GetStepLength();
168 double radl = material->GetRadlen();
169 double intl = material->GetNuclearInterLength();
173 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
195 <<
" Material " << matName <<
" Old Length " <<
stepLen_ <<
" X0 "
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) "
210 int det = 0, lay = 0;
224 det = (touch->GetReplicaNumber(1)) / 1000;
225 lay = (touch->GetReplicaNumber(0) / 10) % 100 + 3;
239 }
else if (lay !=
layer_) {
246 edm::LogVerbatim(
"MaterialBudgetFull") <<
"MaterialBudgetHcalHistos: Det " << det <<
" Layer " << lay <<
" Eta "
263 <<
"MaterialBudgetHcalHistos: Step at " <<
name <<
" calls filHisto with " << (
id_ - 1);
273 if (!
isItHF(aStep->GetPostStepPoint()->GetTouchable())) {
276 <<
"MaterialBudgetHcalHistos: After HF in " <<
name <<
":"
277 << aStep->GetPostStepPoint()->GetTouchable()->GetVolume(0)->GetName() <<
" calls fillHisto with " <<
id_;
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 | ) |
|
◆ getDDDArray()
std::vector< double > MaterialBudgetHcalHistos::getDDDArray |
( |
const std::string & |
str, |
|
|
const DDsvalues_type & |
sv |
|
) |
| |
|
private |
◆ getNames() [1/2]
Definition at line 542 of file MaterialBudgetHcalHistos.cc.
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"};
548 if (
std::find(notIn.begin(), notIn.end(),
n) == notIn.end()) {
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 |
◆ hend()
void MaterialBudgetHcalHistos::hend |
( |
| ) |
|
|
private |
◆ isItEC()
bool MaterialBudgetHcalHistos::isItEC |
( |
std::string |
name | ) |
|
|
private |
◆ isItHF()
bool MaterialBudgetHcalHistos::isItHF |
( |
const G4VTouchable * |
touch | ) |
|
|
private |
◆ isSensitive()
bool MaterialBudgetHcalHistos::isSensitive |
( |
std::string |
name | ) |
|
|
private |
◆ binEta_
int MaterialBudgetHcalHistos::binEta_ |
|
private |
◆ binPhi_
int MaterialBudgetHcalHistos::binPhi_ |
|
private |
◆ eta_
double MaterialBudgetHcalHistos::eta_ |
|
private |
◆ etaHigh_
double MaterialBudgetHcalHistos::etaHigh_ |
|
private |
◆ etaHighMax_
double MaterialBudgetHcalHistos::etaHighMax_ |
|
private |
◆ etaHighMin_
double MaterialBudgetHcalHistos::etaHighMin_ |
|
private |
◆ etaLow_
double MaterialBudgetHcalHistos::etaLow_ |
|
private |
◆ etaLowMax_
double MaterialBudgetHcalHistos::etaLowMax_ |
|
private |
◆ etaLowMin_
double MaterialBudgetHcalHistos::etaLowMin_ |
|
private |
◆ etaMaxP_
double MaterialBudgetHcalHistos::etaMaxP_ |
|
private |
◆ etaMidMax_
double MaterialBudgetHcalHistos::etaMidMax_ |
|
private |
◆ etaMidMin_
double MaterialBudgetHcalHistos::etaMidMin_ |
|
private |
◆ etaMinP_
double MaterialBudgetHcalHistos::etaMinP_ |
|
private |
◆ fillHistos_
bool MaterialBudgetHcalHistos::fillHistos_ |
|
private |
◆ hfLevels_
std::vector<int> MaterialBudgetHcalHistos::hfLevels_ |
|
private |
◆ hfNames_
std::vector<std::string> MaterialBudgetHcalHistos::hfNames_ |
|
private |
◆ id_
int MaterialBudgetHcalHistos::id_ |
|
private |
◆ intLen_
double MaterialBudgetHcalHistos::intLen_ |
|
private |
◆ intLength_
std::vector<double> MaterialBudgetHcalHistos::intLength_ |
|
private |
◆ layer_
int MaterialBudgetHcalHistos::layer_ |
|
private |
◆ matList_
std::vector<std::string> MaterialBudgetHcalHistos::matList_ |
|
private |
◆ maxEta_
double MaterialBudgetHcalHistos::maxEta_ |
|
private |
◆ maxSet2_
const int MaterialBudgetHcalHistos::maxSet2_ = 9 |
|
staticprivate |
◆ maxSet_
const int MaterialBudgetHcalHistos::maxSet_ = 25 |
|
staticprivate |
◆ me100
TProfile* MaterialBudgetHcalHistos::me100[maxSet_] |
|
private |
◆ me1000
TProfile2D * MaterialBudgetHcalHistos::me1000[maxSet_] |
|
private |
◆ me1100
TProfile2D * MaterialBudgetHcalHistos::me1100[maxSet_] |
|
private |
◆ me1200
TH2F* MaterialBudgetHcalHistos::me1200[maxSet_] |
|
private |
◆ me1300
TH1F * MaterialBudgetHcalHistos::me1300[maxSet2_] |
|
private |
◆ me1400
TH2F * MaterialBudgetHcalHistos::me1400[maxSet2_] |
|
private |
◆ me1500
TProfile* MaterialBudgetHcalHistos::me1500[maxSet2_] |
|
private |
◆ me1600
TProfile* MaterialBudgetHcalHistos::me1600[maxSet_] |
|
private |
◆ me1700
TProfile * MaterialBudgetHcalHistos::me1700[maxSet_] |
|
private |
◆ me1800
TProfile * MaterialBudgetHcalHistos::me1800[maxSet_] |
|
private |
◆ me1900
TProfile* MaterialBudgetHcalHistos::me1900[maxSet_] |
|
private |
◆ me200
TProfile * MaterialBudgetHcalHistos::me200[maxSet_] |
|
private |
◆ me2000
TProfile * MaterialBudgetHcalHistos::me2000[maxSet_] |
|
private |
◆ me2100
TProfile * MaterialBudgetHcalHistos::me2100[maxSet_] |
|
private |
◆ me2200
TProfile* MaterialBudgetHcalHistos::me2200[maxSet_] |
|
private |
◆ me2300
TProfile * MaterialBudgetHcalHistos::me2300[maxSet_] |
|
private |
◆ me2400
TProfile * MaterialBudgetHcalHistos::me2400[maxSet_] |
|
private |
◆ me300
TProfile * MaterialBudgetHcalHistos::me300[maxSet_] |
|
private |
◆ me400
TH1F* MaterialBudgetHcalHistos::me400[maxSet_] |
|
private |
◆ me500
TProfile* MaterialBudgetHcalHistos::me500[maxSet_] |
|
private |
◆ me600
TProfile * MaterialBudgetHcalHistos::me600[maxSet_] |
|
private |
◆ me700
TProfile * MaterialBudgetHcalHistos::me700[maxSet_] |
|
private |
◆ me800
TH1F * MaterialBudgetHcalHistos::me800[maxSet_] |
|
private |
◆ me900
TProfile2D* MaterialBudgetHcalHistos::me900[maxSet_] |
|
private |
◆ nlayHB_
int MaterialBudgetHcalHistos::nlayHB_ |
|
private |
◆ nlayHE_
int MaterialBudgetHcalHistos::nlayHE_ |
|
private |
◆ nlayHF_
int MaterialBudgetHcalHistos::nlayHF_ |
|
private |
◆ nlayHO_
int MaterialBudgetHcalHistos::nlayHO_ |
|
private |
◆ phi_
double MaterialBudgetHcalHistos::phi_ |
|
private |
◆ printSum_
bool MaterialBudgetHcalHistos::printSum_ |
|
private |
◆ radLen_
double MaterialBudgetHcalHistos::radLen_ |
|
private |
◆ radLength_
std::vector<double> MaterialBudgetHcalHistos::radLength_ |
|
private |
◆ sensitiveEC_
std::vector<std::string> MaterialBudgetHcalHistos::sensitiveEC_ |
|
private |
◆ sensitives_
std::vector<std::string> MaterialBudgetHcalHistos::sensitives_ |
|
private |
◆ stepLen_
double MaterialBudgetHcalHistos::stepLen_ |
|
private |
◆ stepLength_
std::vector<double> MaterialBudgetHcalHistos::stepLength_ |
|
private |
◆ steps_
int MaterialBudgetHcalHistos::steps_ |
|
private |
TProfile * me2100[maxSet_]
TProfile * me1800[maxSet_]
TProfile * me2300[maxSet_]
TProfile2D * me1100[maxSet_]
std::vector< std::string > getNames(DDFilteredView &fv)
TProfile * me300[maxSet_]
constexpr NumType convertRadToDeg(NumType radians)
constexpr NumType convertUnitsTo(long double desiredUnits, NumType val)
std::vector< std::string > sensitiveEC_
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
TProfile * me700[maxSet_]
std::vector< int > hfLevels_
bool isItHF(const G4VTouchable *)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::string_view name() const
bool firstChild()
set the current node to the first child ...
static const int maxSet2_
TProfile * me2200[maxSet_]
std::vector< double > stepLength_
TProfile * me2400[maxSet_]
bool next()
set current node to the next node in the filtered tree
bool firstChild()
set the current node to the first child
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
TProfile2D * me1000[maxSet_]
TProfile * me1900[maxSet_]
std::vector< double > intLength_
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
TProfile * me600[maxSet_]
TProfile * me200[maxSet_]
TProfile * me1700[maxSet_]
std::vector< double > radLength_
TProfile * me1500[maxSet2_]
Log< level::Info, true > LogVerbatim
TProfile * me2000[maxSet_]
std::vector< std::string > sensitives_
TProfile2D * me900[maxSet_]
bool isSensitive(std::string)
Abs< T >::type abs(const T &t)
TProfile * me1600[maxSet_]
TProfile * me500[maxSet_]
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::vector< double > getDDDArray(const std::string &str, const DDsvalues_type &sv)
std::vector< std::string > matList_
TProfile * me100[maxSet_]
std::vector< std::string > hfNames_