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 Types | Private Attributes
MuonSubDetector Class Reference

#include <MuonSubDetector.h>

Public Member Functions

bool isBarrel ()
 
bool isEndcap ()
 
bool isGEM ()
 
bool isME0 ()
 
bool isRPC ()
 
 MuonSubDetector (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

Constructor & Destructor Documentation

MuonSubDetector::MuonSubDetector ( std::string  name)

Definition at line 5 of file MuonSubDetector.cc.

References barrel, gather_cfg::cout, detector, endcap, gem, me0, nodef, and rpc.

6  : detectorName(name) {
7  if (name=="MuonDTHits") {
9  } else if (name=="MuonCSCHits") {
11  } else if (name=="MuonRPCHits") {
12  detector=rpc;
13  } else if (name=="MuonGEMHits") {
14  detector=gem;
15  } else if (name=="MuonME0Hits") {
16  detector=me0;
17  } else {
18  std::cout << "MuonSubDetector::MuonSubDetector does not recognize ";
19  std::cout << name <<std::endl;
21  }
22 }
subDetector detector
std::string name()
std::string detectorName
tuple cout
Definition: gather_cfg.py:121
MuonSubDetector::~MuonSubDetector ( )
inline

Definition at line 28 of file MuonSubDetector.h.

28 {};

Member Function Documentation

bool MuonSubDetector::isBarrel ( )
bool MuonSubDetector::isEndcap ( )
bool MuonSubDetector::isGEM ( )
bool MuonSubDetector::isME0 ( )
bool MuonSubDetector::isRPC ( )
std::string MuonSubDetector::name ( void  )
std::string MuonSubDetector::suIdName ( )

Definition at line 48 of file MuonSubDetector.cc.

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

48  {
49  if (detector==barrel) {
50  return "MuonHitsBarrel";
51  } else if (detector==endcap) {
52  return "MuonHitsEndcap";
53  } else if (detector==rpc) {
54  return "MuonHitsRPC";
55  } else if (detector==gem) {
56  return "MuonHitsGEM";
57  } else if (detector==me0) {
58  return "MuonHitsME0";
59  } else {
60  return "";
61  }
62 }
subDetector detector

Member Data Documentation

subDetector MuonSubDetector::detector
private

Definition at line 40 of file MuonSubDetector.h.

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

std::string MuonSubDetector::detectorName
private

Definition at line 41 of file MuonSubDetector.h.

Referenced by name().