99 os=
"Efficiency_Roll_vs_Sector_Wheel_-2";
101 os=
"Efficiency_Roll_vs_Sector_Wheel_-1";
103 os=
"Efficiency_Roll_vs_Sector_Wheel_0";
105 os=
"Efficiency_Roll_vs_Sector_Wheel_+1";
107 os=
"Efficiency_Roll_vs_Sector_Wheel_+2";
126 os=
"Efficiency_Roll_vs_Segment_Disk_-3";
128 os=
"Efficiency_Roll_vs_Segment_Disk_-2";
130 os=
"Efficiency_Roll_vs_Segment_Disk_-1";
132 os=
"Efficiency_Roll_vs_Segment_Disk_1";
134 os=
"Efficiency_Roll_vs_Segment_Disk_2";
136 os=
"Efficiency_Roll_vs_Segment_Disk_3";
178 GregD1R2=
dbe->
book1D(
"GregDistroD1R2",
"Efficiency for Station 1 Ring 2",36,0.5,36.5);
179 GregD1R3=
dbe->
book1D(
"GregDistroD1R3",
"Efficiency for Station 1 Ring 3",36,0.5,36.5);
180 GregD2R2=
dbe->
book1D(
"GregDistroD2R2",
"Efficiency for Station 2 Ring 2",36,0.5,36.5);
181 GregD2R3=
dbe->
book1D(
"GregDistroD2R3",
"Efficiency for Station 2 Ring 3",36,0.5,36.5);
182 GregD3R2=
dbe->
book1D(
"GregDistroD3R2",
"Efficiency for Station 3 Ring 2",36,0.5,36.5);
183 GregD3R3=
dbe->
book1D(
"GregDistroD3R3",
"Efficiency for Station 3 Ring 3",36,0.5,36.5);
184 GregDm1R2=
dbe->
book1D(
"GregDistroDm1R2",
"Efficiency for Station -1 Ring 2",36,0.5,36.5);
185 GregDm1R3=
dbe->
book1D(
"GregDistroDm1R3",
"Efficiency for Station -1 Ring 3",36,0.5,36.5);
186 GregDm2R2=
dbe->
book1D(
"GregDistroDm2R2",
"Efficiency for Station -2 Ring 2",36,0.5,36.5);
187 GregDm2R3=
dbe->
book1D(
"GregDistroDm2R3",
"Efficiency for Station -2 Ring 3",36,0.5,36.5);
188 GregDm3R2=
dbe->
book1D(
"GregDistroDm3R2",
"Efficiency for Station -3 Ring 2",36,0.5,36.5);
189 GregDm3R3=
dbe->
book1D(
"GregDistroDm3R3",
"Efficiency for Station -3 Ring 3",36,0.5,36.5);
191 OcGregD1R2=
dbe->
book1D(
"OcGregDistroD1R2",
"Occupancy Distribution for Station 1 Ring 2",36,0.5,36.5);
192 OcGregD1R3=
dbe->
book1D(
"OcGregDistroD1R3",
"Occupancy Distribution for Station 1 Ring 3",36,0.5,36.5);
193 OcGregD2R2=
dbe->
book1D(
"OcGregDistroD2R2",
"Occupancy Distribution for Station 2 Ring 2",36,0.5,36.5);
194 OcGregD2R3=
dbe->
book1D(
"OcGregDistroD2R3",
"Occupancy Distribution for Station 2 Ring 3",36,0.5,36.5);
195 OcGregD3R2=
dbe->
book1D(
"OcGregDistroD3R2",
"Occupancy Distribution for Station 3 Ring 2",36,0.5,36.5);
196 OcGregD3R3=
dbe->
book1D(
"OcGregDistroD3R3",
"Occupancy Distribution for Station 3 Ring 3",36,0.5,36.5);
197 OcGregDm1R2=
dbe->
book1D(
"OcGregDistroDm1R2",
"Occupancy Distribution for Station -1 Ring 2",36,0.5,36.5);
198 OcGregDm1R3=
dbe->
book1D(
"OcGregDistroDm1R3",
"Occupancy Distribution for Station -1 Ring 3",36,0.5,36.5);
199 OcGregDm2R2=
dbe->
book1D(
"OcGregDistroDm2R2",
"Occupancy Distribution for Station -2 Ring 2",36,0.5,36.5);
200 OcGregDm2R3=
dbe->
book1D(
"OcGregDistroDm2R3",
"Occupancy Distribution for Station -2 Ring 3",36,0.5,36.5);
201 OcGregDm3R2=
dbe->
book1D(
"OcGregDistroDm3R2",
"Occupancy Distribution for Station -3 Ring 2",36,0.5,36.5);
202 OcGregDm3R3=
dbe->
book1D(
"OcGregDistroDm3R3",
"Occupancy Distribution for Station -3 Ring 3",36,0.5,36.5);
204 ExGregD1R2=
dbe->
book1D(
"ExGregDistroD1R2",
"Expected Distribution for Station 1 Ring 2",36,0.5,36.5);
205 ExGregD1R3=
dbe->
book1D(
"ExGregDistroD1R3",
"Expected Distribution for Station 1 Ring 3",36,0.5,36.5);
206 ExGregD2R2=
dbe->
book1D(
"ExGregDistroD2R2",
"Expected Distribution for Station 2 Ring 2",36,0.5,36.5);
207 ExGregD2R3=
dbe->
book1D(
"ExGregDistroD2R3",
"Expected Distribution for Station 2 Ring 3",36,0.5,36.5);
208 ExGregD3R2=
dbe->
book1D(
"ExGregDistroD3R2",
"Expected Distribution for Station 3 Ring 2",36,0.5,36.5);
209 ExGregD3R3=
dbe->
book1D(
"ExGregDistroD3R3",
"Expected Distribution for Station 3 Ring 3",36,0.5,36.5);
210 ExGregDm1R2=
dbe->
book1D(
"ExGregDistroDm1R2",
"Expected Distribution for Station -1 Ring 2",36,0.5,36.5);
211 ExGregDm1R3=
dbe->
book1D(
"ExGregDistroDm1R3",
"Expected Distribution for Station -1 Ring 3",36,0.5,36.5);
212 ExGregDm2R2=
dbe->
book1D(
"ExGregDistroDm2R2",
"Expected Distribution for Station -2 Ring 2",36,0.5,36.5);
213 ExGregDm2R3=
dbe->
book1D(
"ExGregDistroDm2R3",
"Expected Distribution for Station -2 Ring 3",36,0.5,36.5);
214 ExGregDm3R2=
dbe->
book1D(
"ExGregDistroDm3R2",
"Expected Distribution for Station -3 Ring 2",36,0.5,36.5);
215 ExGregDm3R3=
dbe->
book1D(
"ExGregDistroDm3R3",
"Expected Distribution for Station -3 Ring 3",36,0.5,36.5);
235 LogDebug(
"rpcefficiencysecond")<<
"Getting the RPC Geometry";
242 std::stringstream binLabel;
244 LogDebug(
"rpcefficiencysecond")<<
"Default -1 for Barrel GUI";
246 for(
int x = 1;
x<=12;
x++){
247 for(
int y = 1;
y<=21;
y++){
256 LogDebug(
"rpcefficiencysecond")<<
"Default -1 for EndCap GUI";
258 for(
int x = 1;
x<=36;
x++){
259 for(
int y = 1;
y<=6;
y++){
272 for(
int j=0;
j<5;
j++){
282 for(
int j=0;
j<6;
j++){
292 for(TrackingGeometry::DetContainer::const_iterator it=rpcGeo->dets().begin();it<rpcGeo->dets().end();it++){
293 if(dynamic_cast< RPCChamber* >( *it ) != 0 ){
295 std::vector< const RPCRoll*> roles = (ch->
rolls());
296 for(std::vector<const RPCRoll*>::const_iterator r = roles.begin();r != roles.end(); ++
r){
332 std::stringstream meIdRPC, meIdDT;
335 meIdRPC<<
folderPath<<
"MuonSegEff/RPCDataOccupancyFromDT_"<<rpcId.
rawId();
336 meIdDT<<
folderPath<<
"MuonSegEff/ExpectedOccupancyFromDT_"<<rpcId.
rawId();
342 int NumberWithOutPrediction=0;
351 float sumbuffef = 0.;
352 float sumbuffer = 0.;
353 float averageeff = 0.;
355 int NumberStripsPointed = 0;
361 for(
int i=1;
i<=int((*r)->nstrips());++
i){
364 LogDebug(
"rpcefficiencysecond")<<
"Inside the If";
369 sumbuffef=sumbuffef+buffef;
370 sumbuffer = sumbuffer + buffer*buffer;
371 NumberStripsPointed++;
373 NumberWithOutPrediction++;
375 LogDebug(
"rpcefficiencysecond")<<
"Strip="<<
i<<
" RPC="<<
histoRPC->
getBinContent(
i)<<
" DT="<<
histoDT->
getBinContent(
i)<<
" buffef="<<buffef<<
" buffer="<<buffer<<
" sumbuffef="<<sumbuffef<<
" sumbuffer="<<sumbuffer<<
" NumberStripsPointed="<<NumberStripsPointed<<
" NumberWithOutPrediction"<<NumberWithOutPrediction;
381 if(NumberStripsPointed!=0){
382 averageeff = (sumbuffef/float(NumberStripsPointed))*100.;
388 int Ring = rpcId.
ring();
391 ef = float(o)/float(p);
392 er =
sqrt(ef*(1.-ef)/
float(p));
401 int wheel = rpcId.
ring();
402 int sector = rpcId.
sector();
403 int region = rpcId.
region();
411 else if(rpcId.
station()==1&&rpcId.
layer()==2) layer = 2;
412 else if(rpcId.
station()==2&&rpcId.
layer()==1) layer = 3;
413 else if(rpcId.
station()==2&&rpcId.
layer()==2) layer = 4;
414 else if(rpcId.
station()==3) layer = 5;
415 else if(rpcId.
station()==4) layer = 6;
437 xBin= (*r)->id().sector();
492 std::stringstream meIdRPC,meIdCSC;
496 meIdRPC<<
folderPath<<
"MuonSegEff/RPCDataOccupancyFromCSC_"<<rpcId.
rawId();
497 meIdCSC<<
folderPath<<
"MuonSegEff/ExpectedOccupancyFromCSC_"<<rpcId.
rawId();
499 meIdPRO =
"Profile_"+ rpcsrv.
name();
505 int NumberWithOutPrediction=0;
516 float averageeff = 0;
518 int NumberStripsPointed = 0;
524 for(
int i=1;
i<=int((*r)->nstrips());++
i){
526 LogDebug(
"rpcefficiencysecond")<<
"Inside the If";
531 sumbuffef=sumbuffef+buffef;
532 sumbuffer = sumbuffer + buffer*buffer;
533 NumberStripsPointed++;
535 NumberWithOutPrediction++;
538 LogDebug(
"rpcefficiencysecond")<<
"Strip="<<
i<<
" RPC="<<
histoRPC->
getBinContent(
i)<<
" CSC="<<
histoCSC->
getBinContent(
i)<<
" buffef="<<buffef<<
" buffer="<<buffer<<
" sumbuffef="<<sumbuffef<<
" sumbuffer="<<sumbuffer<<
" NumberStripsPointed="<<NumberStripsPointed<<
" NumberWithOutPrediction"<<NumberWithOutPrediction;
543 if(NumberStripsPointed!=0){
544 averageeff = (sumbuffef/float(NumberStripsPointed))*100.;
555 ef = float(o)/float(p);
556 er =
sqrt(ef*(1.-ef)/
float(p));
571 }
else if(rpcId.
region()==-1){
595 int yBin= ((*r)->id().ring()-1)*3-(*r)->id().roll()+1;
MonitorElement * EffGlobD1
MonitorElement * ExpLayerW1
MonitorElement * ExpLayerWm1
MonitorElement * OcGregDm2R3
MonitorElement * GregD3R2
MonitorElement * GregDm1R3
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * ExGregD1R3
MonitorElement * ExGregDm3R3
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * ExGregDm2R3
MonitorElement * OcGregD3R2
MonitorElement * OcGregD1R3
MonitorElement * ExGregD3R2
RPCEfficiencySecond(const edm::ParameterSet &)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * histoCSC
void setAxisRange(double xmin, double xmax, int axis=1)
set x-, y- or z-axis range (axis=1, 2, 3 respectively)
MonitorElement * EffDistroD2
MonitorElement * GregD2R3
MonitorElement * EffDistroD1
MonitorElement * Diskm2Summary
MonitorElement * sectorEffWm2
MonitorElement * OcGregDm3R3
MonitorElement * ExGregDm1R2
MonitorElement * OcGregD2R2
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)
MonitorElement * EffDistroWm2
void labelXAxisSegment(MonitorElement *myMe)
void labelYAxisRoll(MonitorElement *myMe, int region, int ring, bool useRollInfo)
MonitorElement * Disk3Summary
MonitorElement * GregDm3R3
MonitorElement * ExsectorEffW2
MonitorElement * GregDm2R2
MonitorElement * EffGlobW1
MonitorElement * GregD3R3
MonitorElement * EffGlobD2
MonitorElement * OcsectorEffWm2
MonitorElement * ExsectorEffW1
MonitorElement * EffDistroDm1
MonitorElement * EffGlobW0
MonitorElement * ObsLayerWm1
uint32_t rawId() const
get the raw id
MonitorElement * ExpLayerWm2
MonitorElement * ExGregDm2R2
MonitorElement * EffDistroDm3
MonitorElement * ExsectorEffWm2
MonitorElement * EffDistroWm1
virtual void endRun(const edm::Run &, const edm::EventSetup &)
MonitorElement * Diskm3Summary
virtual std::string name()
void labelYAxisRing(MonitorElement *myMe, int numberOfRings, bool useRollInfo)
MonitorElement * Wheelm1Summary
MonitorElement * ObsLayerW0
MonitorElement * EffGlobW2
MonitorElement * OcGregD3R3
MonitorElement * EffDistroD3
MonitorElement * Wheel1Summary
MonitorElement * sectorEffW2
MonitorElement * EffGlobDm2
const std::vector< const RPCRoll * > & rolls() const
Return the Rolls.
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
MonitorElement * OcGregD1R2
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
MonitorElement * OcsectorEffW0
MonitorElement * GregDm1R2
virtual std::string shortname()
MonitorElement * Disk1Summary
void labelXAxisSector(MonitorElement *myMe)
MonitorElement * GregD1R3
MonitorElement * EffDistroW2
MonitorElement * sectorEffW1
MonitorElement * ObsLayerWm2
MonitorElement * GregDm2R3
MonitorElement * OcGregDm1R3
MonitorElement * ExsectorEffW0
MonitorElement * ObsLayerW1
int detId2RollNr(const RPCDetId &_id)
MonitorElement * EffGlobD3
MonitorElement * OcGregDm1R2
MonitorElement * EffDistroW1
MonitorElement * Diskm1Summary
MonitorElement * GregD1R2
MonitorElement * OcGregD2R3
MonitorElement * GregDm3R2
TH1F * getTH1F(void) const
MonitorElement * ExGregD2R2
MonitorElement * Wheel2Summary
MonitorElement * Disk2Summary
MonitorElement * ExpLayerW0
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
MonitorElement * EffGlobWm1
MonitorElement * GregD2R2
MonitorElement * EffGlobWm2
virtual void beginRun(const edm::Run &, const edm::EventSetup &iSetup)
MonitorElement * EffDistroDm2
double getBinContent(int binx) const
get content of bin (1-D)
MonitorElement * ExGregDm1R3
MonitorElement * EffDistroW0
MonitorElement * Wheel0Summary
MonitorElement * OcsectorEffW2
MonitorElement * EffGlobDm3
MonitorElement * ExsectorEffWm1
MonitorElement * ExpLayerW2
MonitorElement * OcsectorEffW1
MonitorElement * Wheelm2Summary
MonitorElement * sectorEffW0
MonitorElement * ExGregD1R2
MonitorElement * ExGregD3R3
MonitorElement * OcsectorEffWm1
MonitorElement * ExGregD2R3
MonitorElement * OcGregDm2R2
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
MonitorElement * EffGlobDm1
MonitorElement * ObsLayerW2
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * histoRPC
MonitorElement * sectorEffWm1
void setCurrentFolder(const std::string &fullpath)
MonitorElement * ExGregDm3R2
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
MonitorElement * OcGregDm3R2