CMS 3D CMS Logo

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

#include <MuonME0FrameRotation.h>

Inheritance diagram for MuonME0FrameRotation:
MuonFrameRotation

Public Member Functions

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

Private Attributes

MuonG4Numberingg4numbering
 
int theSectorLevel
 

Detailed Description

implementation of FrameRotation for the muon ME0

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

Modification:

Definition at line 22 of file MuonME0FrameRotation.h.

Constructor & Destructor Documentation

MuonME0FrameRotation::MuonME0FrameRotation ( const MuonDDDConstants muonConstants)

Definition at line 11 of file MuonME0FrameRotation.cc.

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

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

Definition at line 22 of file MuonME0FrameRotation.cc.

References g4numbering.

22  {
23  delete g4numbering;
24 }
MuonG4Numbering * g4numbering

Member Function Documentation

Local3DPoint MuonME0FrameRotation::transformPoint ( const Local3DPoint point,
const G4Step *  aStep = 0 
) const
overridevirtual

Implements MuonFrameRotation.

Definition at line 26 of file MuonME0FrameRotation.cc.

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

26  {
27  if (!aStep) return Local3DPoint(0.,0.,0.);
28 
29  edm::LogVerbatim("MuonME0FrameRotation")<<"MuonME0FrameRotation transformPoint :: Local3DPoint (" <<point.x()<<","<<point.z()<<","<<-point.y()<<")" ;
30  return Local3DPoint(point.x(),point.z(),-point.y());
31 }
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* MuonME0FrameRotation::g4numbering
private

Definition at line 30 of file MuonME0FrameRotation.h.

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

int MuonME0FrameRotation::theSectorLevel
private

Definition at line 31 of file MuonME0FrameRotation.h.

Referenced by MuonME0FrameRotation().