|
|
Go to the documentation of this file.
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(
"");
107 sector << chambid.
sector();
109 string folderName = topFolder() +
"Wheel" +
wheel.str() +
"/Sector" + sector.str() +
"/Station" +
station.str() +
"/";
110 if (!subfolder.empty()) {
125 if (!subfolder.empty()) {
140 int sectorid = (
wheel + 3) + (sector - 1) * 5;
141 string basedir = topFolder() +
"Wheel" + wh.str() +
"/Sector" + sc.str() +
"/";
149 string hname = fullTag +
"_W" + wh.str() +
"_Sec" + sc.str();
151 if (hTag.find(
"BXDistribPhi") != string::npos) {
153 me->setBinLabel(1,
"MB1", 2);
154 me->setBinLabel(2,
"MB2", 2);
155 me->setBinLabel(3,
"MB3", 2);
156 me->setBinLabel(4,
"MB4", 2);
157 secME[sectorid][fullTag] =
me;
159 }
else if (hTag.find(
"QualDistribPhi") != string::npos) {
161 me->setBinLabel(1,
"MB1", 2);
162 me->setBinLabel(2,
"MB2", 2);
163 me->setBinLabel(3,
"MB3", 2);
164 me->setBinLabel(4,
"MB4", 2);
165 me->setBinLabel(1,
"LI", 1);
166 me->setBinLabel(2,
"LO", 1);
167 me->setBinLabel(3,
"HI", 1);
168 me->setBinLabel(4,
"HO", 1);
169 me->setBinLabel(5,
"LL", 1);
170 me->setBinLabel(6,
"HL", 1);
171 me->setBinLabel(7,
"HH", 1);
172 secME[sectorid][fullTag] =
me;
174 }
else if (hTag.find(
"Phi") != string::npos || hTag.find(
"TkvsTrig") != string::npos) {
176 me->setBinLabel(1,
"MB1", 1);
177 me->setBinLabel(2,
"MB2", 1);
178 me->setBinLabel(3,
"MB3", 1);
179 me->setBinLabel(4,
"MB4", 1);
180 secME[sectorid][fullTag] =
me;
184 if (hTag.find(
"Theta") != string::npos) {
186 me->setBinLabel(1,
"MB1", 1);
187 me->setBinLabel(2,
"MB2", 1);
188 me->setBinLabel(3,
"MB3", 1);
189 secME[sectorid][fullTag] =
me;
202 string hname = isGlb ? hTag :
fullName(hTag);
206 me->setAxisTitle(
"Sector", 1);
207 me->setAxisTitle(
"Wheel", 2);
215 if (hTag.find(
"Summary") != string::npos) {
218 basedir = topFolder() +
"Wheel" + wh.str() +
"/";
227 string hname = fullTag +
"_W" + wh.str();
231 if (hTag.find(
"Phi") != string::npos || hTag.find(
"Summary") != string::npos) {
235 me->setBinLabel(1,
"MB1", 2);
236 me->setBinLabel(2,
"MB2", 2);
237 me->setBinLabel(3,
"MB3", 2);
238 me->setBinLabel(4,
"MB4", 2);
239 me->setAxisTitle(
"Sector", 1);
245 if (hTag.find(
"Theta") != string::npos) {
249 me->setBinLabel(1,
"MB1", 2);
250 me->setBinLabel(2,
"MB2", 2);
251 me->setBinLabel(3,
"MB3", 2);
252 me->setAxisTitle(
"Sector", 1);
262 int sector =
id.sector();
263 int wheel =
id.wheel();
277 }
else if (sector == 10) {
281 return make_pair(
min,
max);
294 return make_pair(
min,
max);
const Surface::PositionType & position() const
The position (origin of the R.F.)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
void beginRun(edm::Run const &run, edm::EventSetup const &context) override
BeginRun.
EventID const & max(EventID const &lh, EventID const &rh)
EventID const & min(EventID const &lh, EventID const &rh)
virtual void setCurrentFolder(std::string const &fullpath)
std::string fullName(std::string htype)
Create fullname from histo partial name.
std::string getMEName(std::string histoTag, std::string subfolder, const DTChamberId &chambid)
Get the ME name (by chamber)
T getUntrackedParameter(std::string const &, T const &) const
void bookCmsHistos(DQMStore::IBooker &, std::string hTag, std::string folder="", bool isGlb=false)
Book the new MEs (CMS summary)
std::pair< float, float > phiRange(const DTChamberId &id)
Calculate phi range for histograms.
void setConfig(const edm::ParameterSet &ps, std::string name)
Set configuration variables.
float wirePosition(int wireNumber) const
Returns the x position in the layer of a given wire number.
~DTLocalTriggerBaseTest() override
Destructor.
int firstChannel() const
Returns the wire number of the first wire.
void bookSectorHistos(DQMStore::IBooker &, int wheel, int sector, std::string hTag, std::string folder="")
Book the new MEs (for each sector)
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
T const & get(Event const &event, InputTag const &tag) noexcept(false)
void bookWheelHistos(DQMStore::IBooker &, int wheel, std::string hTag, std::string folder="")
Book the new MEs (for each wheel)
int lastChannel() const
Returns the wire number of the last wire.
Log< level::Info, true > LogVerbatim
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
const DTTopology & specificTopology() const
int wheel() const
Return the wheel number.
int station() const
Return the station number.
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void endRun(edm::Run const &run, edm::EventSetup const &context) override
Perform client diagnostic in offline.
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
Perform client diagnostic in online.