52 std::stringstream meName;
60 int entriesBarrel = 0;
61 int entriesBarrelBeyondEff = 0;
64 for(
int w = -2 ;
w<3;
w++){
67 meName<<globalFolder_<<
"Efficiency_Roll_vs_Sector_Wheel_"<<
w;
69 myMe = igetter.
get(meName.str());
82 if(effBarrel >=
effCut_) entriesBarrelBeyondEff++;
89 if(entriesBarrel != 0){
90 percBarrel = 100*entriesBarrelBeyondEff/entriesBarrel;
96 int entriesEndcapMinus = 0;
97 int entriesEndcapMinusBeyondEff = 0;
98 float percEndcapMinus = 0;
99 int entriesEndcapPlus = 0;
100 int entriesEndcapPlusBeyondEff = 0;
101 float percEndcapPlus = 0;
107 meName<<globalFolder_<<
"Efficiency_Roll_vs_Segment_Disk_"<<
d;
108 myMe = igetter.
get(meName.str());
119 entriesEndcapMinus++;
121 if(effEndcap >=
effCut_) entriesEndcapMinusBeyondEff++;
125 if(effEndcap >=
effCut_) entriesEndcapPlusBeyondEff++;
133 if(entriesEndcapMinus != 0){
134 percEndcapMinus = 100*entriesEndcapMinusBeyondEff/entriesEndcapMinus;
138 if(entriesEndcapPlus != 0){
139 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.
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
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)
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