![]() |
![]() |
#include <VisReco/VisEcal/interface/VisEcalSubdetector.h>
Static Public Member Functions | |
static int | subDet (const std::string &key) |
static const std::string | subDetName (EcalSubdetector key) |
Definition at line 16 of file VisEcalSubdetector.h.
int VisEcalSubdetector::subDet | ( | const std::string & | key | ) | [static] |
Definition at line 17 of file VisEcalSubdetector.cc.
References EcalBarrel, EcalEndcap, EcalLaserPnDiode, EcalPreshower, and EcalTriggerTower.
00018 { 00019 std::map<std::string, EcalSubdetector> type; 00020 00021 type ["EcalBarrel"] = EcalBarrel; 00022 type ["EcalEndcap"] = EcalEndcap; 00023 type ["EcalPreshower"] = EcalPreshower; 00024 type ["EcalTriggerTower"] = EcalTriggerTower; 00025 type ["EcalLaserPnDiode"] = EcalLaserPnDiode; 00026 00027 return type [key]; 00028 }
const std::string VisEcalSubdetector::subDetName | ( | EcalSubdetector | key | ) | [static] |
Definition at line 31 of file VisEcalSubdetector.cc.
References EcalBarrel, EcalEndcap, EcalLaserPnDiode, EcalPreshower, and EcalTriggerTower.
Referenced by VisEcalRecHitTwig::update(), and VisEcalUncalibratedRecHitTwig::update().
00032 { 00033 std::map<EcalSubdetector, std::string> type; 00034 00035 type [EcalBarrel] = "EcalBarrel"; 00036 type [EcalEndcap] = "EcalEndcap"; 00037 type [EcalPreshower] = "EcalPreshower"; 00038 type [EcalTriggerTower] = "EcalTriggerTower"; 00039 type [EcalLaserPnDiode] = "EcalLaserPnDiode"; 00040 00041 return type [key]; 00042 }