00001 #ifndef SiStripCommon_SiStripHistoId_h 00002 #define SiStripCommon_SiStripHistoId_h 00003 // -*- C++ -*- 00004 // 00005 // Package: SiStripCommon 00006 // Class : SiStripHistoId 00007 // 00016 // 00017 // Original Author: dkcira 00018 // Created: Wed Feb 22 16:07:51 CET 2006 00019 // $Id: SiStripHistoId.h,v 1.2 2008/03/03 11:50:41 maborgia Exp $ 00020 // 00021 00022 #include <string> 00023 #include <boost/cstdint.hpp> 00024 00025 00026 class SiStripHistoId 00027 { 00028 public: 00029 SiStripHistoId(); 00030 virtual ~SiStripHistoId(); 00031 // generally: histoid = description + separator1 + id_type + separator2 + component_id 00032 std::string createHistoId(std::string description, std::string id_type, uint32_t component_id); 00033 std::string createHistoLayer(std::string description, std::string id_type,std::string path, std::string flag); 00034 // extract the component_id and the id_type from a histogram id 00035 uint32_t getComponentId(std::string histoid); 00036 std::string getComponentType(std::string histoid); 00037 private: 00038 SiStripHistoId(const SiStripHistoId&); // stop default 00039 const SiStripHistoId& operator=(const SiStripHistoId&); // stop default 00040 std::string returnIdPart(std::string histoid, uint32_t whichpart); 00041 // ---------- member data -------------------------------- 00042 std::string separator1; 00043 std::string separator2; 00044 }; 00045 00046 #endif