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  G4StepPoint * preStepPoint = s->GetPreStepPoint();
9  G4TouchableHistory * theTouchable=(G4TouchableHistory *)
10  (preStepPoint->GetTouchable());
11  const G4ThreeVector trans=theTouchable->GetTranslation();
12 
13  if (trans.z()<0) {
14  // return Local3DPoint(point.x(),-point.z(),point.y());
15  // return Local3DPoint(-point.x(),point.z(),-point.y());
16  return Local3DPoint(-point.x(),-point.z(),-point.y());
17  } else {
18  // return Local3DPoint(point.x(),point.z(),-point.y());
19  return Local3DPoint(point.x(),point.z(),-point.y());
20  }
21  } else {
22  return Local3DPoint(0.,0.,0.);
23  }
24 }
T y() const
Definition: PV3DBase.h:62
virtual Local3DPoint transformPoint(Local3DPoint &, G4Step *) const
T z() const
Definition: PV3DBase.h:63
Point3DBase< float, LocalTag > Local3DPoint
Definition: LocalPoint.h:9
T x() const
Definition: PV3DBase.h:61
*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