62 std::stringstream meName;
70 int entriesBarrel = 0;
71 int entriesBarrelBeyondEff = 0;
74 for(
int w = -2 ;
w<3;
w++){
77 if(
w <= 0) meName<<globalFolder_<<
"Efficiency_Roll_vs_Sector_Wheel_"<<
w;
78 else meName<<globalFolder_<<
"Efficiency_Roll_vs_Sector_Wheel_+"<<
w;
84 for(
int r = 1;r <= myMe->
getNbinsY(); r++){
93 if(effBarrel >=
effCut_) entriesBarrelBeyondEff++;
100 if(entriesBarrel != 0){
101 percBarrel = 100*entriesBarrelBeyondEff/entriesBarrel;
107 int entriesEndcapMinus = 0;
108 int entriesEndcapMinusBeyondEff = 0;
109 float percEndcapMinus = 0;
110 int entriesEndcapPlus = 0;
111 int entriesEndcapPlusBeyondEff = 0;
112 float percEndcapPlus = 0;
118 meName<<globalFolder_<<
"Efficiency_Roll_vs_Segment_Disk_"<<d;
119 myMe =
dbe_->
get(meName.str());
130 entriesEndcapMinus++;
132 if(effEndcap >=
effCut_) entriesEndcapMinusBeyondEff++;
136 if(effEndcap >=
effCut_) entriesEndcapPlusBeyondEff++;
144 if(entriesEndcapMinus != 0){
145 percEndcapMinus = 100*entriesEndcapMinusBeyondEff/entriesEndcapMinus;
149 if(entriesEndcapPlus != 0){
150 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 save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
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)
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