CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
22  public:
23 
24  // ---------- Constructors, destructors ----------
25 
27  SiStripHistoTitle( const sistrip::HistoType& histo_type,
28  const sistrip::RunType& run_type,
29  const SiStripKey& key,
30  const std::string& extra_info = "" );
31 
33  SiStripHistoTitle( const sistrip::HistoType& histo_type,
34  const sistrip::RunType& run_type,
35  const sistrip::KeyType& key_type,
36  const uint32_t& key_value,
37  const sistrip::Granularity& gran,
38  const uint16_t& channel,
39  const std::string& extra_info = "" );
40 
42  SiStripHistoTitle( const std::string& histo_title );
43 
44  // ---------- Public interface ----------
45 
47  inline const std::string& title() const;
48 
50  inline const sistrip::HistoType& histoType() const;
51 
53  inline const sistrip::RunType& runType() const;
54 
56  inline const sistrip::KeyType& keyType() const;
57 
59  inline const uint32_t& keyValue() const;
60 
62  inline const sistrip::Granularity& granularity() const;
63 
65  inline const uint16_t& channel() const;
66 
68  inline const std::string& extraInfo() const;
69 
70  private:
71 
72  // ---------- Private methods ----------
73 
76 
78  void setTitle();
79 
81  void extractTitle();
82 
83  // ---------- Private member data ----------
84 
87 
90 
93 
96 
98  uint32_t keyValue_;
99 
102 
104  uint16_t channel_;
105 
108 
109 };
110 
111 // ---------- inline methods ----------
112 
113 const std::string& SiStripHistoTitle::title() const { return title_; }
117 const uint32_t& SiStripHistoTitle::keyValue() const { return keyValue_; }
119 const uint16_t& SiStripHistoTitle::channel() const { return channel_; }
121 
122 #endif // DataFormats_SiStripCommon_SiStripHistoTitle_H
123 
124 
Utility class that holds histogram title.
const std::string & title() const
sistrip::Granularity granularity_
sistrip::RunType runType_
const sistrip::Granularity & granularity() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
const std::string & extraInfo() const
sistrip::HistoType histoType_
const sistrip::KeyType & keyType() const
const uint32_t & keyValue() const
Base utility class that identifies a position within a logical structure of the strip tracker...
Definition: SiStripKey.h:23
const sistrip::RunType & runType() const
sistrip::KeyType keyType_
list key
Definition: combine.py:13
const uint16_t & channel() const
const sistrip::HistoType & histoType() const