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 "FWCore/MessageLogger/interface/MessageLogger.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 18 of file DTSegtoRPC.cc.

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

Referenced by DTSegtoRPC::thePoints().

18  {
19  if (sector1 == 13)
20  sector1 = 4;
21  if (sector1 == 14)
22  sector1 = 10;
23 
24  if (sector2 == 13)
25  sector2 = 4;
26  if (sector2 == 14)
27  sector2 = 10;
28 
30  if (distance > 6)
31  distance = 12 - distance;
32  return distance;
33 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

◆ distwheel()

int distwheel ( int  wheel1,
int  wheel2 
)

Definition at line 35 of file DTSegtoRPC.cc.

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

Referenced by DTSegtoRPC::thePoints().

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