CMS 3D CMS Logo

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

#include <MuonSubDetector.h>

Public Member Functions

bool isBarrel ()
 
bool isEndcap ()
 
bool isGEM ()
 
bool isME0 ()
 
bool isRPC ()
 
 MuonSubDetector (const std::string &name)
 
std::string name ()
 
std::string suIdName ()
 
 ~MuonSubDetector ()
 

Private Types

enum  subDetector {
  barrel, endcap, rpc, gem,
  me0, nodef
}
 

Private Attributes

subDetector detector
 
std::string detectorName
 

Detailed Description

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

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

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

Definition at line 19 of file MuonSubDetector.h.

Member Enumeration Documentation

◆ subDetector

Enumerator
barrel 
endcap 
rpc 
gem 
me0 
nodef 

Definition at line 38 of file MuonSubDetector.h.

38 { barrel, endcap, rpc, gem, me0, nodef };

Constructor & Destructor Documentation

◆ MuonSubDetector()

MuonSubDetector::MuonSubDetector ( const std::string &  name)

Definition at line 4 of file MuonSubDetector.cc.

4  : detectorName(name) {
5  if (name == "MuonDTHits") {
7  } else if (name == "MuonCSCHits") {
9  } else if (name == "MuonRPCHits") {
10  detector = rpc;
11  } else if (name == "MuonGEMHits") {
12  detector = gem;
13  } else if (name == "MuonME0Hits") {
14  detector = me0;
15  } else {
16  edm::LogWarning("Geometry") << "MuonSubDetector::MuonSubDetector does not recognize " << name;
17  detector = nodef;
18  }
19 }

References barrel, detector, endcap, gem, me0, name(), nodef, and rpc.

◆ ~MuonSubDetector()

MuonSubDetector::~MuonSubDetector ( )
inline

Definition at line 27 of file MuonSubDetector.h.

27 {};

Member Function Documentation

◆ isBarrel()

bool MuonSubDetector::isBarrel ( )

◆ isEndcap()

bool MuonSubDetector::isEndcap ( )

◆ isGEM()

bool MuonSubDetector::isGEM ( )

◆ isME0()

bool MuonSubDetector::isME0 ( )

◆ isRPC()

bool MuonSubDetector::isRPC ( )

◆ name()

std::string MuonSubDetector::name ( void  )

◆ suIdName()

std::string MuonSubDetector::suIdName ( )

Definition at line 33 of file MuonSubDetector.cc.

33  {
34  if (detector == barrel) {
35  return "MuonHitsBarrel";
36  } else if (detector == endcap) {
37  return "MuonHitsEndcap";
38  } else if (detector == rpc) {
39  return "MuonHitsRPC";
40  } else if (detector == gem) {
41  return "MuonHitsGEM";
42  } else if (detector == me0) {
43  return "MuonHitsME0";
44  } else {
45  return "";
46  }
47 }

References barrel, detector, endcap, me0, and rpc.

Member Data Documentation

◆ detector

subDetector MuonSubDetector::detector
private

Definition at line 39 of file MuonSubDetector.h.

Referenced by isBarrel(), isEndcap(), isGEM(), isME0(), isRPC(), MuonSubDetector(), and suIdName().

◆ detectorName

std::string MuonSubDetector::detectorName
private

Definition at line 40 of file MuonSubDetector.h.

Referenced by name().

MuonSubDetector::me0
Definition: MuonSubDetector.h:38
MuonSubDetector::endcap
Definition: MuonSubDetector.h:38
MuonSubDetector::name
std::string name()
Definition: MuonSubDetector.cc:31
MuonSubDetector::detectorName
std::string detectorName
Definition: MuonSubDetector.h:40
edm::LogWarning
Definition: MessageLogger.h:141
MuonSubDetector::gem
Definition: MuonSubDetector.h:38
MuonSubDetector::barrel
Definition: MuonSubDetector.h:38
MuonSubDetector::nodef
Definition: MuonSubDetector.h:38
gem
Definition: AMC13Event.h:6
MuonSubDetector::detector
subDetector detector
Definition: MuonSubDetector.h:39
MuonSubDetector::rpc
Definition: MuonSubDetector.h:38