SimG4CMS
Muon
src
MuonEndcapFrameRotation.cc
Go to the documentation of this file.
1
#include "
SimG4CMS/Muon/interface/MuonEndcapFrameRotation.h
"
2
#include "
SimG4Core/SensitiveDetector/interface/FrameRotation.h
"
3
4
#include "G4Step.hh"
5
#include "G4StepPoint.hh"
6
#include "G4TouchableHistory.hh"
7
8
Local3DPoint
MuonEndcapFrameRotation::transformPoint
(
const
Local3DPoint
&
point
,
const
G4Step*
step
)
const
{
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
Generated for CMSSW Reference Manual by
1.8.16