CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
RPCEfficiency.cc File Reference
#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)
 

Function Documentation

int distsector_tmp ( int  sector1,
int  sector2 
)

Definition at line 23 of file RPCEfficiency.cc.

References abs.

Referenced by RPCEfficiency::analyze().

23  {
24 
25  if(sector1==13) sector1=4;
26  if(sector1==14) sector1=10;
27 
28  if(sector2==13) sector2=4;
29  if(sector2==14) sector2=10;
30 
31  int distance = abs(sector1 - sector2);
32  if(distance>6) distance = 12-distance;
33  return distance;
34 }
#define abs(x)
Definition: mlp_lapack.h:159