39 LogTrace(
"DTDQM|DTMonitorModule|DTDCSByLumiTask")
40 <<
"[DTDCSByLumiTask]: Constructor" << endl;
50 LogTrace(
"DTDQM|DTMonitorModule|DTDCSByLumiTask")
51 <<
"DTDCSByLumiTask: processed " <<
theEvents <<
52 " events in " <<
theLumis <<
" lumi sections" << endl;
58 LogTrace(
"DTDQM|DTMonitorModule|DTDCSByLumiTask")
59 <<
"[DTDCSByLumiTask]: begin run" << endl;
67 std::vector<eventsetup::EventSetupRecordKey> recordKeys;
69 vector<eventsetup::EventSetupRecordKey>::iterator it =
find(recordKeys.begin(),recordKeys.end(),recordKey);
71 if( it == recordKeys.end() ) {
73 LogTrace(
"DTDQM|DTMonitorModule|DTDCSByLumiTask")<<
"Record DTHVStatusRcd does not exist "<<std::endl;
88 stringstream wheel_str; wheel_str <<
wheel;
90 MonitorElement*
ME = ibooker.
book1D(
"hActiveUnits"+wheel_str.str(),
"Active Untis x LS Wh"+wheel_str.str(),2,0.5,2.5);
101 LogTrace(
"DTDQM|DTMonitorModule|DTDCSByLumiTask")
102 <<
"[DTDCSByLumiTask]: Begin of processed lumi # " << lumiSeg.
id().
luminosityBlock()
103 <<
" " <<
theLumis <<
" lumi processed by this job" << endl;
117 vector<const DTLayer*>::const_iterator layersIt =
theDTGeom->
layers().begin();
118 vector<const DTLayer*>::const_iterator layersEnd =
theDTGeom->
layers().end();
120 for(; layersIt!=layersEnd; ++layersIt) {
122 int wheel = (*layersIt)->id().wheel();
124 int nWiresLayer = (*layersIt)->specificTopology().channels();
127 int nActiveWires = nWiresLayer;
141 && (flagA || flagC || flagS) ) {
142 nActiveWires -= (last - first + 1);
146 && (flagA || flagC || flagS) ) {
147 nActiveWires -= (last - first + 1);
168 return string(
"DT/EventInfo/DCSContents");
LuminosityBlockID id() const
std::pair< const char *, const std::type_info * > findType(const char *iClassName)
int get(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int &fCell, int &lCell, int &flagA, int &flagC, int &flagS) const
get content
edm::ESHandle< DTHVStatus > hvStatus
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) override
By Lumi DCS DB Operation.
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Begin Run.
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup) override
By Lumi DCS DB Operation.
~DTDCSByLumiTask() override
Destructor.
void setLumiFlag()
this ME is meant to be stored for each luminosity section
void setCurrentFolder(std::string const &fullpath)
edm::ESHandle< DTGeometry > theDTGeom
void fillAvailableRecordKeys(std::vector< eventsetup::EventSetupRecordKey > &oToFill) const
clears the oToFill vector and then fills it with the keys for all available records ...
MonitorElement * book1D(Args &&...args)
const std::vector< const DTLayer * > & layers() const
Return a vector of all SuperLayer.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
LuminosityBlockNumber_t luminosityBlock() const
DTDCSByLumiTask(const edm::ParameterSet &ps)
Constructor.
std::string topFolder() const
std::vector< MonitorElement * > hActiveUnits