#include <MuonRpcFrameRotation.h>
Public Member Functions | |
MuonRpcFrameRotation (const DDCompactView &cpv) | |
virtual Local3DPoint | transformPoint (Local3DPoint &, G4Step *) const |
virtual | ~MuonRpcFrameRotation () |
Private Attributes | |
MuonG4Numbering * | g4numbering |
int | theRegion |
implementation of FrameRotation for the muon rpc
Modification:
Definition at line 21 of file MuonRpcFrameRotation.h.
MuonRpcFrameRotation::MuonRpcFrameRotation | ( | const DDCompactView & | cpv | ) |
Definition at line 9 of file MuonRpcFrameRotation.cc.
References g4numbering, MuonDDDConstants::getValue(), and theRegion.
: MuonFrameRotation::MuonFrameRotation(cpv) { g4numbering = new MuonG4Numbering(cpv); MuonDDDConstants muonConstants(cpv); int theLevelPart=muonConstants.getValue("level"); theRegion=muonConstants.getValue("mr_region")/theLevelPart; }
MuonRpcFrameRotation::~MuonRpcFrameRotation | ( | ) | [virtual] |
Definition at line 16 of file MuonRpcFrameRotation.cc.
References g4numbering.
{ delete g4numbering; }
Local3DPoint MuonRpcFrameRotation::transformPoint | ( | Local3DPoint & | point, |
G4Step * | aStep = 0 |
||
) | const [virtual] |
Implements MuonFrameRotation.
Definition at line 20 of file MuonRpcFrameRotation.cc.
References g4numbering, MuonBaseNumber::getSuperNo(), MuonG4Numbering::PhysicalVolumeToBaseNumber(), point, theRegion, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
{ if (aStep) { //check if endcap MuonBaseNumber num = g4numbering->PhysicalVolumeToBaseNumber(aStep); bool endcap_muon = (num.getSuperNo(theRegion)!=1); if (endcap_muon){ return Local3DPoint(point.x(),point.z(),-point.y()); } else { return point; } } else { return Local3DPoint(0.,0.,0.); } }
MuonG4Numbering* MuonRpcFrameRotation::g4numbering [private] |
Definition at line 27 of file MuonRpcFrameRotation.h.
Referenced by MuonRpcFrameRotation(), transformPoint(), and ~MuonRpcFrameRotation().
int MuonRpcFrameRotation::theRegion [private] |
Definition at line 28 of file MuonRpcFrameRotation.h.
Referenced by MuonRpcFrameRotation(), and transformPoint().