52 std::stringstream meName;
60 int entriesBarrel = 0;
61 int entriesBarrelBeyondEff = 0;
64 for(
int w = -2 ;
w<3;
w++){
67 if(
w <= 0) meName<<globalFolder_<<
"Efficiency_Roll_vs_Sector_Wheel_"<<
w;
68 else meName<<globalFolder_<<
"Efficiency_Roll_vs_Sector_Wheel_+"<<
w;
70 myMe = igetter.
get(meName.str());
83 if(effBarrel >=
effCut_) entriesBarrelBeyondEff++;
90 if(entriesBarrel != 0){
91 percBarrel = 100*entriesBarrelBeyondEff/entriesBarrel;
97 int entriesEndcapMinus = 0;
98 int entriesEndcapMinusBeyondEff = 0;
99 float percEndcapMinus = 0;
100 int entriesEndcapPlus = 0;
101 int entriesEndcapPlusBeyondEff = 0;
102 float percEndcapPlus = 0;
108 meName<<globalFolder_<<
"Efficiency_Roll_vs_Segment_Disk_"<<d;
109 myMe = igetter.
get(meName.str());
120 entriesEndcapMinus++;
122 if(effEndcap >=
effCut_) entriesEndcapMinusBeyondEff++;
126 if(effEndcap >=
effCut_) entriesEndcapPlusBeyondEff++;
134 if(entriesEndcapMinus != 0){
135 percEndcapMinus = 100*entriesEndcapMinusBeyondEff/entriesEndcapMinus;
139 if(entriesEndcapPlus != 0){
140 percEndcapPlus = 100*entriesEndcapPlusBeyondEff/entriesEndcapPlus;
MonitorElement * EffBarrelRoll
T getUntrackedParameter(std::string const &, T const &) const
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual ~RPCEfficiencyShiftHisto()
Destructor.
MonitorElement * get(const std::string &path)
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 dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
std::string globalFolder_
int getNbinsY(void) const
get # of bins in Y-axis
MonitorElement * book1D(Args &&...args)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
RPCEfficiencyShiftHisto(const edm::ParameterSet &iConfig)
Constructor.
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
double getBinContent(int binx) const
get content of bin (1-D)
MonitorElement * RollPercentage
int getNbinsX(void) const
get # of bins in X-axis
MonitorElement * EffEndcapMinusRoll
MonitorElement * EffEndcapPlusRoll