27 iniE(0), iEta(0), iPhi(0), edepS(0), edecS(0), edhcS(0), edepQ(0),
28 edecQ(0), edhcQ(0), edehS(0), edehQ(0), latse(0), latqe(0), latsf(0),
29 latqf(0), lngs(0), lngq(0) {
40 <<
"please add it to config file";
41 iniE = tfile->
make<TH1D>(
"iniE",
"Incident Energy (GeV)", 4000, 0., em1);
42 iEta = tfile->
make<TH1D>(
"iEta",
"Eta at incidence ", 300, 0., 3.);
43 iPhi = tfile->
make<TH1D>(
"iPhi",
"Phi at incidence ", 300, -1., 1.);
44 edepS= tfile->
make<TH1D>(
"edepS",
"Energy deposit == Total (Simhit)",4000, 0., em1);
45 edecS= tfile->
make<TH1D>(
"edecS",
"Energy deposit == ECal (Simhit)",4000, 0., em1);
46 edhcS= tfile->
make<TH1D>(
"edhcS",
"Energy deposit == HCal (Simhit)",4000, 0., em2);
47 edepQ= tfile->
make<TH1D>(
"edepQ",
"Energy deposit == Total (QIE)", 4000, 0., em1);
48 edecQ= tfile->
make<TH1D>(
"edecQ",
"Energy deposit == ECal (QIE)", 4000, 0., em1);
49 edhcQ= tfile->
make<TH1D>(
"edhcQ",
"Energy deposit == HCal (QIE)", 4000, 0., em2);
50 edehS= tfile->
make<TH2D>(
"edehS",
"Hcal vs Ecal (Simhit)", 100,0.,em1, 100, 0.,em2);
51 edehQ= tfile->
make<TH2D>(
"edehQ",
"Hcal vs Ecal (QIE)", 100,0.,em1, 100, 0.,em2);
52 latse= tfile->
make<TProfile>(
"latse",
"Lat Prof (Eta Sim)",10,0.,10.);
53 latqe= tfile->
make<TProfile>(
"latqe",
"Lat Prof (Eta QIE)",10,0.,10.);
54 latsf= tfile->
make<TProfile>(
"latsf",
"Lat Prof (Phi Sim)",10,0.,10.);
55 latqf= tfile->
make<TProfile>(
"latqf",
"Lat Prof (Phi QIE)",10,0.,10.);
56 lngs = tfile->
make<TProfile>(
"lngs",
"Long. Prof (Sim)", 20,0.,20.);
57 lngq = tfile->
make<TProfile>(
"lngq",
"Long. Prof (QIE)", 20,0.,20.);
68 LogDebug(
"HcalTBSim") <<
"HcalTB04Histo::fillPrimary: Energy "
69 << energy <<
" Eta " << eta <<
" Phi " <<
phi;
76 double etotq,
double eecalq,
double ehcalq) {
78 LogDebug(
"HcalTBSim") <<
"HcalTB04Histo:::fillEdep: Simulated Total "
79 << etots <<
" ECal " << eecals <<
" HCal " << ehcals
80 <<
" Digitised Total " << etotq <<
" ECal " << eecalq
81 <<
" HCal " << ehcalq;
88 edehS->Fill(eecals, ehcals);
89 edehQ->Fill(eecalq, ehcalq);
93 const std::vector<double>& eq1,
94 const std::vector<double>& es2,
95 const std::vector<double>& eq2) {
97 unsigned int n1 =
std::min(es1.size(),eq1.size());
98 unsigned int n2 =
std::min(es2.size(),eq2.size());
100 for (
unsigned int i = 0;
i <
n;
i++)
101 LogDebug(
"HcalTBSim") <<
"HcalTB04Histo::fillTrnsProf [" <<
i
102 <<
"] SimEta " << es1[
i] <<
" DigEta " << eq1[
i]
103 <<
" SimPhi " << es2[
i] <<
" DigPhi " << eq2[
i];
104 for (
unsigned int i=0;
i<(es1.size());
i++) {
108 for (
unsigned int i=0;
i<(eq1.size());
i++) {
112 for (
unsigned int i=0;
i<(es2.size());
i++) {
116 for (
unsigned int i=0;
i<(eq2.size());
i++) {
123 const std::vector<double>&
eq) {
125 unsigned int n =
std::min(es.size(),eq.size());
126 for (
unsigned int i = 0;
i <
n;
i++)
127 LogDebug(
"HcalTBSim") <<
"HcalTB04Histo::fillLongProf [" <<
i
128 <<
"] Sim " << es[
i] <<
" Dig " << eq[
i];
129 for (
unsigned int i=0;
i<(es.size());
i++) {
131 lngs->Fill(lay, es[
i]);
133 for (
unsigned int i=0;
i<(eq.size());
i++) {
135 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)
HcalTB04Histo(const edm::ParameterSet &ps)
T * make() const
make new ROOT object
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)