#include <SimG4CMS/Muon/interface/MuonEndcapFrameRotation.h>
Public Member Functions | |
virtual Local3DPoint | transformPoint (Local3DPoint &, G4Step *) const |
virtual | ~MuonEndcapFrameRotation () |
Modification:
Definition at line 18 of file MuonEndcapFrameRotation.h.
virtual MuonEndcapFrameRotation::~MuonEndcapFrameRotation | ( | ) | [inline, virtual] |
Local3DPoint MuonEndcapFrameRotation::transformPoint | ( | Local3DPoint & | point, | |
G4Step * | s = 0 | |||
) | const [virtual] |
Implements MuonFrameRotation.
Definition at line 6 of file MuonEndcapFrameRotation.cc.
References s, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
00006 { 00007 if (s) { 00008 G4StepPoint * preStepPoint = s->GetPreStepPoint(); 00009 G4TouchableHistory * theTouchable=(G4TouchableHistory *) 00010 (preStepPoint->GetTouchable()); 00011 const G4ThreeVector trans=theTouchable->GetTranslation(); 00012 00013 if (trans.z()<0) { 00014 // return Local3DPoint(point.x(),-point.z(),point.y()); 00015 // return Local3DPoint(-point.x(),point.z(),-point.y()); 00016 return Local3DPoint(-point.x(),-point.z(),-point.y()); 00017 } else { 00018 // return Local3DPoint(point.x(),point.z(),-point.y()); 00019 return Local3DPoint(point.x(),point.z(),-point.y()); 00020 } 00021 } else { 00022 return Local3DPoint(0.,0.,0.); 00023 } 00024 }