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);
69 runClientDiagnostic(ibooker, igetter);
87 trigSources.push_back(
"");
109 if (!subfolder.empty()) {
124 if (!subfolder.empty()) {
140 string basedir = topFolder() +
"Wheel" + wh.str() +
"/Sector" + sc.str() +
"/";
148 string hname = fullTag +
"_W" + wh.str() +
"_Sec" + sc.str();
150 if (hTag.find(
"BXDistribPhi") != string::npos) {
152 me->setBinLabel(1,
"MB1", 2);
153 me->setBinLabel(2,
"MB2", 2);
154 me->setBinLabel(3,
"MB3", 2);
155 me->setBinLabel(4,
"MB4", 2);
156 secME[sectorid][fullTag] =
me;
158 }
else if (hTag.find(
"QualDistribPhi") != string::npos) {
160 me->setBinLabel(1,
"MB1", 2);
161 me->setBinLabel(2,
"MB2", 2);
162 me->setBinLabel(3,
"MB3", 2);
163 me->setBinLabel(4,
"MB4", 2);
164 me->setBinLabel(1,
"LI", 1);
165 me->setBinLabel(2,
"LO", 1);
166 me->setBinLabel(3,
"HI", 1);
167 me->setBinLabel(4,
"HO", 1);
168 me->setBinLabel(5,
"LL", 1);
169 me->setBinLabel(6,
"HL", 1);
170 me->setBinLabel(7,
"HH", 1);
171 secME[sectorid][fullTag] =
me;
173 }
else if (hTag.find(
"Phi") != string::npos || hTag.find(
"TkvsTrig") != string::npos) {
175 me->setBinLabel(1,
"MB1", 1);
176 me->setBinLabel(2,
"MB2", 1);
177 me->setBinLabel(3,
"MB3", 1);
178 me->setBinLabel(4,
"MB4", 1);
179 secME[sectorid][fullTag] =
me;
183 if (hTag.find(
"Theta") != string::npos) {
185 me->setBinLabel(1,
"MB1", 1);
186 me->setBinLabel(2,
"MB2", 1);
187 me->setBinLabel(3,
"MB3", 1);
188 secME[sectorid][fullTag] =
me;
201 string hname = isGlb ? hTag :
fullName(hTag);
205 me->setAxisTitle(
"Sector", 1);
206 me->setAxisTitle(
"Wheel", 2);
214 if (hTag.find(
"Summary") != string::npos) {
217 basedir = topFolder() +
"Wheel" + wh.str() +
"/";
226 string hname = fullTag +
"_W" + wh.str();
230 if (hTag.find(
"Phi") != string::npos || hTag.find(
"Summary") != string::npos) {
234 me->setBinLabel(1,
"MB1", 2);
235 me->setBinLabel(2,
"MB2", 2);
236 me->setBinLabel(3,
"MB3", 2);
237 me->setBinLabel(4,
"MB4", 2);
238 me->setAxisTitle(
"Sector", 1);
244 if (hTag.find(
"Theta") != string::npos) {
248 me->setBinLabel(1,
"MB1", 2);
249 me->setBinLabel(2,
"MB2", 2);
250 me->setBinLabel(3,
"MB3", 2);
251 me->setAxisTitle(
"Sector", 1);
262 int wheel =
id.wheel();
265 const DTTopology& topo = layer->specificTopology();
275 lposx = layer->toLocal(layer2->
position()).
x();
276 }
else if (
sector == 10) {
278 lposx = layer->toLocal(layer2->
position()).
x();
280 return make_pair(
min,
max);
293 return make_pair(
min,
max);
Log< level::Info, true > LogVerbatim
int station() const
Return the station number.
virtual void setCurrentFolder(std::string const &fullpath)
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
Perform client diagnostic in online.
T getUntrackedParameter(std::string const &, T const &) const
int firstChannel() const
Returns the wire number of the first wire.
EventID const & min(EventID const &lh, EventID const &rh)
const DTTopology & specificTopology() const
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())
const Surface::PositionType & position() const
The position (origin of the R.F.)
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
int wheel() const
Return the wheel number.
void bookSectorHistos(DQMStore::IBooker &, int wheel, int sector, std::string hTag, std::string folder="")
Book the new MEs (for each sector)
int lastChannel() const
Returns the wire number of the last wire.
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())
~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)
float wirePosition(int wireNumber) const
Returns the x position in the layer of a given wire number.
void bookCmsHistos(DQMStore::IBooker &, std::string hTag, std::string folder="", bool isGlb=false)
Book the new MEs (CMS summary)