CMS 3D CMS Logo

SiStripHistoTitle.h
Go to the documentation of this file.
1 
2 #ifndef DataFormats_SiStripCommon_SiStripHistoTitle_H
3 #define DataFormats_SiStripCommon_SiStripHistoTitle_H
4 
6 #include <ostream>
7 #include <sstream>
8 #include <string>
9 
10 class SiStripKey;
11 class SiStripHistoTitle;
12 
14 std::ostream& operator<<(std::ostream&, const SiStripHistoTitle&);
15 
21 public:
22  // ---------- Constructors, destructors ----------
23 
25  SiStripHistoTitle(const sistrip::HistoType& histo_type,
26  const sistrip::RunType& run_type,
27  const SiStripKey& key,
28  const std::string& extra_info = "");
29 
31  SiStripHistoTitle(const sistrip::HistoType& histo_type,
32  const sistrip::RunType& run_type,
33  const sistrip::KeyType& key_type,
34  const uint32_t& key_value,
35  const sistrip::Granularity& gran,
36  const uint16_t& channel,
37  const std::string& extra_info = "");
38 
40  SiStripHistoTitle(const std::string& histo_title);
41 
42  // ---------- Public interface ----------
43 
45  inline const std::string& title() const;
46 
48  inline const sistrip::HistoType& histoType() const;
49 
51  inline const sistrip::RunType& runType() const;
52 
54  inline const sistrip::KeyType& keyType() const;
55 
57  inline const uint32_t& keyValue() const;
58 
60  inline const sistrip::Granularity& granularity() const;
61 
63  inline const uint16_t& channel() const;
64 
66  inline const std::string& extraInfo() const;
67 
68 private:
69  // ---------- Private methods ----------
70 
73 
75  void setTitle();
76 
78  void extractTitle();
79 
80  // ---------- Private member data ----------
81 
84 
87 
90 
93 
95  uint32_t keyValue_;
96 
99 
101  uint16_t channel_;
102 
105 };
106 
107 // ---------- inline methods ----------
108 
109 const std::string& SiStripHistoTitle::title() const { return title_; }
113 const uint32_t& SiStripHistoTitle::keyValue() const { return keyValue_; }
115 const uint16_t& SiStripHistoTitle::channel() const { return channel_; }
117 
118 #endif // DataFormats_SiStripCommon_SiStripHistoTitle_H
sistrip::Granularity
Granularity
Definition: ConstantsForGranularity.h:60
SiStripHistoTitle::runType
const sistrip::RunType & runType() const
Definition: SiStripHistoTitle.h:111
SiStripHistoTitle::channel_
uint16_t channel_
Definition: SiStripHistoTitle.h:101
sistrip::KeyType
KeyType
Definition: ConstantsForKeyType.h:27
SiStripHistoTitle::setTitle
void setTitle()
Definition: SiStripHistoTitle.cc:74
SiStripHistoTitle::keyValue_
uint32_t keyValue_
Definition: SiStripHistoTitle.h:95
SiStripHistoTitle::keyType
const sistrip::KeyType & keyType() const
Definition: SiStripHistoTitle.h:112
SiStripHistoTitle::histoType_
sistrip::HistoType histoType_
Definition: SiStripHistoTitle.h:86
sistrip::RunType
RunType
Definition: ConstantsForRunType.h:70
SiStripHistoTitle::granularity_
sistrip::Granularity granularity_
Definition: SiStripHistoTitle.h:98
SiStripHistoTitle::runType_
sistrip::RunType runType_
Definition: SiStripHistoTitle.h:89
SiStripHistoTitle::extraInfo_
std::string extraInfo_
Definition: SiStripHistoTitle.h:104
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
operator<<
std::ostream & operator<<(std::ostream &, const SiStripHistoTitle &)
Definition: SiStripHistoTitle.cc:186
SiStripConstants.h
SiStripHistoTitle::histoType
const sistrip::HistoType & histoType() const
Definition: SiStripHistoTitle.h:110
SiStripHistoTitle::keyType_
sistrip::KeyType keyType_
Definition: SiStripHistoTitle.h:92
SiStripHistoTitle::extractTitle
void extractTitle()
Definition: SiStripHistoTitle.cc:98
SiStripHistoTitle::granularity
const sistrip::Granularity & granularity() const
Definition: SiStripHistoTitle.h:114
SiStripHistoTitle::channel
const uint16_t & channel() const
Definition: SiStripHistoTitle.h:115
SiStripHistoTitle::title_
std::string title_
Definition: SiStripHistoTitle.h:83
sistrip::HistoType
HistoType
Definition: ConstantsForHistoType.h:26
SiStripHistoTitle::title
const std::string & title() const
Definition: SiStripHistoTitle.h:109
SiStripHistoTitle
Utility class that holds histogram title.
Definition: SiStripHistoTitle.h:20
SiStripHistoTitle::keyValue
const uint32_t & keyValue() const
Definition: SiStripHistoTitle.h:113
SiStripHistoTitle::SiStripHistoTitle
SiStripHistoTitle()
Definition: SiStripHistoTitle.h:72
crabWrapper.key
key
Definition: crabWrapper.py:19
SiStripKey
Base utility class that identifies a position within a logical structure of the strip tracker.
Definition: SiStripKey.h:23
SiStripHistoTitle::extraInfo
const std::string & extraInfo() const
Definition: SiStripHistoTitle.h:116