61 std::stringstream meName;
69 int entriesBarrel = 0;
70 int entriesBarrelBeyondEff = 0;
73 for(
int w = -2 ;
w<3;
w++){
76 if(
w <= 0) meName<<globalFolder_<<
"Efficiency_Roll_vs_Sector_Wheel_"<<
w;
77 else meName<<globalFolder_<<
"Efficiency_Roll_vs_Sector_Wheel_+"<<
w;
83 for(
int r = 1;r <= myMe->
getNbinsY(); r++){
92 if(effBarrel >=
effCut_) entriesBarrelBeyondEff++;
99 if(entriesBarrel != 0){
100 percBarrel = 100*entriesBarrelBeyondEff/entriesBarrel;
106 int entriesEndcapMinus = 0;
107 int entriesEndcapMinusBeyondEff = 0;
108 float percEndcapMinus = 0;
109 int entriesEndcapPlus = 0;
110 int entriesEndcapPlusBeyondEff = 0;
111 float percEndcapPlus = 0;
117 meName<<globalFolder_<<
"Efficiency_Roll_vs_Segment_Disk_"<<d;
118 myMe =
dbe_->
get(meName.str());
129 entriesEndcapMinus++;
131 if(effEndcap >=
effCut_) entriesEndcapMinusBeyondEff++;
135 if(effEndcap >=
effCut_) entriesEndcapPlusBeyondEff++;
143 if(entriesEndcapMinus != 0){
144 percEndcapMinus = 100*entriesEndcapMinusBeyondEff/entriesEndcapMinus;
148 if(entriesEndcapPlus != 0){
149 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 * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void endRun(const edm::Run &r, const edm::EventSetup &c)
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
void beginRun(const edm::Run &r, const edm::EventSetup &c)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
RPCEfficiencyShiftHisto(const edm::ParameterSet &iConfig)
Constructor.
double getBinContent(int binx) const
get content of bin (1-D)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
MonitorElement * RollPercentage
int getNbinsX(void) const
get # of bins in X-axis
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
MonitorElement * EffEndcapMinusRoll
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Analyze.
void setCurrentFolder(const std::string &fullpath)
MonitorElement * EffEndcapPlusRoll