52 <<
"please add it to config file";
53 iniE = tfile->
make<TH1D>(
"iniE",
"Incident Energy (GeV)", 4000, 0., em1);
54 iEta = tfile->
make<TH1D>(
"iEta",
"Eta at incidence ", 300, 0., 3.);
55 iPhi = tfile->
make<TH1D>(
"iPhi",
"Phi at incidence ", 300, -1., 1.);
56 edepS = tfile->
make<TH1D>(
"edepS",
"Energy deposit == Total (Simhit)", 4000, 0., em1);
57 edecS = tfile->
make<TH1D>(
"edecS",
"Energy deposit == ECal (Simhit)", 4000, 0., em1);
58 edhcS = tfile->
make<TH1D>(
"edhcS",
"Energy deposit == HCal (Simhit)", 4000, 0., em2);
59 edepQ = tfile->
make<TH1D>(
"edepQ",
"Energy deposit == Total (QIE)", 4000, 0., em1);
60 edecQ = tfile->
make<TH1D>(
"edecQ",
"Energy deposit == ECal (QIE)", 4000, 0., em1);
61 edhcQ = tfile->
make<TH1D>(
"edhcQ",
"Energy deposit == HCal (QIE)", 4000, 0., em2);
62 edehS = tfile->
make<TH2D>(
"edehS",
"Hcal vs Ecal (Simhit)", 100, 0., em1, 100, 0., em2);
63 edehQ = tfile->
make<TH2D>(
"edehQ",
"Hcal vs Ecal (QIE)", 100, 0., em1, 100, 0., em2);
64 latse = tfile->
make<TProfile>(
"latse",
"Lat Prof (Eta Sim)", 10, 0., 10.);
65 latqe = tfile->
make<TProfile>(
"latqe",
"Lat Prof (Eta QIE)", 10, 0., 10.);
66 latsf = tfile->
make<TProfile>(
"latsf",
"Lat Prof (Phi Sim)", 10, 0., 10.);
67 latqf = tfile->
make<TProfile>(
"latqf",
"Lat Prof (Phi QIE)", 10, 0., 10.);
68 lngs = tfile->
make<TProfile>(
"lngs",
"Long. Prof (Sim)", 20, 0., 20.);
69 lngq = tfile->
make<TProfile>(
"lngq",
"Long. Prof (QIE)", 20, 0., 20.);
79 LogDebug(
"HcalTBSim") <<
"HcalTB04Histo::fillPrimary: Energy " << energy <<
" Eta " << eta <<
" Phi " <<
phi;
86 LogDebug(
"HcalTBSim") <<
"HcalTB04Histo:::fillEdep: Simulated Total " << etots <<
" ECal " << eecals <<
" HCal " 87 << ehcals <<
" Digitised Total " << etotq <<
" ECal " << eecalq <<
" HCal " << ehcalq;
94 edehS->Fill(eecals, ehcals);
95 edehQ->Fill(eecalq, ehcalq);
99 const std::vector<double>& eq1,
100 const std::vector<double>& es2,
101 const std::vector<double>& eq2) {
102 unsigned int n1 =
std::min(es1.size(), eq1.size());
103 unsigned int n2 =
std::min(es2.size(), eq2.size());
105 for (
unsigned int i = 0;
i <
n;
i++)
106 LogDebug(
"HcalTBSim") <<
"HcalTB04Histo::fillTrnsProf [" <<
i <<
"] SimEta " << es1[
i] <<
" DigEta " << eq1[
i]
107 <<
" SimPhi " << es2[
i] <<
" DigPhi " << eq2[
i];
108 for (
unsigned int i = 0;
i < (es1.size());
i++) {
109 double tow =
i + 0.5;
112 for (
unsigned int i = 0;
i < (eq1.size());
i++) {
113 double tow =
i + 0.5;
116 for (
unsigned int i = 0;
i < (es2.size());
i++) {
117 double tow =
i + 0.5;
120 for (
unsigned int i = 0;
i < (eq2.size());
i++) {
121 double tow =
i + 0.5;
127 unsigned int n =
std::min(es.size(), eq.size());
128 for (
unsigned int i = 0;
i <
n;
i++)
129 LogDebug(
"HcalTBSim") <<
"HcalTB04Histo::fillLongProf [" <<
i <<
"] Sim " << es[
i] <<
" Dig " << eq[
i];
130 for (
unsigned int i = 0;
i < (es.size());
i++) {
131 double lay =
i + 0.5;
132 lngs->Fill(lay, es[
i]);
134 for (
unsigned int i = 0;
i < (eq.size());
i++) {
135 double lay =
i + 0.5;
136 lngq->Fill(lay, eq[
i]);
T getUntrackedParameter(std::string const &, T const &) const
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 * make(const Args &...args) const
make new ROOT object
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)