CMS 3D CMS Logo

MuonRPCFrameRotation.cc
Go to the documentation of this file.
5 
6 #include "G4StepPoint.hh"
7 #include "G4TouchableHistory.hh"
8 
11  g4numbering = new MuonG4Numbering(muonConstants);
12  int theLevelPart=muonConstants.getValue("level");
13  theRegion=muonConstants.getValue("mr_region")/theLevelPart;
14 }
15 
17  delete g4numbering;
18 }
19 
21  if (!aStep)
22  return Local3DPoint(0.,0.,0.);
23 
24  //check if endcap
26  bool endcap_muon = (num.getSuperNo(theRegion)!=1);
27  if (endcap_muon){
28  return Local3DPoint(point.x(),point.z(),-point.y());
29  } else {
30  return point;
31  }
32 }
virtual Local3DPoint transformPoint(const Local3DPoint &, const G4Step *) const
T y() const
Definition: PV3DBase.h:63
MuonG4Numbering * g4numbering
int getValue(const std::string &name) const
T z() const
Definition: PV3DBase.h:64
MuonBaseNumber PhysicalVolumeToBaseNumber(const G4Step *aStep)
Point3DBase< float, LocalTag > Local3DPoint
Definition: LocalPoint.h:9
int getSuperNo(int level) const
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
MuonRPCFrameRotation(const MuonDDDConstants &constants)