Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:48:55

0001 #ifndef Geometry_MuonNumbering_MuonSubDetector_h
0002 #define Geometry_MuonNumbering_MuonSubDetector_h
0003 
0004 /** \class MuonSubDetector
0005  *
0006  * class to handle muon sensitive detectors,
0007  * possible arguments for constructor:
0008  * "MuonDTHits", "MuonCSCHits", "MuonRPCHits", "MuonGEMHits", "MuonME0Hits" 
0009  *
0010  * the function suIdName() returns the detector SuId
0011  * for the ROU factory
0012  *  
0013  * \author Arno Straessner, CERN <arno.straessner@cern.ch>
0014  *
0015  */
0016 
0017 #include <string>
0018 
0019 class MuonSubDetector {
0020 public:
0021   /*  
0022    * possible arguments for constructor:
0023    * "MuonDTHits", "MuonCSCHits", "MuonRPCHits", "MuonGEMHits", "MuonME0Hits"
0024    */
0025 
0026   MuonSubDetector(const std::string& name);
0027   ~MuonSubDetector(){};
0028 
0029   bool isBarrel();
0030   bool isEndcap();
0031   bool isRPC();
0032   bool isGEM();
0033   bool isME0();
0034   std::string name();
0035   std::string suIdName();
0036 
0037 private:
0038   enum subDetector { barrel, endcap, rpc, gem, me0, nodef };
0039   subDetector detector;
0040   std::string detectorName;
0041 };
0042 
0043 #endif