CMS 3D CMS Logo

MuonEndcapFrameRotation.cc
Go to the documentation of this file.
3 
4 #include "G4Step.hh"
5 #include "G4StepPoint.hh"
6 #include "G4TouchableHistory.hh"
7 
9  const G4StepPoint* preStepPoint = step->GetPreStepPoint();
10  const G4TouchableHistory* theTouchable = (const G4TouchableHistory*)preStepPoint->GetTouchable();
11  const G4ThreeVector& trans = theTouchable->GetTranslation();
12 
13  return (trans.z() < 0) ? Local3DPoint(-point.x(), -point.z(), -point.y())
14  : Local3DPoint(point.x(), point.z(), -point.y());
15 }
T y() const
Definition: PV3DBase.h:63
T z() const
Definition: PV3DBase.h:64
Local3DPoint transformPoint(const Local3DPoint &, const G4Step *) const override
Point3DBase< float, LocalTag > Local3DPoint
Definition: LocalPoint.h:9
step
Definition: StallMonitor.cc:94
T x() const
Definition: PV3DBase.h:62
*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