52 LogVerbatim(
"DTDQM|DTMonitorClient|DTLocalTriggerTest")
53 <<
"[" <<
testName <<
"Test]: End of LS transition, performing the DQM client operation";
60 LogVerbatim(
"DTDQM|DTMonitorClient|DTLocalTriggerTest") <<
"[" <<
testName <<
"Test]: " << nLumiSegs <<
" updates";
62 runClientDiagnostic(ibooker, igetter);
70 runClientDiagnostic(ibooker, igetter);
88 trigSources.push_back(
"");
96 prescaleFactor = parameters.getUntrackedParameter<
int>(
"diagnosticPrescale", 1);
103 wheel << chambid.
wheel();
107 sector << chambid.
sector();
109 string folderName = topFolder() +
"Wheel" + wheel.str() +
"/Sector" + sector.str() +
"/Station" + station.str() +
"/";
110 if (!subfolder.empty()) {
111 folderName += subfolder +
"/";
114 string histoname = sourceFolder + folderName +
fullName(
histoTag) +
"_W" + wheel.str() +
"_Sec" + sector.str() +
115 "_St" + station.str();
124 string folderName = topFolder() +
"Wheel" + wheel.str() +
"/";
125 if (!subfolder.empty()) {
126 folderName += subfolder +
"/";
129 string histoname = sourceFolder + folderName +
fullName(
histoTag) +
"_W" + wheel.str();
140 int sectorid = (wheel + 3) + (sector - 1) * 5;
141 string basedir = topFolder() +
"Wheel" + wh.str() +
"/Sector" + sc.str() +
"/";
142 if (!folder.empty()) {
143 basedir += folder +
"/";
149 string hname = fullTag +
"_W" + wh.str() +
"_Sec" + sc.str();
151 if (hTag.find(
"BXDistribPhi") != string::npos) {
157 secME[sectorid][fullTag] =
me;
159 }
else if (hTag.find(
"QualDistribPhi") != string::npos) {
172 secME[sectorid][fullTag] =
me;
174 }
else if (hTag.find(
"Phi") != string::npos || hTag.find(
"TkvsTrig") != string::npos) {
180 secME[sectorid][fullTag] =
me;
184 if (hTag.find(
"Theta") != string::npos) {
189 secME[sectorid][fullTag] =
me;
196 if (!folder.empty()) {
197 basedir += folder +
"/";
202 string hname = isGlb ? hTag :
fullName(hTag);
215 if (hTag.find(
"Summary") != string::npos) {
216 basedir = topFolder();
218 basedir = topFolder() +
"Wheel" + wh.str() +
"/";
220 if (!folder.empty()) {
221 basedir += folder +
"/";
227 string hname = fullTag +
"_W" + wh.str();
231 if (hTag.find(
"Phi") != string::npos || hTag.find(
"Summary") != string::npos) {
245 if (hTag.find(
"Theta") != string::npos) {
262 int sector =
id.sector();
263 int wheel =
id.wheel();
275 layer2 = muonGeom->layer(
DTLayerId(wheel, station, 13, 1, 1));
277 }
else if (sector == 10) {
278 layer2 = muonGeom->layer(
DTLayerId(wheel, station, 14, 1, 1));
281 return make_pair(min, max);
294 return make_pair(min, max);
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
T getUntrackedParameter(std::string const &, T const &) const
float wirePosition(int wireNumber) const
Returns the x position in the layer of a given wire number.
void setCurrentFolder(std::string const &fullpath)
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
Perform client diagnostic in online.
int firstChannel() const
Returns the wire number of the first wire.
int lastChannel() const
Returns the wire number of the last wire.
const DTTopology & specificTopology() const
const Surface::PositionType & position() const
The position (origin of the R.F.)
EventID const & min(EventID const &lh, EventID const &rh)
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
void endRun(edm::Run const &run, edm::EventSetup const &context) override
Perform client diagnostic in offline.
std::pair< float, float > phiRange(const DTChamberId &id)
Calculate phi range for histograms.
void beginRun(edm::Run const &run, edm::EventSetup const &context) override
BeginRun.
std::string getMEName(std::string histoTag, std::string subfolder, const DTChamberId &chambid)
Get the ME name (by chamber)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
void bookSectorHistos(DQMStore::IBooker &, int wheel, int sector, std::string hTag, std::string folder="")
Book the new MEs (for each sector)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
void setConfig(const edm::ParameterSet &ps, std::string name)
Set configuration variables.
int station() const
Return the station number.
int wheel() const
Return the wheel number.
~DTLocalTriggerBaseTest() override
Destructor.
void bookWheelHistos(DQMStore::IBooker &, int wheel, std::string hTag, std::string folder="")
Book the new MEs (for each wheel)
std::string fullName(std::string htype)
Create fullname from histo partial name.
EventID const & max(EventID const &lh, EventID const &rh)
void bookCmsHistos(DQMStore::IBooker &, std::string hTag, std::string folder="", bool isGlb=false)
Book the new MEs (CMS summary)
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)