52 for (
int sec=0; sec<16; sec++){
64 castorHists.meRECHIT_E_all =
m_dbe->
book1D(
"CastorRecHit Energies- above threshold on RecHitEnergy",
"CastorRecHit Energies- above threshold on RecHitEnergy",150,0,150);
65 castorHists.meRECHIT_T_all =
m_dbe->
book1D(
"CastorRecHit Times- above threshold on RecHitEnergy",
"CastorRecHit Times- above threshold on RecHitEnergy",300,-100,100);
67 castorHists.meRECHIT_MAP_CHAN_E =
m_dbe->
book1D(
"CastorRecHit Energy in each channel- above threshold",
"CastorRecHit Energy in each channel- above threshold",224,0,224);
69 castorHists.meRECHIT_E_modules =
m_dbe->
book1D(
"CastorRecHit Energy in modules- above threshold",
"CastorRecHit Energy in modules- above threshold", 14, 0, 14);
71 castorHists.meRECHIT_E_sectors =
m_dbe->
book1D(
"CastorRecHit Energy in sectors- above threshold",
"CastorRecHit Energy in sectors- above threshold", 16, 0, 16);
74 castorHists.meRECHIT_N_modules =
m_dbe->
book1D(
"Number of CastorRecHits in modules- above threshold",
"Number of CastorRecHits in modules- above threshold", 14, 0, 14);
76 castorHists.meRECHIT_N_sectors =
m_dbe->
book1D(
"Number of CastorRecHits in sectors- above threshold",
"Number of CastorRecHits in sectors- above threshold", 16, 0, 16);
78 castorHists.meCastorRecHitsOccupancy =
m_dbe->
book2D(
"CastorRecHits Occupancy Map",
"CastorRecHits Occupancy Map", 14, 0,14, 16, 0,16);
80 castorHists.meRECHIT_N_event =
m_dbe->
book1D(
"Number of CASTOR RecHits per event- above threshold",
"Number of CASTOR RecHits per event- above threshold", 23, 0, 230);
84 castorHists.meRECHIT_E_relative_modules =
m_dbe->
book1D(
"Fraction of the total energy in CASTOR modules",
"Fraction of the total energy in CASTOR modules", 14, 0, 14);
86 castorHists.meRECHIT_E_relative_sectors =
m_dbe->
book1D(
"Fraction of the total energy in CASTOR sectors",
"Fraction of the total energy in CASTOR sectors", 16, 0, 16);
108 if(
fVerbosity>0)
std::cout <<
"CastorRecHitMonitor::setup - NO DQMStore service" << std::endl;
120 namespace CastorRecHitPerChan{
122 template<
class RecHit>
125 std::map<HcalCastorDetId, MonitorElement*> &toolE,
126 std::map<HcalCastorDetId, MonitorElement*> &toolT,
127 DQMStore* dbe, std::string baseFolder) {
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());
186 if(
fVerbosity>0)
std::cout <<
"CastorRecHitMonitor::processEvent => DQMStore is not instantiated !!!"<<std::endl;
196 if(castorHits.
size()>0)
198 if(
fVerbosity>0)
std::cout <<
"==>CastorRecHitMonitor::processEvent: castorHits.size()>0 !!!" << std::endl;
201 for (CASTORiter=castorHits.
begin(); CASTORiter!=castorHits.
end(); ++CASTORiter) {
204 energy = CASTORiter->energy();
205 time = CASTORiter->time();
250 for(
int sec=0; sec<16;sec++)
261 for(
int sec=0; sec<16;sec++)
271 for(
int sec=0; sec<16;sec++)
278 else {
if(
fVerbosity>0)
std::cout<<
"CastorRecHitMonitor::processEvent NO Castor RecHits !!!"<<std::endl; }
T getUntrackedParameter(std::string const &, T const &) const
struct CastorRecHitMonitor::@171 castorHists
virtual void setup(const edm::ParameterSet &ps, DQMStore *dbe)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
float energyInEachChannel[14][16]
std::vector< T >::const_iterator const_iterator
float allEnergySector[16]
void perChanHists(const RecHit &rhit, std::map< HcalCastorDetId, MonitorElement * > &toolE, std::map< HcalCastorDetId, MonitorElement * > &toolT, DQMStore *dbe, std::string baseFolder)
list mod
Load physics model.
void setup(const edm::ParameterSet &ps, DQMStore *dbe)
const_iterator end() const
void processEvent(const CastorRecHitCollection &castorHits)
MonitorElement * bookInt(const char *name)
Book int.
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setCurrentFolder(const std::string &fullpath)
const_iterator begin() const
float allEnergyModule[14]