CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiStripHistoId.h
Go to the documentation of this file.
1 #ifndef SiStripCommon_SiStripHistoId_h
2 #define SiStripCommon_SiStripHistoId_h
3 // -*- C++ -*-
4 //
5 // Package: SiStripCommon
6 // Class : SiStripHistoId
7 //
16 //
17 // Original Author: dkcira
18 // Created: Wed Feb 22 16:07:51 CET 2006
19 //
20 
21 #include <string>
22 #include <cstdint>
23 
24 class TrackerTopology;
26 public:
28  SiStripHistoId(const SiStripHistoId&) = delete; // stop default
29  const SiStripHistoId& operator=(const SiStripHistoId&) = delete; // stop default
30  virtual ~SiStripHistoId();
31  // generally: histoid = description + separator1 + id_type + separator2 + component_id
32  std::string createHistoId(std::string description, std::string id_type, uint32_t component_id);
34  // std::string getSubdetid(uint32_t id, const TrackerTopology* tTopo, bool flag_ring, bool flag_thickness = false);
35  std::string getSubdetid(uint32_t id, const TrackerTopology* tTopo, bool flag_ring);
36  // extract the component_id and the id_type from a histogram id
37  uint32_t getComponentId(std::string histoid);
39 
40 private:
41  std::string returnIdPart(std::string histoid, uint32_t whichpart);
42 };
43 
44 #endif
std::string getComponentType(std::string histoid)
std::string returnIdPart(std::string histoid, uint32_t whichpart)
uint32_t getComponentId(std::string histoid)
std::string getSubdetid(uint32_t id, const TrackerTopology *tTopo, bool flag_ring)
std::string createHistoId(std::string description, std::string id_type, uint32_t component_id)
std::string createHistoLayer(std::string description, std::string id_type, std::string path, std::string flag)
virtual ~SiStripHistoId()
const SiStripHistoId & operator=(const SiStripHistoId &)=delete