38 if ( !tfile.isAvailable() )
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",4000, 0., em1);
45 edecS= tfile->make<TH1D>(
"edecS",
"Energy deposit == ECal ",300, -2., 28.);
46 edhcS= tfile->make<TH1D>(
"edhcS",
"Energy deposit == HCal ",4000, 0., em2);
47 edepN= tfile->make<TH1D>(
"edepN",
"Etot/Ebeam ", 200, -2.5, 2.5);
48 edecN= tfile->make<TH1D>(
"edecN",
"Eecal/Ebeam ", 200, -2.5, 2.5);
49 edhcN= tfile->make<TH1D>(
"edhcN",
"Ehcal/Ebeam ", 200, -2.5, 2.5);
50 emhcN= tfile->make<TH1D>(
"emhcN",
"Ehcal/Ebeam MIP in Ecal", 200, -2.5, 2.5);
51 edehS= tfile->make<TH2D>(
"edehS",
"Hcal vs Ecal", 100,0.,em1, 100, 0.,em2);
54 tree_ = tfile->make<TTree>(
"TB06Sim",
"TB06Sim");
55 tree_->Branch(
"eBeam_", &eBeam_,
"eBeam_/D");
83 edm::LogInfo(
"HcalTBSim") <<
"HcalTB06Histo::fillPrimary: Energy " 84 << energy <<
" Eta " << eta <<
" Phi " <<
phi;
96 edm::LogInfo(
"HcalTBSim") <<
"HcalTB06Histo:::fillEdep: Simulated Total " 97 << etots <<
" ECal " << eecals <<
" HCal " 106 edehS->Fill(eecals, ehcals);
110 std::vector<double>& etrig) {
128 edm::LogInfo(
"HcalTBSim") <<
"HcalTB06Histo:::fillTree: Energies " T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void fillEdep(double etots, double eecals, double ehcals)
void fillTree(std::vector< double > &ecalo, std::vector< double > &etrig)
void fillPrimary(double energy, double eta, double phi)
HcalTB06Histo(const edm::ParameterSet &ps)