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/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ESHandle.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>
#include "FWCore/MessageLogger/interface/MessageLogger.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 25 of file RPCEfficiency.cc.

References funct::abs().

Referenced by RPCEfficiency::analyze().

25  {
26 
27  if(sector1==13) sector1=4;
28  if(sector1==14) sector1=10;
29 
30  if(sector2==13) sector2=4;
31  if(sector2==14) sector2=10;
32 
33  int distance = abs(sector1 - sector2);
34  if(distance>6) distance = 12-distance;
35  return distance;
36 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22