CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions
RPCSummaryMapHisto Struct Reference

#include <RPCSummaryMapHisto.h>

Public Types

typedef dqm::implementation::IBooker IBooker
 
typedef dqm::implementation::MonitorElement MonitorElement
 

Static Public Member Functions

static MonitorElementbook (IBooker &booker, const std::string &name, const std::string &title)
 
static void setBinBarrel (MonitorElement *me, const int wheel, const int sector, const double value)
 
static void setBinEndcap (MonitorElement *me, const int disk, const int sector, const double value)
 
static void setBinsBarrel (MonitorElement *me, const double value)
 
static void setBinsEndcap (MonitorElement *me, const double value)
 

Detailed Description

Definition at line 7 of file RPCSummaryMapHisto.h.

Member Typedef Documentation

◆ IBooker

Definition at line 9 of file RPCSummaryMapHisto.h.

◆ MonitorElement

Definition at line 8 of file RPCSummaryMapHisto.h.

Member Function Documentation

◆ book()

MonitorElement * RPCSummaryMapHisto::book ( IBooker booker,
const std::string &  name,
const std::string &  title 
)
static

Definition at line 7 of file RPCSummaryMapHisto.cc.

7  {
8  MonitorElement* me = booker.book2D(name, title, 15, -7.5, 7.5, 12, 0.5, 12.5);
9  me->getTH1()->SetMinimum(-1e-5);
10 
11  // Customize the 2d histogram
12  for (int sec = 1; sec <= 12; ++sec) {
13  me->setBinLabel(sec, fmt::format("Sec{}", sec), 2);
14  }
15 
16  for (int disk = 1; disk < 4; ++disk) {
17  me->setBinLabel(11 + disk, fmt::format("Disk{}", disk), 1);
18  me->setBinLabel(5 - disk, fmt::format("Disk{}", -disk), 1);
19  }
20 
21  for (int wheel = -2; wheel <= 2; ++wheel) {
22  me->setBinLabel(8 + wheel, fmt::format("Wheel{}", wheel), 1);
23  }
24 
25  // Fill with -1 as the default value
26  for (int sec = 1; sec <= 12; ++sec) {
27  for (int xbin = 1; xbin <= 15; ++xbin) {
28  me->setBinContent(xbin, sec, -1);
29  }
30  }
31 
32  return me;
33 }

References dqm::implementation::IBooker::book2D(), MillePedeFileConverter_cfg::e, dqm-mbProfile::format, hlt_dqm_clientPB-live_cfg::me, Skims_PA_cff::name, fileinputsource_cfi::sec, runGCPTkAlMap::title, and makeMuonMisalignmentScenario::wheel.

Referenced by RPCEventSummary::dqmEndLuminosityBlock(), RPCDataCertification::myBooker(), RPCDCSSummary::myBooker(), and RPCDaqInfo::myBooker().

◆ setBinBarrel()

void RPCSummaryMapHisto::setBinBarrel ( MonitorElement me,
const int  wheel,
const int  sector,
const double  value 
)
static

Definition at line 51 of file RPCSummaryMapHisto.cc.

51  {
52  if (std::abs(wheel) > 2 or sector < 1 or sector > 12)
53  return;
54  me->setBinContent(8 + wheel, sector, value);
55 }

References funct::abs(), hlt_dqm_clientPB-live_cfg::me, or, and makeMuonMisalignmentScenario::wheel.

Referenced by setBinsBarrel().

◆ setBinEndcap()

void RPCSummaryMapHisto::setBinEndcap ( MonitorElement me,
const int  disk,
const int  sector,
const double  value 
)
static

Definition at line 57 of file RPCSummaryMapHisto.cc.

57  {
58  if (std::abs(disk) < 1 or std::abs(disk) > 4)
59  return;
60  if (sector < 1 or sector > 6)
61  return;
62 
63  if (disk > 0) {
64  me->setBinContent(11 + disk, sector, value);
65  } else {
66  me->setBinContent(5 + disk, sector, value);
67  }
68 }

References funct::abs(), hlt_dqm_clientPB-live_cfg::me, and or.

Referenced by setBinsEndcap().

◆ setBinsBarrel()

void RPCSummaryMapHisto::setBinsBarrel ( MonitorElement me,
const double  value 
)
static

Definition at line 35 of file RPCSummaryMapHisto.cc.

35  {
36  for (int wheel = -2; wheel <= 2; ++wheel) {
37  for (int sector = 1; sector <= 12; ++sector) {
38  setBinBarrel(me, wheel, sector, value);
39  }
40  }
41 }

References hlt_dqm_clientPB-live_cfg::me, setBinBarrel(), and makeMuonMisalignmentScenario::wheel.

Referenced by RPCEventSummary::dqmEndLuminosityBlock(), RPCDataCertification::myBooker(), RPCDCSSummary::myBooker(), and RPCDaqInfo::myBooker().

◆ setBinsEndcap()

void RPCSummaryMapHisto::setBinsEndcap ( MonitorElement me,
const double  value 
)
static

Definition at line 43 of file RPCSummaryMapHisto.cc.

43  {
44  for (int disk = -4; disk <= 4; ++disk) {
45  for (int sector = 1; sector <= 6; ++sector) {
46  setBinEndcap(me, disk, sector, value);
47  }
48  }
49 }

References hlt_dqm_clientPB-live_cfg::me, and setBinEndcap().

Referenced by RPCEventSummary::dqmEndLuminosityBlock(), RPCDataCertification::myBooker(), RPCDCSSummary::myBooker(), and RPCDaqInfo::myBooker().

runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
dqm-mbProfile.format
format
Definition: dqm-mbProfile.py:16
RPCSummaryMapHisto::setBinEndcap
static void setBinEndcap(MonitorElement *me, const int disk, const int sector, const double value)
Definition: RPCSummaryMapHisto.cc:57
RPCSummaryMapHisto::setBinBarrel
static void setBinBarrel(MonitorElement *me, const int wheel, const int sector, const double value)
Definition: RPCSummaryMapHisto.cc:51
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
value
Definition: value.py:1
fileinputsource_cfi.sec
sec
Definition: fileinputsource_cfi.py:94
dqm::implementation::IBooker::book2D
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
or
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37