129 std::map<HcalCastorDetId,MonitorElement*>::iterator _mei;
131 std::string
type =
"CastorRecHitPerChannel";
135 _mei=toolE.find(rhit.id());
136 if (_mei!=toolE.end()){
137 if (_mei->second==0)
return;
138 else _mei->second->Fill(rhit.energy());
143 sprintf(name,
"CastorRecHit Energy zside=%d module=%d sector=%d", rhit.id().zside(), rhit.id().module(), rhit.id().sector());
144 toolE[rhit.id()] = dbe->
book1D(name,name,60,-10,20);
145 toolE[rhit.id()]->
Fill(rhit.energy());
150 _mei=toolT.find(rhit.id());
151 if (_mei!=toolT.end()){
152 if (_mei->second==0)
return;
153 else _mei->second->Fill(rhit.time());
158 sprintf(name,
"CastorRecHit Time zside=%d module=%d sector=%d", rhit.id().zside(), rhit.id().module(), rhit.id().sector());
159 toolT[rhit.id()] = dbe->
book1D(name,name,200,-100,100);
160 toolT[rhit.id()]->
Fill(rhit.time());
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void setCurrentFolder(const std::string &fullpath)