52 if (!
tfile.isAvailable())
54 <<
"please add it to config file";
55 iniE =
tfile->make<TH1D>(
"iniE",
"Incident Energy (GeV)", 4000, 0., em1);
56 iEta =
tfile->make<TH1D>(
"iEta",
"Eta at incidence ", 300, 0., 3.);
57 iPhi =
tfile->make<TH1D>(
"iPhi",
"Phi at incidence ", 300, -1., 1.);
58 edepS =
tfile->make<TH1D>(
"edepS",
"Energy deposit == Total (Simhit)", 4000, 0., em1);
59 edecS =
tfile->make<TH1D>(
"edecS",
"Energy deposit == ECal (Simhit)", 4000, 0., em1);
60 edhcS =
tfile->make<TH1D>(
"edhcS",
"Energy deposit == HCal (Simhit)", 4000, 0., em2);
61 edepQ =
tfile->make<TH1D>(
"edepQ",
"Energy deposit == Total (QIE)", 4000, 0., em1);
62 edecQ =
tfile->make<TH1D>(
"edecQ",
"Energy deposit == ECal (QIE)", 4000, 0., em1);
63 edhcQ =
tfile->make<TH1D>(
"edhcQ",
"Energy deposit == HCal (QIE)", 4000, 0., em2);
64 edehS =
tfile->make<TH2D>(
"edehS",
"Hcal vs Ecal (Simhit)", 100, 0., em1, 100, 0., em2);
65 edehQ =
tfile->make<TH2D>(
"edehQ",
"Hcal vs Ecal (QIE)", 100, 0., em1, 100, 0., em2);
66 latse =
tfile->make<TProfile>(
"latse",
"Lat Prof (Eta Sim)", 10, 0., 10.);
67 latqe =
tfile->make<TProfile>(
"latqe",
"Lat Prof (Eta QIE)", 10, 0., 10.);
68 latsf =
tfile->make<TProfile>(
"latsf",
"Lat Prof (Phi Sim)", 10, 0., 10.);
69 latqf =
tfile->make<TProfile>(
"latqf",
"Lat Prof (Phi QIE)", 10, 0., 10.);
70 lngs =
tfile->make<TProfile>(
"lngs",
"Long. Prof (Sim)", 20, 0., 20.);
71 lngq =
tfile->make<TProfile>(
"lngq",
"Long. Prof (QIE)", 20, 0., 20.);
91 edm::LogVerbatim(
"HcalTBSim") <<
"HcalTB04Histo:::fillEdep: Simulated Total " << etots <<
" ECal " << eecals
92 <<
" HCal " << ehcals <<
" Digitised Total " << etotq <<
" ECal " << eecalq <<
" HCal " 101 edehS->Fill(eecals, ehcals);
102 edehQ->Fill(eecalq, ehcalq);
106 const std::vector<double>& eq1,
107 const std::vector<double>& es2,
108 const std::vector<double>& eq2) {
110 unsigned int n1 =
std::min(es1.size(), eq1.size());
111 unsigned int n2 =
std::min(es2.size(), eq2.size());
113 for (
unsigned int i = 0;
i <
n;
i++)
114 edm::LogVerbatim(
"HcalTBSim") <<
"HcalTB04Histo::fillTrnsProf [" <<
i <<
"] SimEta " << es1[
i] <<
" DigEta " 115 << eq1[
i] <<
" SimPhi " << es2[
i] <<
" DigPhi " << eq2[
i];
117 for (
unsigned int i = 0;
i < (es1.size());
i++) {
118 double tow =
i + 0.5;
121 for (
unsigned int i = 0;
i < (eq1.size());
i++) {
122 double tow =
i + 0.5;
125 for (
unsigned int i = 0;
i < (es2.size());
i++) {
126 double tow =
i + 0.5;
129 for (
unsigned int i = 0;
i < (eq2.size());
i++) {
130 double tow =
i + 0.5;
137 unsigned int n =
std::min(es.size(), eq.size());
138 for (
unsigned int i = 0;
i <
n;
i++)
139 edm::LogVerbatim(
"HcalTBSim") <<
"HcalTB04Histo::fillLongProf [" <<
i <<
"] Sim " << es[
i] <<
" Dig " << eq[
i];
141 for (
unsigned int i = 0;
i < (es.size());
i++) {
142 double lay =
i + 0.5;
143 lngs->Fill(lay, es[
i]);
145 for (
unsigned int i = 0;
i < (eq.size());
i++) {
146 double lay =
i + 0.5;
147 lngq->Fill(lay, eq[
i]);
Log< level::Info, true > LogVerbatim
void fillPrimary(double energy, double eta, double phi)
void fillTrnsProf(const std::vector< double > &es1, const std::vector< double > &eq1, const std::vector< double > &es2, const std::vector< double > &eq2)
T getUntrackedParameter(std::string const &, T const &) const
HcalTB04Histo(const edm::ParameterSet &ps)
void fillEdep(double etots, double eecals, double ehcals, double etotq, double eecalq, double ehcalq)
void fillLongProf(const std::vector< double > &es, const std::vector< double > &eq)