CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/DataFormats/SiStripCommon/interface/SiStripEnumsAndStrings.h

Go to the documentation of this file.
00001 // Last commit: $Id: SiStripEnumsAndStrings.h,v 1.4 2007/11/29 17:08:03 bainbrid Exp $
00002 
00003 #ifndef DataFormats_SiStripCommon_SiStripEnumsAndStrings_H
00004 #define DataFormats_SiStripCommon_SiStripEnumsAndStrings_H
00005 
00006 #include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
00007 #include <string>
00008 
00010 class SiStripEnumsAndStrings {
00011   
00012  public:
00013 
00014   static std::string view( const sistrip::View& );
00015   static sistrip::View view( const std::string& directory );
00016   
00017   static std::string runType( const sistrip::RunType& );
00018   static sistrip::RunType runType( const std::string& run_type );
00019 
00020   static sistrip::RunType runType( const uint16_t& );
00021   
00022   static std::string keyType( const sistrip::KeyType& );
00023   static sistrip::KeyType keyType( const std::string& key_type );
00024   
00025   static std::string granularity( const sistrip::Granularity& );
00026   static sistrip::Granularity granularity( const std::string& granularity );
00027 
00028   static std::string apvReadoutMode( const sistrip::ApvReadoutMode& );
00029   static sistrip::ApvReadoutMode apvReadoutMode( const std::string& apv_readout_mode );
00030 
00031   static std::string fedReadoutMode( const sistrip::FedReadoutMode& );
00032   static sistrip::FedReadoutMode fedReadoutMode( const std::string& fed_readout_mode );
00033   
00034   static std::string histoType( const sistrip::HistoType& );
00035   static sistrip::HistoType histoType( const std::string& histo_type );
00036   
00037   static std::string monitorable( const sistrip::Monitorable& );
00038   static sistrip::Monitorable monitorable( const std::string& histo_monitorable );
00039   
00040   static std::string presentation( const sistrip::Presentation& );
00041   static sistrip::Presentation presentation( const std::string& histo_presentation );
00042   
00043   static std::string cablingSource( const sistrip::CablingSource& );
00044   static sistrip::CablingSource cablingSource( const std::string& cabling_source );
00045   
00046 };
00047 
00048 #endif // DataFormats_SiStripCommon_SiStripEnumsAndStrings_H
00049 
00050