CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonEndcapFrameRotation.cc
Go to the documentation of this file.
2 
3 #include "G4StepPoint.hh"
4 #include "G4TouchableHistory.hh"
5 
7  if (!s)
8  return Local3DPoint(0.,0.,0.);
9 
10  const G4StepPoint * preStepPoint = s->GetPreStepPoint();
11  const G4TouchableHistory * theTouchable = (const G4TouchableHistory *)preStepPoint->GetTouchable();
12  const G4ThreeVector trans=theTouchable->GetTranslation();
13 
14  if (trans.z()<0) {
15  // return Local3DPoint(point.x(),-point.z(),point.y());
16  // return Local3DPoint(-point.x(),point.z(),-point.y());
17  return Local3DPoint(-point.x(),-point.z(),-point.y());
18  } else {
19  // return Local3DPoint(point.x(),point.z(),-point.y());
20  return Local3DPoint(point.x(),point.z(),-point.y());
21  }
22 }
T y() const
Definition: PV3DBase.h:63
virtual Local3DPoint transformPoint(const Local3DPoint &, const G4Step *) const
T z() const
Definition: PV3DBase.h:64
Point3DBase< float, LocalTag > Local3DPoint
Definition: LocalPoint.h:9
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