CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 "DTSegtoRPC.h"
#include "DTObjectMap.h"
#include "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 HLT_FULL_cff::distance.

Referenced by DTSegtoRPC::thePoints().

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 
28  int distance = std::abs(sector1 - sector2);
29  if (distance > 6)
30  distance = 12 - distance;
31  return distance;
32 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int distwheel ( int  wheel1,
int  wheel2 
)

Definition at line 34 of file DTSegtoRPC.cc.

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

Referenced by DTSegtoRPC::thePoints().

34  {
35  int distance = std::abs(wheel1 - wheel2);
36  return distance;
37 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22