157 std::map<HcalCastorDetId,MonitorElement*>::iterator _mei;
163 _mei=toolE.find(rhit.id());
164 if (_mei!=toolE.end()){
165 if (_mei->second==0)
return;
166 else _mei->second->Fill(rhit.energy());
171 sprintf(name,
"CastorRecHit Energy zside=%d module=%d sector=%d", rhit.id().zside(), rhit.id().module(), rhit.id().sector());
172 toolE[rhit.id()] = dbe->
book1D(name,name,60,-10,20);
173 toolE[rhit.id()]->
Fill(rhit.energy());
178 _mei=toolT.find(rhit.id());
179 if (_mei!=toolT.end()){
180 if (_mei->second==0)
return;
181 else _mei->second->Fill(rhit.time());
186 sprintf(name,
"CastorRecHit Time zside=%d module=%d sector=%d", rhit.id().zside(), rhit.id().module(), rhit.id().sector());
187 toolT[rhit.id()] = dbe->
book1D(name,name,200,-100,100);
188 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)