CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonRpcFrameRotation.cc
Go to the documentation of this file.
5 
6 #include "G4StepPoint.hh"
7 #include "G4TouchableHistory.hh"
8 
10  g4numbering = new MuonG4Numbering(cpv);
11  MuonDDDConstants muonConstants(cpv);
12  int theLevelPart=muonConstants.getValue("level");
13  theRegion=muonConstants.getValue("mr_region")/theLevelPart;
14 }
15 
17  delete g4numbering;
18 }
19 
21  if (aStep) {
22  //check if endcap
24  bool endcap_muon = (num.getSuperNo(theRegion)!=1);
25  if (endcap_muon){
26  return Local3DPoint(point.x(),point.z(),-point.y());
27  } else {
28  return point;
29  }
30  } else {
31  return Local3DPoint(0.,0.,0.);
32  }
33 }
MuonG4Numbering * g4numbering
MuonRpcFrameRotation(const DDCompactView &cpv)
T y() const
Definition: PV3DBase.h:62
type of data representation of DDCompactView
Definition: DDCompactView.h:77
int getValue(const std::string &name) const
T z() const
Definition: PV3DBase.h:63
virtual Local3DPoint transformPoint(Local3DPoint &, G4Step *) const
MuonBaseNumber PhysicalVolumeToBaseNumber(const G4Step *aStep)
Point3DBase< float, LocalTag > Local3DPoint
Definition: LocalPoint.h:9
long long int num
Definition: procUtils.cc:71
int getSuperNo(int level) const
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