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 19 of file RPCEfficiency.cc.

References funct::abs(), and HLT_25ns14e33_v1_cff::distance.

Referenced by RPCEfficiency::analyze().

19  {
20 
21  if(sector1==13) sector1=4;
22  if(sector1==14) sector1=10;
23 
24  if(sector2==13) sector2=4;
25  if(sector2==14) sector2=10;
26 
27  int distance = abs(sector1 - sector2);
28  if(distance>6) distance = 12-distance;
29  return distance;
30 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22