29 std::cout <<
"CastorRecHitMonitor::bookHistograms" << std::endl;
34 float ySec[nySec + 1];
35 float xSec[N_Sec + 1];
36 double E0sec = 1. / 1024.;
39 double lnBsec =
log(2.);
40 for (
int j = 1;
j < nySec;
j++)
41 ySec[
j + 1] = E0sec *
exp(
j * lnBsec);
42 for (
int i = 0;
i <= N_Sec;
i++)
45 sprintf(
s,
"Castor Energy by Sectors #Phi");
55 for (
int i = 0;
i <= nxCh;
i++)
57 double E0 = 1. / 1024.;
61 for (
int j = 1;
j < nyE;
j++)
62 yErh[
j + 1] = E0 *
exp(
j * lnA);
64 string st =
"Castor Cell Energy Map (cell-wise)";
65 h2RHchan = ibooker.
book2D(st, st +
";moduleZ*16 + sector #Phi;RecHit / GeV", nxCh, xCh, nyE, yErh);
68 sprintf(
s,
"Castor Cell Energy");
72 st =
"Castor cell avr Energy per event Map Z-Phi";
73 h2RHoccmap = ibooker.
bookProfile2D(st, st +
";module Z;sector Phi", 14, 0, 14, 16, 0, 16, 0., 1.e10,
"");
76 sprintf(
s,
"CastorRecHitEntriesMap");
82 sprintf(
s,
"CastorRecHitTime");
85 sprintf(
s,
"CASTORTowerDepth");
89 sprintf(
s,
"CASTORTowerMultiplicity");
93 float EhadTow[NEtow + 1];
94 float EMTow[NEtow + 1];
95 float ETower[NEtow + 2];
96 double E0tow = 1. / 1024.;
103 double lnBtow =
log(2.);
104 for (
int j = 1;
j < NEtow;
j++)
105 EMTow[
j + 1] = E0tow *
exp(
j * lnBtow);
106 for (
int j = 1;
j < NEtow;
j++)
107 EhadTow[
j + 1] = E0tow *
exp(
j * lnBtow);
108 for (
int j = 1;
j <= NEtow;
j++)
109 ETower[
j + 1] = E0tow *
exp(
j * lnBtow);
111 sprintf(
s,
"CASTORTowerEMvsEhad");
117 sprintf(
s,
"CASTORTowerTotalEnergy");
121 sprintf(
s,
"CASTORJetsMultiplicity");
124 sprintf(
s,
"CASTORJetEnergy");
127 sprintf(
s,
"CASTORJetEta");
130 sprintf(
s,
"CASTORJetPhi");
134 std::cout <<
"CastorRecHitMonitor::bookHistograms(end)" << std::endl;
MonitorElement * bookProfile2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, double lowZ, double highZ, char const *option="s", FUNC onbooking=NOOP())
virtual void setCurrentFolder(std::string const &fullpath)
virtual void setOption(const char *option)
MonitorElement * h2RHvsSec
MonitorElement * h2RHentriesMap
MonitorElement * hJetEnergy
MonitorElement * hJetsMultipl
std::string subsystemname
MonitorElement * hTowerDepth
MonitorElement * h2RHoccmap
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
MonitorElement * h2TowerEMhad
virtual TProfile2D * getTProfile2D() const
MonitorElement * hallchan
MonitorElement * h2RHchan
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * hTowerMultipl