CMS 3D CMS Logo

MuonSubDetector Class Reference

class to handle muon sensitive detectors, possible arguments for constructor: "MuonDTHits", "MuonCSCHits", "MuonRPCHits" More...

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

List of all members.

Public Member Functions

bool isBarrel ()
bool isEndcap ()
bool isRpc ()
 MuonSubDetector (std::string name)
std::string name ()
std::string suIdName ()
 ~MuonSubDetector ()

Private Types

enum  subDetector { barrel, endcap, rpc, nodef }

Private Attributes

subDetector detector
std::string detectorName


Detailed Description

class to handle muon sensitive detectors, possible arguments for constructor: "MuonDTHits", "MuonCSCHits", "MuonRPCHits"

the function suIdName() returns the detector SuId for the ROU factory

Date
2006/02/15 13:21:24
Revision
1.1
Author:
Arno Straessner, CERN <arno.straessner@cern.ch>

Definition at line 21 of file MuonSubDetector.h.


Member Enumeration Documentation

enum MuonSubDetector::subDetector [private]

Enumerator:
barrel 
endcap 
rpc 
nodef 

Definition at line 39 of file MuonSubDetector.h.


Constructor & Destructor Documentation

MuonSubDetector::MuonSubDetector ( std::string  name  ) 

Definition at line 5 of file MuonSubDetector.cc.

References barrel, GenMuonPlsPt100GeV_cfg::cout, detector, endcap, lat::endl(), nodef, and rpc.

00006   : detectorName(name) {
00007   if (name=="MuonDTHits") {
00008     detector=barrel;
00009   } else if (name=="MuonCSCHits") {
00010     detector=endcap;
00011   } else if (name=="MuonRPCHits") {
00012     detector=rpc;
00013   } else {
00014     std::cout << "MuonSubDetector::MuonSubDetector does not recognize ";
00015     std::cout << name <<std::endl;
00016     detector=nodef;
00017   } 
00018 }

MuonSubDetector::~MuonSubDetector (  )  [inline]

Definition at line 30 of file MuonSubDetector.h.

00030 {};


Member Function Documentation

bool MuonSubDetector::isBarrel (  ) 

Definition at line 20 of file MuonSubDetector.cc.

References barrel, and detector.

Referenced by MuonSensitiveDetector::createHit(), MuonSlaveSD::format(), MuonSimHitNumberingScheme::MuonSimHitNumberingScheme(), and MuonSensitiveDetector::updateHit().

00020                               {
00021   return (detector==barrel);
00022 }

bool MuonSubDetector::isEndcap (  ) 

Definition at line 24 of file MuonSubDetector.cc.

References detector, and endcap.

Referenced by MuonSensitiveDetector::createHit(), MuonSlaveSD::format(), MuonSensitiveDetector::MuonSensitiveDetector(), MuonSimHitNumberingScheme::MuonSimHitNumberingScheme(), and MuonSensitiveDetector::updateHit().

00024                               {
00025   return (detector==endcap);
00026 }

bool MuonSubDetector::isRpc (  ) 

Definition at line 28 of file MuonSubDetector.cc.

References detector, and rpc.

Referenced by MuonSlaveSD::format(), MuonSensitiveDetector::MuonSensitiveDetector(), and MuonSimHitNumberingScheme::MuonSimHitNumberingScheme().

00028                            {
00029   return (detector==rpc);
00030 }

std::string MuonSubDetector::name (  ) 

Definition at line 32 of file MuonSubDetector.cc.

References detectorName.

Referenced by MuonSlaveSD::clearHits(), MuonSlaveSD::format(), and MuonSensitiveDetector::saveHit().

00032                                {
00033   return detectorName;
00034 }

std::string MuonSubDetector::suIdName (  ) 

Definition at line 36 of file MuonSubDetector.cc.

References barrel, detector, endcap, and rpc.

00036                                    {
00037   if (detector==barrel) {
00038     return "MuonHitsBarrel";
00039   } else if (detector==endcap) {
00040     return "MuonHitsEndcap";
00041   } else if (detector==rpc) {
00042     return "MuonHitsRPC";
00043   } else {
00044     return "";
00045   }
00046 }


Member Data Documentation

subDetector MuonSubDetector::detector [private]

Definition at line 40 of file MuonSubDetector.h.

Referenced by isBarrel(), isEndcap(), isRpc(), MuonSubDetector(), and suIdName().

std::string MuonSubDetector::detectorName [private]

Definition at line 41 of file MuonSubDetector.h.

Referenced by name().


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