File indexing completed on 2024-04-06 12:05:13
0001
0002 #ifndef DataFormats_SiStripCommon_SiStripEnumsAndStrings_H
0003 #define DataFormats_SiStripCommon_SiStripEnumsAndStrings_H
0004
0005 #include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
0006 #include <string>
0007
0008
0009 class SiStripEnumsAndStrings {
0010 public:
0011 static std::string view(const sistrip::View&);
0012 static sistrip::View view(const std::string& directory);
0013
0014 static std::string runType(const sistrip::RunType&);
0015 static sistrip::RunType runType(const std::string& run_type);
0016
0017 static sistrip::RunType runType(const uint16_t&);
0018
0019 static std::string keyType(const sistrip::KeyType&);
0020 static sistrip::KeyType keyType(const std::string& key_type);
0021
0022 static std::string granularity(const sistrip::Granularity&);
0023 static sistrip::Granularity granularity(const std::string& granularity);
0024
0025 static std::string apvReadoutMode(const sistrip::ApvReadoutMode&);
0026 static sistrip::ApvReadoutMode apvReadoutMode(const std::string& apv_readout_mode);
0027
0028 static std::string fedReadoutMode(const sistrip::FedReadoutMode&);
0029 static sistrip::FedReadoutMode fedReadoutMode(const std::string& fed_readout_mode);
0030
0031 static std::string histoType(const sistrip::HistoType&);
0032 static sistrip::HistoType histoType(const std::string& histo_type);
0033
0034 static std::string monitorable(const sistrip::Monitorable&);
0035 static sistrip::Monitorable monitorable(const std::string& histo_monitorable);
0036
0037 static std::string presentation(const sistrip::Presentation&);
0038 static sistrip::Presentation presentation(const std::string& histo_presentation);
0039
0040 static std::string cablingSource(const sistrip::CablingSource&);
0041 static sistrip::CablingSource cablingSource(const std::string& cabling_source);
0042 };
0043
0044 #endif