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 }
MuonEndcapFrameRotation.h
step
step
Definition: StallMonitor.cc:94
MuonEndcapFrameRotation::transformPoint
Local3DPoint transformPoint(const Local3DPoint &, const G4Step *) const override
Definition: MuonEndcapFrameRotation.cc:8
Point3DBase< float, LocalTag >
FrameRotation.h
point
*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
Local3DPoint
Point3DBase< float, LocalTag > Local3DPoint
Definition: LocalPoint.h:9