#include <VisFramework/VisEventSetup/interface/VisSubdetector.h>
Static Public Member Functions | |
static const std::string | detName (DetId::Detector key) |
static const std::string | subDetName (DetId::Detector det, int key) |
Definition at line 16 of file VisSubdetector.h.
const std::string VisSubdetector::detName | ( | DetId::Detector | key | ) | [static] |
Definition at line 17 of file VisSubdetector.cc.
References DetId::Calo, DetId::Ecal, DetId::Hcal, DetId::Muon, and DetId::Tracker.
Referenced by VisPCaloHitTwig::update().
00018 { 00019 std::map<DetId::Detector, std::string> type; 00020 00021 type [DetId::Tracker] = "Tracker"; 00022 type [DetId::Muon] = "Muon"; 00023 type [DetId::Ecal] = "Ecal"; 00024 type [DetId::Hcal] = "Hcal"; 00025 type [DetId::Calo] = "Calo"; 00026 00027 return type [key]; 00028 }
const std::string VisSubdetector::subDetName | ( | DetId::Detector | det, | |
int | key | |||
) | [static] |
Definition at line 31 of file VisSubdetector.cc.
References DetId::Calo, DetId::Ecal, DetId::Hcal, DetId::Muon, and DetId::Tracker.
Referenced by VisPCaloHitTwig::update().
00032 { 00033 std::map<int, std::string> type; 00034 00035 switch (det) 00036 { 00037 case DetId::Tracker: 00038 // type [DetId::Tracker] = "Tracker"; 00039 type [1] = "Pixel Barrel"; // edm::ESHandle<TrackerGeometry> m_pDD; eventSetup.get<TrackerDigiGeometryRecord> ().get (m_pDD); 00040 type [2] = "Pixel Endcap"; 00041 type [3] = "TIB"; 00042 type [4] = "TID"; 00043 type [5] = "TOB"; 00044 type [6] = "TEC"; 00045 break; 00046 case DetId::Muon: 00047 // type [DetId::Muon] = "Muon"; 00048 type [1] = "DT"; // edm::ESHandle<DTGeometry> m_pDD; eventSetup.get<MuonGeometryRecord> ().get (m_pDD); 00049 type [2] = "CSC"; // edm::ESHandle<CSCGeometry> m_pDD; eventSetup.get<MuonGeometryRecord> ().get (m_pDD); 00050 type [3] = "RPC"; // edm::ESHandle<RPCGeometry> m_pDD; eventSetup.get<MuonGeometryRecord> ().get (m_pDD); 00051 break; 00052 case DetId::Ecal: 00053 // type [DetId::Ecal] = "Ecal"; 00054 type [1] = "EcalBarrel"; // edm::ESHandle<CaloGeometry> pG; eventSetup.get<IdealGeometryRecord>().get (pG); 00055 // const CaloSubdetectorGeometry *geom = (*m_pDD).getSubdetectorGeometry (detectorId (m_detID), m_subdetn); 00056 type [2] = "EcalEndcap"; 00057 type [3] = "EcalPreshower"; 00058 type [4] = "EcalTriggerTower"; 00059 type [5] = "EcalLaserPnDiode"; 00060 break; 00061 case DetId::Hcal: 00062 // type [DetId::Hcal] = "Hcal"; 00063 //type [0] = "HcalEmpty"; 00064 type [1] = "HcalBarrel"; 00065 type [2] = "HcalEndcap"; 00066 type [3] = "HcalOuter"; 00067 type [4] = "HcalForward"; 00068 type [5] = "HcalTriggerTower"; 00069 type [6] = "HcalCalibration"; 00070 type [7] = "HcalComposite"; 00071 break; 00072 case DetId::Calo: 00073 // type [DetId::Calo] = "Calo"; 00074 break; 00075 default: 00076 break; 00077 } 00078 00079 return type [key]; 00080 }