CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
TracktoRPC.cc File Reference
#include <Geometry/RPCGeometry/interface/RPCGeometry.h>
#include <Geometry/DTGeometry/interface/DTGeometry.h>
#include <DataFormats/DTRecHit/interface/DTRecSegment4DCollection.h>
#include <Geometry/CommonDetUnit/interface/GeomDet.h>
#include <Geometry/Records/interface/MuonGeometryRecord.h>
#include <Geometry/CommonTopologies/interface/RectangularStripTopology.h>
#include <FWCore/Framework/interface/EDAnalyzer.h>
#include "FWCore/Framework/interface/ESHandle.h"
#include <Geometry/RPCGeometry/interface/RPCGeomServ.h>
#include <DataFormats/RPCRecHit/interface/RPCRecHit.h>
#include <DataFormats/RPCRecHit/interface/RPCRecHitCollection.h>
#include <DataFormats/DetId/interface/DetId.h>
#include <RecoLocalMuon/RPCRecHit/interface/TracktoRPC.h>
#include <ctime>
#include <TMath.h>

Go to the source code of this file.

Functions

int distsector2 (int sector1, int sector2)
 
int distwheel2 (int wheel1, int wheel2)
 

Function Documentation

int distsector2 ( int  sector1,
int  sector2 
)

Definition at line 57 of file TracktoRPC.cc.

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

57  {
58  if(sector1==13) sector1=4;
59  if(sector1==14) sector1=10;
60 
61  if(sector2==13) sector2=4;
62  if(sector2==14) sector2=10;
63 
64  int distance = std::abs(sector1 - sector2);
65  if(distance>6) distance = 12-distance;
66  return distance;
67 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int distwheel2 ( int  wheel1,
int  wheel2 
)

Definition at line 69 of file TracktoRPC.cc.

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

69  {
70  int distance = std::abs(wheel1 - wheel2);
71  return distance;
72 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22