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 "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

◆ distsector()

int distsector ( int  sector1,
int  sector2 
)

Definition at line 17 of file DTSegtoRPC.cc.

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

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 
29  if (distance > 6)
30  distance = 12 - distance;
31  return distance;
32 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

◆ distwheel()

int distwheel ( int  wheel1,
int  wheel2 
)

Definition at line 34 of file DTSegtoRPC.cc.

References funct::abs(), and HLT_2022v11_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