CMS 3D CMS Logo

MuonSimHitNumberingScheme Class Reference

wrapper class to handle numbering schemes for the different MuonSubDetector's More...

#include <Geometry/MuonNumbering/interface/MuonSimHitNumberingScheme.h>

Inheritance diagram for MuonSimHitNumberingScheme:

MuonNumberingScheme

List of all members.

Public Member Functions

virtual int baseNumberToUnitNumber (const MuonBaseNumber)
 MuonSimHitNumberingScheme (MuonSubDetector *, const DDCompactView &cpv)
 ~MuonSimHitNumberingScheme ()

Private Attributes

MuonSubDetectortheDetector
MuonNumberingSchemetheNumbering


Detailed Description

wrapper class to handle numbering schemes for the different MuonSubDetector's

Date
2006/10/12 19:54:05
Revision
1.2
Author:
Arno Straessner, CERN <arno.straessner@cern.ch>

Definition at line 21 of file MuonSimHitNumberingScheme.h.


Constructor & Destructor Documentation

MuonSimHitNumberingScheme::MuonSimHitNumberingScheme ( MuonSubDetector d,
const DDCompactView cpv 
)

Definition at line 10 of file MuonSimHitNumberingScheme.cc.

References MuonSubDetector::isBarrel(), MuonSubDetector::isEndcap(), MuonSubDetector::isRpc(), theDetector, and theNumbering.

00010                                                                                                  {
00011   theDetector=d;
00012   if (theDetector->isBarrel()) {
00013     theNumbering=new DTNumberingScheme(cpv);
00014   } else if (theDetector->isEndcap()) {
00015     theNumbering=new CSCNumberingScheme(cpv);
00016   } else if (theDetector->isRpc()) {
00017     theNumbering=new RPCNumberingScheme(cpv);
00018   } 
00019 }

MuonSimHitNumberingScheme::~MuonSimHitNumberingScheme (  ) 

Definition at line 21 of file MuonSimHitNumberingScheme.cc.

References theNumbering.

00021                                                       {
00022   delete theNumbering;
00023 }


Member Function Documentation

int MuonSimHitNumberingScheme::baseNumberToUnitNumber ( const   MuonBaseNumber  )  [virtual]

Reimplemented from MuonNumberingScheme.

Definition at line 25 of file MuonSimHitNumberingScheme.cc.

References MuonNumberingScheme::baseNumberToUnitNumber(), and theNumbering.

Referenced by MuonSensitiveDetector::setDetUnitId().

00025                                                                               {
00026   if (theNumbering) {
00027     return theNumbering->baseNumberToUnitNumber(num);
00028   } else {
00029     return 0;
00030   }
00031 }


Member Data Documentation

MuonSubDetector* MuonSimHitNumberingScheme::theDetector [private]

Definition at line 32 of file MuonSimHitNumberingScheme.h.

Referenced by MuonSimHitNumberingScheme().

MuonNumberingScheme* MuonSimHitNumberingScheme::theNumbering [private]

Definition at line 33 of file MuonSimHitNumberingScheme.h.

Referenced by baseNumberToUnitNumber(), MuonSimHitNumberingScheme(), and ~MuonSimHitNumberingScheme().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:28:49 2009 for CMSSW by  doxygen 1.5.4