CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
MuonGEMFrameRotation Class Reference

#include <MuonGEMFrameRotation.h>

Inheritance diagram for MuonGEMFrameRotation:
MuonFrameRotation

Public Member Functions

 MuonGEMFrameRotation (const MuonDDDConstants &muonConstants)
 
virtual Local3DPoint transformPoint (const Local3DPoint &, const G4Step *) const
 
virtual ~MuonGEMFrameRotation ()
 
- Public Member Functions inherited from MuonFrameRotation
 MuonFrameRotation ()
 
virtual ~MuonFrameRotation ()
 

Private Attributes

MuonG4Numberingg4numbering
 
int theSectorLevel
 

Detailed Description

implementation of FrameRotation for the muon gem

Author
Arno Straessner, CERN arno..nosp@m.stra.nosp@m.essne.nosp@m.r@ce.nosp@m.rn.ch

Modification:

Definition at line 21 of file MuonGEMFrameRotation.h.

Constructor & Destructor Documentation

MuonGEMFrameRotation::MuonGEMFrameRotation ( const MuonDDDConstants muonConstants)

Definition at line 10 of file MuonGEMFrameRotation.cc.

References gather_cfg::cout, g4numbering, MuonDDDConstants::getValue(), and theSectorLevel.

11  g4numbering = new MuonG4Numbering(muonConstants);
12  int theLevelPart= muonConstants.getValue("level");
13  theSectorLevel = muonConstants.getValue("mg_sector")/theLevelPart;
14 #ifdef LOCAL_DEBUG
15  std::cout << "MuonGEMFrameRotation: theSectorLevel " << theSectorLevel
16  << std::endl;
17 #endif
18 }
MuonG4Numbering * g4numbering
int getValue(const std::string &name) const
MuonGEMFrameRotation::~MuonGEMFrameRotation ( )
virtual

Definition at line 20 of file MuonGEMFrameRotation.cc.

References g4numbering.

20  {
21  delete g4numbering;
22 }
MuonG4Numbering * g4numbering

Member Function Documentation

Local3DPoint MuonGEMFrameRotation::transformPoint ( const Local3DPoint point,
const G4Step *  aStep = 0 
) const
virtual

Implements MuonFrameRotation.

Definition at line 24 of file MuonGEMFrameRotation.cc.

References PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

24  {
25  if (!aStep) return Local3DPoint(0.,0.,0.);
26 
27  return Local3DPoint(point.x(),point.z(),-point.y());
28 }
T y() const
Definition: PV3DBase.h:63
T z() const
Definition: PV3DBase.h:64
Point3DBase< float, LocalTag > Local3DPoint
Definition: LocalPoint.h:9
T x() const
Definition: PV3DBase.h:62

Member Data Documentation

MuonG4Numbering* MuonGEMFrameRotation::g4numbering
private

Definition at line 29 of file MuonGEMFrameRotation.h.

Referenced by MuonGEMFrameRotation(), and ~MuonGEMFrameRotation().

int MuonGEMFrameRotation::theSectorLevel
private

Definition at line 30 of file MuonGEMFrameRotation.h.

Referenced by MuonGEMFrameRotation().