#include "DQM/RPCMonitorDigi/interface/RPCEfficiency.h"
#include <sstream>
#include "FWCore/Framework/interface/MakerMacros.h"
#include "DataFormats/RPCRecHit/interface/RPCRecHitCollection.h"
#include <DataFormats/DTRecHit/interface/DTRecSegment4DCollection.h>
#include <DataFormats/CSCRecHit/interface/CSCSegmentCollection.h>
#include <Geometry/RPCGeometry/interface/RPCGeomServ.h>
#include <Geometry/CommonDetUnit/interface/GeomDet.h>
#include <Geometry/Records/interface/MuonGeometryRecord.h>
#include <Geometry/CommonTopologies/interface/RectangularStripTopology.h>
#include <Geometry/CommonTopologies/interface/TrapezoidalStripTopology.h>
Go to the source code of this file.
Functions | |
int | distsector_tmp (int sector1, int sector2) |
int distsector_tmp | ( | int | sector1, |
int | sector2 | ||
) |
Definition at line 23 of file RPCEfficiency.cc.
References abs.
Referenced by RPCEfficiency::analyze().
{ if(sector1==13) sector1=4; if(sector1==14) sector1=10; if(sector2==13) sector2=4; if(sector2==14) sector2=10; int distance = abs(sector1 - sector2); if(distance>6) distance = 12-distance; return distance; }