CMS 3D CMS Logo

VisEcalSubdetector Class Reference

#include <VisReco/VisEcal/interface/VisEcalSubdetector.h>

List of all members.

Static Public Member Functions

static int subDet (const std::string &key)
static const std::string subDetName (EcalSubdetector key)


Detailed Description

Definition at line 16 of file VisEcalSubdetector.h.


Member Function Documentation

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 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:20 2009 for CMSSW by  doxygen 1.5.4