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.

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

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

◆ ~MuonRPCFrameRotation()

MuonRPCFrameRotation::~MuonRPCFrameRotation ( )
override

Definition at line 17 of file MuonRPCFrameRotation.cc.

References g4numbering.

17 { delete g4numbering; }
MuonG4Numbering * 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.

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

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 }
MuonG4Numbering * g4numbering
MuonBaseNumber PhysicalVolumeToBaseNumber(const G4Step *aStep)
*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
Point3DBase< float, LocalTag > Local3DPoint
Definition: LocalPoint.h:9

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().