test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 <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);
35  // extract the component_id and the id_type from a histogram id
36  uint32_t getComponentId(std::string histoid);
38  private:
39  SiStripHistoId(const SiStripHistoId&); // stop default
40  const SiStripHistoId& operator=(const SiStripHistoId&); // stop default
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)
const SiStripHistoId & operator=(const SiStripHistoId &)
uint32_t getComponentId(std::string histoid)
tuple path
else: Piece not in the list, fine.
std::string getSubdetid(uint32_t id, const TrackerTopology *tTopo, bool flag_ring)
tuple description
Definition: idDealer.py:66
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()