23 prefixDir_ = subsystemFolder +
"/" + recHitTypeFolder;
35 std::vector<RPCDetId>& detIdVector,
38 for (
unsigned int i = 0;
i < meVector.size();
i++) {
41 if (meName.find(clientHistoName) != std::string::npos) {
49 edm::LogVerbatim(
"rpceventsummary") <<
"[RPCOccupancyTest]: Client Operation";
69 std::stringstream histoName;
72 histoName <<
"RPC_Active_Channel_Fractions";
77 histoName <<
"RPC_Active_Inactive_Strips";
78 Active_Dead = ibooker.
book1D(histoName.str().c_str(), histoName.str().c_str(), 2, 0.5, 2.5);
82 for (
int w = -2;
w <= 2;
w++) {
85 histoName <<
"AsymmetryLeftRight_Roll_vs_Sector_Wheel" <<
w;
100 histoName <<
"AsymmetryLeftRight_Ring_vs_Segment_Disk" <<
d;
112 if (detId.
region() == 0) {
126 if (detId.
region() == 0) {
135 : yBin = (detId.
ring() - 1) * 3 - detId.
roll() + 1);
140 float FOccupancy = 0;
141 float BOccupancy = 0;
146 if (stripEntries > 0) {
149 if (
strip <= stripInRoll / 2) {
158 asym = fabs((FOccupancy - BOccupancy) / totEnt);
Log< level::Info, true > LogVerbatim
T getUntrackedParameter(std::string const &, T const &) const
void clientOperation() override
MonitorElement * AsyMeWheel[5]
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * Active_Fraction
std::vector< RPCDetId > myDetIds_
virtual int getNbinsX() const
get # of bins in X-axis
virtual double getEntries() const
get # of entries
MonitorElement * AsyMeDisk[10]
std::string globalFolder_
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)
virtual double getBinContent(int binx) const
get content of bin (1-D)
void fillGlobalME(RPCDetId &, MonitorElement *)
void myBooker(DQMStore::IBooker &) override
int detId2RollNr(const RPCDetId &_id)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * Active_Dead
static MonitorElement * bookBarrel(IBooker &booker, const int wheel, const std::string &prefix, const std::string &title, const bool useRollInfo)
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
RPCOccupancyTest(const edm::ParameterSet &ps)
void getMonitorElements(std::vector< MonitorElement * > &, std::vector< RPCDetId > &, std::string &) override
void beginJob(std::string &) override
std::vector< MonitorElement * > myOccupancyMe_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
static MonitorElement * bookEndcap(IBooker &booker, const int disk, const std::string &prefix, const std::string &title, const bool useRollInfo)
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.