41 muonGeom = &context.
getData(muonGeomToken_);
51 LogVerbatim(
"DTDQM|DTMonitorClient|DTLocalTriggerTest")
52 <<
"[" << testName <<
"Test]: End of LS transition, performing the DQM client operation";
59 LogVerbatim(
"DTDQM|DTMonitorClient|DTLocalTriggerTest") <<
"[" << testName <<
"Test]: " << nLumiSegs <<
" updates";
61 runClientDiagnostic(ibooker, igetter);
68 LogVerbatim(
category()) <<
"[" << testName <<
"Test] Client called in offline mode, performing client operations";
69 runClientDiagnostic(ibooker, igetter);
87 trigSources.push_back(
"");
102 wheel << chambid.
wheel();
106 sector << chambid.
sector();
108 string folderName = topFolder() +
"Wheel" + wheel.str() +
"/Sector" + sector.str() +
"/Station" + station.str() +
"/";
109 if (!subfolder.empty()) {
110 folderName += subfolder +
"/";
113 string histoname = sourceFolder + folderName +
fullName(histoTag) +
"_W" + wheel.str() +
"_Sec" + sector.str() +
114 "_St" + station.str();
123 string folderName = topFolder() +
"Wheel" + wheel.str() +
"/";
124 if (!subfolder.empty()) {
125 folderName += subfolder +
"/";
128 string histoname = sourceFolder + folderName +
fullName(histoTag) +
"_W" + wheel.str();
139 int sectorid = (wheel + 3) + (sector - 1) * 5;
140 string basedir = topFolder() +
"Wheel" + wh.str() +
"/Sector" + sc.str() +
"/";
141 if (!folder.empty()) {
142 basedir += folder +
"/";
148 string hname = fullTag +
"_W" + wh.str() +
"_Sec" + sc.str();
149 LogTrace(
category()) <<
"[" << testName <<
"Test]: booking " << basedir << hname;
150 if (hTag.find(
"BXDistribPhi") != string::npos) {
156 secME[sectorid][fullTag] =
me;
158 }
else if (hTag.find(
"QualDistribPhi") != string::npos) {
171 secME[sectorid][fullTag] =
me;
173 }
else if (hTag.find(
"Phi") != string::npos || hTag.find(
"TkvsTrig") != string::npos) {
179 secME[sectorid][fullTag] =
me;
183 if (hTag.find(
"Theta") != string::npos) {
188 secME[sectorid][fullTag] =
me;
195 if (!folder.empty()) {
196 basedir += folder +
"/";
201 string hname = isGlb ? hTag :
fullName(hTag);
202 LogTrace(
category()) <<
"[" << testName <<
"Test]: booking " << basedir << hname;
214 if (hTag.find(
"Summary") != string::npos) {
215 basedir = topFolder();
217 basedir = topFolder() +
"Wheel" + wh.str() +
"/";
219 if (!folder.empty()) {
220 basedir += folder +
"/";
226 string hname = fullTag +
"_W" + wh.str();
228 LogTrace(
category()) <<
"[" << testName <<
"Test]: booking " << basedir << hname;
230 if (hTag.find(
"Phi") != string::npos || hTag.find(
"Summary") != string::npos) {
240 whME[wheel][fullTag] =
me;
244 if (hTag.find(
"Theta") != string::npos) {
253 whME[wheel][fullTag] =
me;
260 int station =
id.station();
261 int sector =
id.sector();
262 int wheel =
id.wheel();
274 layer2 = muonGeom->layer(
DTLayerId(wheel, station, 13, 1, 1));
276 }
else if (sector == 10) {
277 layer2 = muonGeom->layer(
DTLayerId(wheel, station, 14, 1, 1));
280 return make_pair(min, max);
293 return make_pair(min, max);
Log< level::Info, true > LogVerbatim
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.
virtual void setCurrentFolder(std::string const &fullpath)
static const char category[]
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.
constexpr std::array< uint8_t, layerIndexSize > layer
int firstChannel() const
Returns the wire number of the first wire.
bool getData(T &iHolder) const
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.
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
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)
void setConfig(const edm::ParameterSet &ps, std::string name)
Set configuration variables.
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
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)