35 LogTrace(
"DTDQM|DTMonitorModule|DTDCSByLumiTask") <<
"[DTDCSByLumiTask]: Constructor" << endl;
42 LogTrace(
"DTDQM|DTMonitorModule|DTDCSByLumiTask")
43 <<
"DTDCSByLumiTask: processed " <<
theEvents <<
" events in " <<
theLumis <<
" lumi sections" << endl;
47 LogTrace(
"DTDQM|DTMonitorModule|DTDCSByLumiTask") <<
"[DTDCSByLumiTask]: begin run" << endl;
55 std::vector<eventsetup::EventSetupRecordKey> recordKeys;
56 context.fillAvailableRecordKeys(recordKeys);
57 vector<eventsetup::EventSetupRecordKey>::iterator it =
find(recordKeys.begin(), recordKeys.end(), recordKey);
59 if (it == recordKeys.end()) {
61 LogTrace(
"DTDQM|DTMonitorModule|DTDCSByLumiTask") <<
"Record DTHVStatusRcd does not exist " << std::endl;
72 stringstream wheel_str;
79 ibooker.
book1D(
"hActiveUnits" + wheel_str.str(),
"Active Untis x LS Wh" + wheel_str.str(), 2, 0.5, 2.5);
88 LogTrace(
"DTDQM|DTMonitorModule|DTDCSByLumiTask")
90 <<
" lumi processed by this job" << endl;
103 vector<const DTLayer*>::const_iterator layersIt =
theDTGeom->
layers().begin();
104 vector<const DTLayer*>::const_iterator layersEnd =
theDTGeom->
layers().end();
106 for (; layersIt != layersEnd; ++layersIt) {
107 int wheel = (*layersIt)->id().wheel();
109 int nWiresLayer = (*layersIt)->specificTopology().channels();
111 int nActiveWires = nWiresLayer;
124 if (!dtHVStatus->
get((*layersIt)->id(), 0,
first,
last, flagA, flagC, flagS) && (flagA || flagC || flagS)) {
128 if (!dtHVStatus->
get((*layersIt)->id(), 1,
first,
last, flagA, flagC, flagS) && (flagA || flagC || flagS)) {
std::pair< const char *, const std::type_info * > findType(const char *iClassName)
LuminosityBlockNumber_t luminosityBlock() const
virtual void setCurrentFolder(std::string const &fullpath)
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)
edm::ESGetToken< DTHVStatus, DTHVStatusRcd > dtHVStatusToken_
~DTDCSByLumiTask() override
Destructor.
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< DTGeometry > theDTGeom
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeometryToken_
void dqmEndLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &) override
By Lumi DCS DB Operation.
UseScope< MonitorElementData::Scope::LUMI > UseLumiScope
LuminosityBlockID id() const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void dqmBeginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &) override
By Lumi DCS DB Operation.
DTDCSByLumiTask(const edm::ParameterSet &ps)
Constructor.
void analyze(const edm::Event &e, const edm::EventSetup &) override
Analyze.
const std::vector< const DTLayer * > & layers() const
Return a vector of all SuperLayer.
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
std::string topFolder() const
std::vector< MonitorElement * > hActiveUnits