File indexing completed on 2024-04-06 12:08:38
0001 #ifndef SiStripCommon_SiStripHistoId_h
0002 #define SiStripCommon_SiStripHistoId_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #include <string>
0022 #include <cstdint>
0023
0024 class TrackerTopology;
0025 class SiStripHistoId {
0026 public:
0027 SiStripHistoId();
0028 SiStripHistoId(const SiStripHistoId&) = delete;
0029 const SiStripHistoId& operator=(const SiStripHistoId&) = delete;
0030 virtual ~SiStripHistoId();
0031
0032 std::string createHistoId(std::string description, std::string id_type, uint32_t component_id);
0033 std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag);
0034
0035 std::string getSubdetid(uint32_t id, const TrackerTopology* tTopo, bool flag_ring);
0036
0037 uint32_t getComponentId(std::string histoid);
0038 std::string getComponentType(std::string histoid);
0039
0040 private:
0041 std::string returnIdPart(std::string histoid, uint32_t whichpart);
0042 };
0043
0044 #endif