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

◆ distsector()

int distsector ( int  sector1,
int  sector2 
)

Definition at line 17 of file DTSegtoRPC.cc.

17  {
18  if (sector1 == 13)
19  sector1 = 4;
20  if (sector1 == 14)
21  sector1 = 10;
22 
23  if (sector2 == 13)
24  sector2 = 4;
25  if (sector2 == 14)
26  sector2 = 10;
27 
29  if (distance > 6)
30  distance = 12 - distance;
31  return distance;
32 }

References funct::abs(), HLT_FULL_cff::distance, hgcalTopologyTester_cfi::sector1, and hgcalTopologyTester_cfi::sector2.

Referenced by DTSegtoRPC::thePoints().

◆ distwheel()

int distwheel ( int  wheel1,
int  wheel2 
)

Definition at line 34 of file DTSegtoRPC.cc.

34  {
35  int distance = std::abs(wheel1 - wheel2);
36  return distance;
37 }

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

Referenced by DTSegtoRPC::thePoints().

hgcalTopologyTester_cfi.sector1
sector1
Definition: hgcalTopologyTester_cfi.py:9
hgcalTopologyTester_cfi.sector2
sector2
Definition: hgcalTopologyTester_cfi.py:10
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
HLT_FULL_cff.distance
distance
Definition: HLT_FULL_cff.py:7799