CMS 3D CMS Logo

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 <boost/cstdint.hpp>
23 
24 
25 class TrackerTopology;
27 {
28  public:
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  private:
40  SiStripHistoId(const SiStripHistoId&); // stop default
41  const SiStripHistoId& operator=(const SiStripHistoId&); // stop default
42  std::string returnIdPart(std::string histoid, uint32_t whichpart);
43 };
44 
45 #endif
std::string getComponentType(std::string histoid)
std::string returnIdPart(std::string histoid, uint32_t whichpart)
const SiStripHistoId & operator=(const SiStripHistoId &)
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()