CMS 3D CMS Logo

Functions
DTSegtoRPC.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/ESHandle.h"
#include "Geometry/RPCGeometry/interface/RPCGeomServ.h"
#include "DataFormats/RPCRecHit/interface/RPCRecHit.h"
#include "DataFormats/RPCRecHit/interface/RPCRecHitCollection.h"
#include "RecoLocalMuon/RPCRecHit/interface/DTSegtoRPC.h"
#include "RecoLocalMuon/RPCRecHit/src/DTObjectMap.h"
#include "RecoLocalMuon/RPCRecHit/src/DTStationIndex.h"
#include <ctime>

Go to the source code of this file.

Functions

int distsector (int sector1, int sector2)
 
int distwheel (int wheel1, int wheel2)
 

Function Documentation

int distsector ( int  sector1,
int  sector2 
)

Definition at line 17 of file DTSegtoRPC.cc.

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

Referenced by DTSegtoRPC::DTSegtoRPC().

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

Definition at line 29 of file DTSegtoRPC.cc.

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

Referenced by DTSegtoRPC::DTSegtoRPC().

29  {
30  int distance = std::abs(wheel1 - wheel2);
31  return distance;
32 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22