CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
MuonRPCFrameRotation Class Reference

#include <MuonRPCFrameRotation.h>

Inheritance diagram for MuonRPCFrameRotation:
MuonFrameRotation

Public Member Functions

 MuonRPCFrameRotation (const MuonGeometryConstants &constants, const MuonOffsetMap *offMap, bool dd4hep)
 
Local3DPoint transformPoint (const Local3DPoint &, const G4Step *) const override
 
 ~MuonRPCFrameRotation () override
 
- Public Member Functions inherited from MuonFrameRotation
 MuonFrameRotation ()
 
virtual ~MuonFrameRotation ()
 

Private Attributes

MuonG4Numberingg4numbering
 
int theRegion
 

Detailed Description

implementation of FrameRotation for the muon rpc

Author
Arno Straessner, CERN arno..nosp@m.stra.nosp@m.essne.nosp@m.r@ce.nosp@m.rn.ch

Modification:

Definition at line 22 of file MuonRPCFrameRotation.h.

Constructor & Destructor Documentation

◆ MuonRPCFrameRotation()

MuonRPCFrameRotation::MuonRPCFrameRotation ( const MuonGeometryConstants constants,
const MuonOffsetMap offMap,
bool  dd4hep 
)

Definition at line 8 of file MuonRPCFrameRotation.cc.

12  g4numbering = new MuonG4Numbering(muonConstants, offMap, dd4hep);
13  int theLevelPart = muonConstants.getValue("level");
14  theRegion = muonConstants.getValue("mr_region") / theLevelPart;
15 }

References g4numbering, MuonGeometryConstants::getValue(), and theRegion.

◆ ~MuonRPCFrameRotation()

MuonRPCFrameRotation::~MuonRPCFrameRotation ( )
override

Definition at line 17 of file MuonRPCFrameRotation.cc.

17 { delete g4numbering; }

References g4numbering.

Member Function Documentation

◆ transformPoint()

Local3DPoint MuonRPCFrameRotation::transformPoint ( const Local3DPoint point,
const G4Step *  aStep 
) const
overridevirtual

Reimplemented from MuonFrameRotation.

Definition at line 19 of file MuonRPCFrameRotation.cc.

19  {
20  //check if endcap
22  bool endcap_muon = (num.getSuperNo(theRegion) != 1);
23  return (endcap_muon) ? Local3DPoint(point.x(), point.z(), -point.y()) : Local3DPoint(point.x(), point.y(), point.z());
24 }

References g4numbering, EgammaValidation_cff::num, MuonG4Numbering::PhysicalVolumeToBaseNumber(), point, and theRegion.

Member Data Documentation

◆ g4numbering

MuonG4Numbering* MuonRPCFrameRotation::g4numbering
private

◆ theRegion

int MuonRPCFrameRotation::theRegion
private

Definition at line 30 of file MuonRPCFrameRotation.h.

Referenced by MuonRPCFrameRotation(), and transformPoint().

MuonRPCFrameRotation::g4numbering
MuonG4Numbering * g4numbering
Definition: MuonRPCFrameRotation.h:29
MuonFrameRotation::MuonFrameRotation
MuonFrameRotation()
Definition: MuonFrameRotation.h:19
MuonG4Numbering
Definition: MuonG4Numbering.h:26
MuonRPCFrameRotation::theRegion
int theRegion
Definition: MuonRPCFrameRotation.h:30
MuonG4Numbering::PhysicalVolumeToBaseNumber
MuonBaseNumber PhysicalVolumeToBaseNumber(const G4Step *aStep)
Definition: MuonG4Numbering.cc:47
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:33
MuonBaseNumber
Definition: MuonBaseNumber.h:21
dd4hep
Definition: DDPlugins.h:8
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
Local3DPoint
Point3DBase< float, LocalTag > Local3DPoint
Definition: LocalPoint.h:9