CMS 3D CMS Logo

MuonEndcapFrameRotation Class Reference

implementation of FrameRotation for the muon endcap More...

#include <SimG4CMS/Muon/interface/MuonEndcapFrameRotation.h>

Inheritance diagram for MuonEndcapFrameRotation:

MuonFrameRotation

List of all members.

Public Member Functions

virtual Local3DPoint transformPoint (Local3DPoint &, G4Step *) const
virtual ~MuonEndcapFrameRotation ()


Detailed Description

implementation of FrameRotation for the muon endcap

Author:
Arno Straessner, CERN <arno.straessner@cern.ch>
Modification:

Definition at line 18 of file MuonEndcapFrameRotation.h.


Constructor & Destructor Documentation

virtual MuonEndcapFrameRotation::~MuonEndcapFrameRotation (  )  [inline, virtual]

Definition at line 20 of file MuonEndcapFrameRotation.h.

00020 {};


Member Function Documentation

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 } 


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:28:42 2009 for CMSSW by  doxygen 1.5.4