test
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  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 }
MuonG4Numbering * g4numbering
MuonRpcFrameRotation(const DDCompactView &cpv)
T y() const
Definition: PV3DBase.h:63
type of data representation of DDCompactView
Definition: DDCompactView.h:77
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
virtual Local3DPoint transformPoint(const Local3DPoint &, const G4Step *) const
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