1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#ifndef SiStripCommon_SiStripHistoId_h
#define SiStripCommon_SiStripHistoId_h
// -*- C++ -*-
//
// Package: SiStripCommon
// Class : SiStripHistoId
//
/**\class SiStripHistoId SiStripHistoId.h DQM/SiStripCommon/interface/SiStripHistoId.h
Description: <one line class summary>
Usage:
<usage>
*/
//
// Original Author: dkcira
// Created: Wed Feb 22 16:07:51 CET 2006
//
#include <string>
#include <cstdint>
class TrackerTopology;
class SiStripHistoId {
public:
SiStripHistoId();
SiStripHistoId(const SiStripHistoId&) = delete; // stop default
const SiStripHistoId& operator=(const SiStripHistoId&) = delete; // stop default
virtual ~SiStripHistoId();
// generally: histoid = description + separator1 + id_type + separator2 + component_id
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);
// std::string getSubdetid(uint32_t id, const TrackerTopology* tTopo, bool flag_ring, bool flag_thickness = false);
std::string getSubdetid(uint32_t id, const TrackerTopology* tTopo, bool flag_ring);
// extract the component_id and the id_type from a histogram id
uint32_t getComponentId(std::string histoid);
std::string getComponentType(std::string histoid);
private:
std::string returnIdPart(std::string histoid, uint32_t whichpart);
};
#endif
|