CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 DDCompactView &cpv)
 
virtual Local3DPoint transformPoint (const Local3DPoint &, const G4Step *) const
 
virtual ~MuonME0FrameRotation ()
 
- Public Member Functions inherited from MuonFrameRotation
 MuonFrameRotation (const DDCompactView &cpv)
 
 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 DDCompactView cpv)

Definition at line 11 of file MuonME0FrameRotation.cc.

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

12  g4numbering = new MuonG4Numbering(cpv);
13  MuonDDDConstants muonConstants(cpv);
14  int theLevelPart= muonConstants.getValue("level");
15  theSectorLevel = muonConstants.getValue("mg_sector")/theLevelPart;
16 #ifdef LOCAL_DEBUG
17  std::cout << "MuonME0FrameRotation: theSectorLevel " << theSectorLevel
18  << std::endl;
19 #endif
20  edm::LogVerbatim("MuonME0FrameRotation")<<"MuonME0FrameRotation: theSectorLevel " << theSectorLevel;
21 }
MuonG4Numbering * g4numbering
tuple cout
Definition: gather_cfg.py:121
MuonME0FrameRotation::~MuonME0FrameRotation ( )
virtual

Definition at line 23 of file MuonME0FrameRotation.cc.

References g4numbering.

23  {
24  delete g4numbering;
25 }
MuonG4Numbering * g4numbering

Member Function Documentation

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

Implements MuonFrameRotation.

Definition at line 27 of file MuonME0FrameRotation.cc.

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

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