21 if(sector1==13) sector1=4;
22 if(sector1==14) sector1=10;
24 if(sector2==13) sector2=4;
25 if(sector2==14) sector2=10;
28 if(distance>6) distance = 12-
distance;
70 std::stringstream sstr;
71 for(
int i = 1;
i<=15;
i++ ){
78 for(
int i = 1;
i<=15;
i++ ){
87 folder =
folderPath+
"MuonSegEff/Residuals/Barrel";
91 std::stringstream histoName, histoTitle;
93 for (
int layer = 1 ; layer<= 6 ;layer++){
96 histoName<<
"GlobalResidualsClu1La"<<layer;
97 histoTitle<<
"RPC Residuals Layer "<<layer<<
" Cluster Size 1";
102 histoName<<
"GlobalResidualsClu2La"<<layer;
103 histoTitle<<
"RPC Residuals Layer "<<layer<<
" Cluster Size 2";
108 histoName<<
"GlobalResidualsClu3La"<<layer;
109 histoTitle<<
"RPC Residuals Layer "<<layer<<
" Cluster Size 3";
114 LogDebug(
"rpcefficiency")<<
"Booking Residuals for EndCap";
115 folder =
folderPath+
"MuonSegEff/Residuals/Endcap";
119 hGlobalResClu1R3C = ibooker.
book1D(
"GlobalResidualsClu1R3C",
"RPC Residuals Ring 3 Roll C Cluster Size 1",101,-10.,10.);
120 hGlobalResClu1R3B = ibooker.
book1D(
"GlobalResidualsClu1R3B",
"RPC Residuals Ring 3 Roll B Cluster Size 1",101,-10.,10.);
121 hGlobalResClu1R3A = ibooker.
book1D(
"GlobalResidualsClu1R3A",
"RPC Residuals Ring 3 Roll A Cluster Size 1",101,-10.,10.);
122 hGlobalResClu1R2C = ibooker.
book1D(
"GlobalResidualsClu1R2C",
"RPC Residuals Ring 2 Roll C Cluster Size 1",101,-10.,10.);
123 hGlobalResClu1R2B = ibooker.
book1D(
"GlobalResidualsClu1R2B",
"RPC Residuals Ring 2 Roll B Cluster Size 1",101,-10.,10.);
124 hGlobalResClu1R2A = ibooker.
book1D(
"GlobalResidualsClu1R2A",
"RPC Residuals Ring 2 Roll A Cluster Size 1",101,-10.,10.);
126 hGlobalResClu2R3C = ibooker.
book1D(
"GlobalResidualsClu2R3C",
"RPC Residuals Ring 3 Roll C Cluster Size 2",101,-10.,10.);
127 hGlobalResClu2R3B = ibooker.
book1D(
"GlobalResidualsClu2R3B",
"RPC Residuals Ring 3 Roll B Cluster Size 2",101,-10.,10.);
128 hGlobalResClu2R3A = ibooker.
book1D(
"GlobalResidualsClu2R3A",
"RPC Residuals Ring 3 Roll A Cluster Size 2",101,-10.,10.);
129 hGlobalResClu2R2C = ibooker.
book1D(
"GlobalResidualsClu2R2C",
"RPC Residuals Ring 2 Roll C Cluster Size 2",101,-10.,10.);
130 hGlobalResClu2R2B = ibooker.
book1D(
"GlobalResidualsClu2R2B",
"RPC Residuals Ring 2 Roll B Cluster Size 2",101,-10.,10.);
131 hGlobalResClu2R2A = ibooker.
book1D(
"GlobalResidualsClu2R2A",
"RPC Residuals Ring 2 Roll A Cluster Size 2",101,-10.,10.);
133 hGlobalResClu3R3C = ibooker.
book1D(
"GlobalResidualsClu3R3C",
"RPC Residuals Ring 3 Roll C Cluster Size 3",101,-10.,10.);
134 hGlobalResClu3R3B = ibooker.
book1D(
"GlobalResidualsClu3R3B",
"RPC Residuals Ring 3 Roll B Cluster Size 3",101,-10.,10.);
135 hGlobalResClu3R3A = ibooker.
book1D(
"GlobalResidualsClu3R3A",
"RPC Residuals Ring 3 Roll A Cluster Size 3",101,-10.,10.);
136 hGlobalResClu3R2C = ibooker.
book1D(
"GlobalResidualsClu3R2C",
"RPC Residuals Ring 2 Roll C Cluster Size 3",101,-10.,10.);
137 hGlobalResClu3R2B = ibooker.
book1D(
"GlobalResidualsClu3R2B",
"RPC Residuals Ring 2 Roll B Cluster Size 3",101,-10.,10.);
138 hGlobalResClu3R2A = ibooker.
book1D(
"GlobalResidualsClu3R2A",
"RPC Residuals Ring 2 Roll A Cluster Size 3",101,-10.,10.);
145 for (TrackingGeometry::DetContainer::const_iterator it=rpcGeo->dets().begin();it<rpcGeo->dets().end();it++){
147 if(dynamic_cast< const RPCChamber* >( *it ) != 0 ){
149 std::vector< const RPCRoll*> roles = (ch->
rolls());
151 for(std::vector<const RPCRoll*>::const_iterator
r = roles.begin();
r != roles.end(); ++
r){
162 int wheel=rpcId.
ring();
163 int sector=rpcId.
sector();
166 std::set<RPCDetId> myrolls;
168 myrolls.insert(rpcId);
171 }
else if(region!=0 &&
inclcsc){
177 int rpcsegment = rpcsrv.
segment();
178 int cscchamber = rpcsegment;
180 if((station==2||station==3||station==4)&&ring==3){
185 std::set<RPCDetId> myrolls;
187 myrolls.insert(rpcId);
190 if(rpcId.
ring()==2 || rpcId.
ring()==3){
192 cscchamber = rpcsegment+1;
193 if(cscchamber==37){cscchamber=1;}
195 std::set<RPCDetId> myrolls2;
197 myrolls2.insert(rpcId);
200 cscchamber = rpcsegment-1;
201 if(cscchamber==0){cscchamber=36;}
203 std::set<RPCDetId> myrolls3;
205 myrolls3.insert(rpcId);
233 std::stringstream meIdRPC, meIdDT, meIdCSC;
235 LogDebug(
"rpcefficiency") <<
"\t Getting the RPC RecHits";
242 LogDebug(
"rpcefficiency")<<
"\t Getting the DT Segments";
249 if(all4DSegments->size()>0){
253 LogDebug(
"rpcefficiency")<<
"\t Number of DT Segments in this event = "<<all4DSegments->size();
255 std::map<DTChamberId,int> DTSegmentCounter;
258 for (segment = all4DSegments->begin();segment!=all4DSegments->end(); ++segment){
259 DTSegmentCounter[segment->chamberId()]++;
264 LogDebug(
"rpcefficiency")<<
"\t Loop over all the 4D Segments";
265 for (segment = all4DSegments->begin(); segment != all4DSegments->end(); ++segment){
270 if(DTSegmentCounter[DTId]==1 && DTId.
station()!=4){
272 int dtWheel = DTId.
wheel();
273 int dtStation = DTId.
station();
274 int dtSector = DTId.
sector();
276 LocalPoint segmentPosition= segment->localPosition();
277 LocalVector segmentDirection=segment->localDirection();
279 const GeomDet* gdet=dtGeo->idToDet(segment->geographicalId());
284 if(segment->dimension()==4){
286 float Xo=segmentPosition.
x();
287 float Yo=segmentPosition.
y();
288 float Zo=segmentPosition.
z();
289 float dx=segmentDirection.
x();
290 float dy=segmentDirection.
y();
291 float dz=segmentDirection.
z();
295 LogDebug(
"rpcefficiency")<<
"DT \t \t Loop over all the rolls asociated to this DT";
296 for (std::set<RPCDetId>::iterator iteraRoll = rollsForThisDT.begin();iteraRoll != rollsForThisDT.end(); iteraRoll++){
297 const RPCRoll* rollasociated = rpcGeo->roll(*iteraRoll);
303 LocalPoint CenterRollinDTFrame = DTSurface.toLocal(CenterPointRollGlobal);
305 float D=CenterRollinDTFrame.
z();
313 LogDebug(
"rpcefficiency")<<
"DT \t \t \t xmin of this Roll "<<xmin<<
"cm";
315 LogDebug(
"rpcefficiency")<<
"DT \t \t \t xmax of this Roll "<<xmax<<
"cm";
316 float rsize = fabs( xmax.
x()-xmin.
x() );
317 LogDebug(
"rpcefficiency")<<
"DT \t \t \t Roll Size "<<rsize<<
"cm";
319 float stripw = top_->
pitch();
321 float extrapolatedDistance =
sqrt((X-Xo)*(X-Xo)+(Y-Yo)*(Y-Yo)+(Z-Zo)*(Z-Zo));
323 if(extrapolatedDistance<=
MaxD){
326 LocalPoint PointExtrapolatedRPCFrame = RPCSurface.toLocal(GlobalPointExtrapolated);
328 if(fabs(PointExtrapolatedRPCFrame.
z()) < 10. &&
329 fabs(PointExtrapolatedRPCFrame.
x()) < rsize*0.5 &&
330 fabs(PointExtrapolatedRPCFrame.
y()) < stripl*0.5){
335 LogDebug(
"rpcefficiency")<<
"DT \t \t \t \t The RPCName is "<<nameRoll;
336 const float stripPredicted =
337 rollasociated->
strip(
LocalPoint(PointExtrapolatedRPCFrame.
x(),PointExtrapolatedRPCFrame.
y(),0.));
339 LogDebug(
"rpcefficiency")<<
"DT \t \t \t \t Candidate (from DT Segment) STRIP---> "<<stripPredicted<< std::endl;
344 meIdDT<<
"ExpectedOccupancyFromDT_"<<rollId.
rawId();
345 meMap[meIdDT.str()]->Fill(stripPredicted);
350 int countRecHits = 0;
352 float minres = 3000.;
354 typedef std::pair<RPCRecHitCollection::const_iterator, RPCRecHitCollection::const_iterator> rangeRecHits;
355 rangeRecHits recHitCollection = rpcHits->get(rollasociated->
id());
358 for (recHit = recHitCollection.first; recHit != recHitCollection.second ; recHit++) {
362 float res=PointExtrapolatedRPCFrame.
x()- recHitPos.
x();
363 LogDebug(
"rpcefficiency")<<
"DT \t \t \t \t \t Found Rec Hit at "<<res<<
"cm of the prediction.";
364 if(fabs(res)<fabs(minres)){
366 cluSize = recHit->clusterSize();
367 LogDebug(
"rpcefficiency")<<
"DT \t \t \t \t \t \t New Min Res "<<res<<
"cm.";
372 LogDebug(
"rpcefficiency") <<
"DT \t \t \t \t \t THIS ROLL DOESN'T HAVE ANY RECHIT";
376 if(fabs(minres)<=(
rangestrips+cluSize*0.5)*stripw){
377 LogDebug(
"rpcefficiency")<<
"DT \t \t \t \t \t \t True!";
401 meIdRPC<<
"RPCDataOccupancyFromDT_"<<rollId.
rawId();
402 meMap[meIdRPC.str()]->Fill(stripPredicted);
406 LogDebug(
"rpcefficiency")<<
"DT \t \t \t \t No the prediction is outside of this roll";
409 LogDebug(
"rpcefficiency")<<
"DT \t \t \t No, Exrtrapolation too long!, canceled";
414 LogDebug(
"rpcefficiency")<<
"DT \t \t More than one segment in this chamber, or we are in Station 4";
418 LogDebug(
"rpcefficiency")<<
"DT This Event doesn't have any DT4DDSegment";
427 if(all4DSegments.
isValid() && all4DSegments->size()>0){
429 std::map<DTChamberId,int> DTSegmentCounter;
432 for (segment = all4DSegments->begin();segment!=all4DSegments->end(); ++segment){
433 DTSegmentCounter[segment->chamberId()]++;
436 LogDebug(
"rpcefficiency")<<
"MB4 \t \t Loop Over all4DSegments";
437 for (segment = all4DSegments->begin(); segment != all4DSegments->end(); ++segment){
441 if(DTSegmentCounter[DTId] == 1 && DTId.
station()==4){
442 int dtWheel = DTId.
wheel();
443 int dtStation = DTId.
station();
444 int dtSector = DTId.
sector();
446 LocalPoint segmentPosition= segment->localPosition();
447 LocalVector segmentDirection=segment->localDirection();
451 if(segment->dimension()==2){
453 LocalPoint segmentPositionMB4=segmentPosition;
456 const BoundPlane& DTSurface4 = dtGeo->idToDet(DTId)->surface();
460 for(segMB3=all4DSegments->begin();segMB3!=all4DSegments->end();++segMB3){
467 && DTSegmentCounter[dtid3] == 1
468 && segMB3->dimension()==4){
470 const GeomDet* gdet3=dtGeo->idToDet(segMB3->geographicalId());
473 LocalVector segmentDirectionMB3 = segMB3->localDirection();
474 GlobalPoint segmentPositionMB3inGlobal = DTSurface3.toGlobal(segMB3->localPosition());
476 GlobalVector segDirMB4inGlobalFrame=DTSurface4.toGlobal(segmentDirectionMB4);
477 GlobalVector segDirMB3inGlobalFrame=DTSurface3.toGlobal(segmentDirectionMB3);
479 float dx=segDirMB4inGlobalFrame.
x();
480 float dy=segDirMB4inGlobalFrame.
y();
483 float dx3=segDirMB3inGlobalFrame.
x();
484 float dy3=segDirMB3inGlobalFrame.
y();
487 double cosAng=fabs(dx*dx3+dy*dy3/
sqrt((dx3*dx3+dy3*dy3)*(dx*dx+dy*dy)));
499 assert(rollsForThisDT.size()>=1);
501 for (std::set<RPCDetId>::iterator iteraRoll=rollsForThisDT.begin();iteraRoll != rollsForThisDT.end(); iteraRoll++){
502 const RPCRoll* rollasociated = rpcGeo->roll(*iteraRoll);
509 LocalPoint CenterRollinMB4Frame = DTSurface4.toLocal(CenterPointRollGlobal);
510 LocalPoint segmentPositionMB3inMB4Frame = DTSurface4.toLocal(segmentPositionMB3inGlobal);
511 LocalVector segmentDirectionMB3inMB4Frame = DTSurface4.toLocal(segDirMB3inGlobalFrame);
514 float Dxz=CenterRollinMB4Frame.
z();
515 float Xo4=segmentPositionMB4.
x();
516 float dxl=segmentDirectionMB4.
x();
517 float dzl=segmentDirectionMB4.
z();
519 float X=Xo4+dxl*Dxz/dzl;
523 float Yo34=segmentPositionMB3inMB4Frame.
y();
524 float dy34 = segmentDirectionMB3inMB4Frame.
y();
525 float dz34 = segmentDirectionMB3inMB4Frame.
z();
526 float Dy=Dxz-(segmentPositionMB3inMB4Frame.
z());
528 float Y=Yo34+dy34*Dy/dz34;
534 float rsize = fabs( xmax.
x()-xmin.
x() );
536 float stripw = top_->
pitch();
538 float extrapolatedDistance =
sqrt((Y-Yo34)*(Y-Yo34)+Dy*Dy);
540 if(extrapolatedDistance<=
MaxDrb4){
543 LocalPoint PointExtrapolatedRPCFrame = RPCSurfaceRB4.toLocal(GlobalPointExtrapolated);
545 if(fabs(PointExtrapolatedRPCFrame.
z()) < 5. &&
546 fabs(PointExtrapolatedRPCFrame.
x()) < rsize*0.5 &&
547 fabs(PointExtrapolatedRPCFrame.
y()) < stripl*0.5){
550 const float stripPredicted=rollasociated->
strip(
LocalPoint(PointExtrapolatedRPCFrame.
x(),PointExtrapolatedRPCFrame.
y(),0.));
552 LogDebug(
"rpcefficiency")<<
"MB4 \t \t \t \t Candidate (from DT Segment) STRIP---> "<<stripPredicted<< std::endl;
557 meIdDT<<
"ExpectedOccupancyFromDT_"<<rollId.
rawId();
558 meMap[meIdDT.str()]->Fill(stripPredicted);
561 int countRecHits = 0;
563 float minres = 3000.;
565 LogDebug(
"rpcefficiency")<<
"MB4 \t \t \t \t Getting RecHits in Roll Asociated";
566 typedef std::pair<RPCRecHitCollection::const_iterator, RPCRecHitCollection::const_iterator> rangeRecHits;
567 rangeRecHits recHitCollection = rpcHits->get(rollasociated->
id());
570 for (recHit = recHitCollection.first; recHit != recHitCollection.second ; recHit++) {
573 float res=PointExtrapolatedRPCFrame.
x()- recHitPos.
x();
574 LogDebug(
"rpcefficiency")<<
"DT \t \t \t \t \t Found Rec Hit at "<<res<<
"cm of the prediction.";
575 if(fabs(res)<fabs(minres)){
577 cluSize = recHit->clusterSize();
582 LogDebug(
"rpcefficiency") <<
"MB4 \t \t \t \t \t \t THIS ROLL DOESN'T HAVE ANY RECHIT";
586 if(fabs(minres)<=(
rangestrips+cluSize*0.5)*stripw){
593 meIdRPC<<
"RPCDataOccupancyFromDT_"<<rollId.
rawId();
594 meMap[meIdRPC.str()]->Fill(stripPredicted);
598 LogDebug(
"rpcefficiency")<<
"MB4 \t \t \t \t No the prediction is outside of this roll";
602 LogDebug(
"rpcefficiency")<<
"MB4 \t \t \t No, Exrtrapolation too long!, canceled";
606 LogDebug(
"rpcefficiency")<<
"MB4 \t \t \t \t I found segments in MB4 and MB3 adjacent or same wheel and sector but not compatibles Diferent Directions";
609 LogDebug(
"rpcefficiency")<<
"MB4 \t \t \t No the same station or same wheel or segment dim in mb3 not 4D";
613 LogDebug(
"rpcefficiency")<<
"MB4 \t \t \t Is NOT a 2D Segment";
616 LogDebug(
"rpcefficiency")<<
"MB4 \t \t \t \t There is not just one segment or is not in station 4";
620 LogDebug(
"rpcefficiency")<<
"MB4 \t This event doesn't have 4D Segment";
626 LogDebug(
"rpcefficiency") <<
"\t Getting the CSC Segments";
632 if(allCSCSegments->size()>0){
635 LogDebug(
"rpcefficiency")<<
"CSC \t Number of CSC Segments in this event = "<<allCSCSegments->size();
637 std::map<CSCDetId,int> CSCSegmentsCounter;
640 int segmentsInThisEventInTheEndcap=0;
642 for (segment = allCSCSegments->begin();segment!=allCSCSegments->end(); ++segment){
643 CSCSegmentsCounter[segment->cscDetId()]++;
644 segmentsInThisEventInTheEndcap++;
649 LogDebug(
"rpcefficiency")<<
"CSC \t loop over all the CSCSegments ";
650 for (segment = allCSCSegments->begin();segment!=allCSCSegments->end(); ++segment){
651 CSCDetId CSCId = segment->cscDetId();
653 if(CSCSegmentsCounter[CSCId]==1 && CSCId.
ring()!=1 && allCSCSegments->size()>=2){
654 LogDebug(
"rpcefficiency")<<
"CSC \t \t yes";
655 int cscEndCap = CSCId.
endcap();
656 int cscStation = CSCId.
station();
657 int cscRing = CSCId.
ring();
659 int rpcRegion = 1;
if(cscEndCap==2) rpcRegion= -1;
660 int rpcRing = cscRing;
661 if(cscRing==4)rpcRing =1;
662 int rpcStation = cscStation;
663 int rpcSegment = CSCId.
chamber();
665 LocalPoint segmentPosition= segment->localPosition();
666 LocalVector segmentDirection=segment->localDirection();
667 float dz=segmentDirection.
z();
669 LogDebug(
"rpcefficiency")<<
"CSC \t \t Is a good Segment? dim = 4, 4 <= nRecHits <= 10 Incident angle int range 45 < "<<acos(dz)*180/3.1415926<<
" < 135? ";
671 if(segment->dimension()==4 && (segment->nRecHits()<=10 && segment->nRecHits()>=4)&& acos(dz)*180/3.1415926 > 45. && acos(dz)*180/3.1415926 < 160. ){
673 float Xo=segmentPosition.
x();
674 float Yo=segmentPosition.
y();
675 float Zo=segmentPosition.
z();
676 float dx=segmentDirection.
x();
677 float dy=segmentDirection.
y();
678 float dz=segmentDirection.
z();
681 LogDebug(
"rpcefficiency")<<
"CSC \t \t Getting chamber from Geometry";
682 const CSCChamber* TheChamber=cscGeo->chamber(CSCId);
683 LogDebug(
"rpcefficiency")<<
"CSC \t \t Getting ID from Chamber";
685 LogDebug(
"rpcefficiency")<<
"CSC \t \t Printing The Id"<<TheId;
687 LogDebug(
"rpcefficiency")<<
"CSC \t \t Number of rolls for this CSC = "<<rollsForThisCSC.size();
692 for (std::set<RPCDetId>::iterator iteraRoll = rollsForThisCSC.begin();iteraRoll != rollsForThisCSC.end(); iteraRoll++){
694 const RPCRoll* rollasociated = rpcGeo->roll(*iteraRoll);
702 float D=CenterRollinCSCFrame.
z();
710 LogDebug(
"rpcefficiency")<<
"CSC \t \t \t xmin of this Roll "<<xmin<<
"cm";
712 LogDebug(
"rpcefficiency")<<
"CSC \t \t \t xmax of this Roll "<<xmax<<
"cm";
713 float rsize = fabs( xmax.
x()-xmin.
x() );
714 LogDebug(
"rpcefficiency")<<
"CSC \t \t \t Roll Size "<<rsize<<
"cm";
716 float stripw = top_->
pitch();
719 float extrapolatedDistance =
sqrt((X-Xo)*(X-Xo)+(Y-Yo)*(Y-Yo)+(Z-Zo)*(Z-Zo));
722 if(extrapolatedDistance<=
MaxD){
725 LocalPoint PointExtrapolatedRPCFrame = RPCSurface.toLocal(GlobalPointExtrapolated);
728 if(fabs(PointExtrapolatedRPCFrame.
z()) < 10. &&
729 fabs(PointExtrapolatedRPCFrame.
x()) < rsize*0.5 &&
730 fabs(PointExtrapolatedRPCFrame.
y()) < stripl*0.5){
736 LogDebug(
"rpcefficiency")<<
"CSC \t \t \t \t The RPCName is "<<nameRoll;
738 const float stripPredicted =
739 rollasociated->
strip(
LocalPoint(PointExtrapolatedRPCFrame.
x(),PointExtrapolatedRPCFrame.
y(),0.));
741 LogDebug(
"rpcefficiency")<<
"CSC \t \t \t \t \t Candidate"<<rollId<<
" "<<
"(from CSC Segment) STRIP---> "<<stripPredicted<< std::endl;
746 meIdCSC<<
"ExpectedOccupancyFromCSC_"<<rollId.
rawId();
747 meMap[meIdCSC.str()]->Fill(stripPredicted);
753 int countRecHits = 0;
754 float minres = 3000.;
756 LogDebug(
"rpcefficiency")<<
"CSC \t \t \t \t \t Getting RecHits in Roll Asociated";
757 typedef std::pair<RPCRecHitCollection::const_iterator, RPCRecHitCollection::const_iterator> rangeRecHits;
758 rangeRecHits recHitCollection = rpcHits->get(rollasociated->
id());
761 for (recHit = recHitCollection.first; recHit != recHitCollection.second ; recHit++) {
765 float res=PointExtrapolatedRPCFrame.
x()- recHitPos.
x();
766 LogDebug(
"rpcefficiency")<<
"CSC \t \t \t \t \t \t Found Rec Hit at "<<res<<
"cm of the prediction.";
767 if(fabs(res)<fabs(minres)){
769 cluSize = recHit->clusterSize();
770 LogDebug(
"rpcefficiency")<<
"CSC \t \t \t \t \t \t \t New Min Res "<<res<<
"cm.";
775 LogDebug(
"rpcefficiency") <<
"CSC \t \t \t \t \t THIS ROLL DOESN'T HAVE ANY RECHIT";
779 if(fabs(minres)<=(
rangestrips+cluSize*0.5)*stripw){
780 LogDebug(
"rpcefficiency")<<
"CSC \t \t \t \t \t \t True!";
782 if(rollId.
ring()==2&&rollId.
roll()==1){
787 else if(rollId.
ring()==2&&rollId.
roll()==2){
792 else if(rollId.
ring()==2&&rollId.
roll()==3){
797 else if(rollId.
ring()==3&&rollId.
roll()==1){
802 else if(rollId.
ring()==3&&rollId.
roll()==2){
807 else if(rollId.
ring()==3&&rollId.
roll()==3){
813 meIdRPC<<
"RPCDataOccupancyFromCSC_"<<rollId.
rawId();
814 meMap[meIdRPC.str()]->Fill(stripPredicted);
819 LogDebug(
"rpcefficiency")<<
"CSC \t \t \t \t No the prediction is outside of this roll";
822 LogDebug(
"rpcefficiency")<<
"CSC \t \t \t No, Exrtrapolation too long!, canceled";
828 LogDebug(
"rpcefficiency")<<
"CSC \t \t More than one segment in this chamber, or we are in Station Ring 1 or in Station 4";
832 LogDebug(
"rpcefficiency")<<
"CSC This Event doesn't have any CSCSegment";
const double Z[kNumberCalorimeter]
T getParameter(std::string const &) const
float strip(const LocalPoint &lp) const
T getUntrackedParameter(std::string const &, T const &) const
const Topology & topology() const
int distsector_tmp(int sector1, int sector2)
MonitorElement * hGlobalResClu1R2A
virtual float stripLength() const
RPCEfficiency(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
CSCDetId id() const
Get the (concrete) DetId.
MonitorElement * hGlobalResClu1R3A
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
MonitorElement * hGlobalResClu3R2C
MonitorElement * hGlobalResClu2La[6]
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 * hGlobalResClu3R3C
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
std::map< int, std::map< std::string, MonitorElement * > > meCollection
void bookDetUnitSeg(DQMStore::IBooker &, RPCDetId &detId, int nstrips, std::string folder, std::map< std::string, MonitorElement * > &)
const Plane & surface() const
The nominal surface of the GeomDet.
virtual float pitch() const
uint32_t rawId() const
get the raw id
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::string EffRootFileName
virtual std::string name()
edm::EDGetTokenT< RPCRecHitCollection > RPCRecHitLabel_
MonitorElement * hGlobalResClu3La[6]
MonitorElement * hGlobalResClu3R2A
MonitorElement * book1D(Args &&...args)
const std::vector< const RPCRoll * > & rolls() const
Return the Rolls.
Abs< T >::type abs(const T &t)
MonitorElement * hGlobalResClu1R3B
MonitorElement * hGlobalResClu1R2C
MonitorElement * hGlobalResClu2R3C
MonitorElement * hGlobalResClu3R3A
std::map< CSCStationIndex, std::set< RPCDetId > > rollstoreCSC
MonitorElement * statistics
edm::EDGetTokenT< CSCSegmentCollection > cscSegments
std::map< DTStationIndex, std::set< RPCDetId > > rollstoreDT
edm::EDGetTokenT< DTRecSegment4DCollection > dt4DSegments
MonitorElement * hGlobalResClu2R2A
void setCurrentFolder(const std::string &fullpath)
DecomposeProduct< arg, typename Div::arg > D
MonitorElement * hGlobalResClu2R3A
MonitorElement * hGlobalResClu1La[6]
virtual LocalPoint localPosition(float strip) const
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
virtual float pitch() const
virtual void analyze(const edm::Event &, const edm::EventSetup &)
MonitorElement * hGlobalResClu1R3C
MonitorElement * hGlobalResClu2R2B
virtual LocalPoint localPosition(float strip) const
int station() const
Return the station number.
MonitorElement * hGlobalResClu3R3B
int wheel() const
Return the wheel number.
virtual float stripLength() const
det heigth (strip length in the middle)
MonitorElement * hGlobalResClu3R2B
MonitorElement * hGlobalResClu2R3B
MonitorElement * hGlobalResClu1R2B
MonitorElement * hGlobalResClu2R2C
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.