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 
10  const G4StepPoint * preStepPoint = step->GetPreStepPoint();
11  const G4TouchableHistory * theTouchable = (const G4TouchableHistory *)preStepPoint->GetTouchable();
12  const G4ThreeVector& trans=theTouchable->GetTranslation();
13 
14  return (trans.z()<0)
15  ? Local3DPoint(-point.x(),-point.z(),-point.y())
16  : Local3DPoint(point.x(),point.z(),-point.y());
17 }
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
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