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

Constructor & Destructor Documentation

◆ MuonSubDetector()

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

Definition at line 4 of file MuonSubDetector.cc.

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

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("MuonGeom") << "MuonSubDetector::MuonSubDetector does not recognize " << name;
17  detector = nodef;
18  }
19 }
subDetector detector
std::string name()
std::string detectorName
Log< level::Warning, false > LogWarning

◆ ~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.

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

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 }
subDetector detector

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().