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 // Last commit: $Id: SiStripHistoTitle.h,v 1.4 2007/07/31 15:20:24 ratnik Exp $
2 
3 #ifndef DataFormats_SiStripCommon_SiStripHistoTitle_H
4 #define DataFormats_SiStripCommon_SiStripHistoTitle_H
5 
7 #include <ostream>
8 #include <sstream>
9 #include <string>
10 
11 class SiStripKey;
12 class SiStripHistoTitle;
13 
15 std::ostream& operator<< ( std::ostream&, const SiStripHistoTitle& );
16 
22 
23  public:
24 
25  // ---------- Constructors, destructors ----------
26 
28  SiStripHistoTitle( const sistrip::HistoType& histo_type,
29  const sistrip::RunType& run_type,
30  const SiStripKey& key,
31  const std::string& extra_info = "" );
32 
34  SiStripHistoTitle( const sistrip::HistoType& histo_type,
35  const sistrip::RunType& run_type,
36  const sistrip::KeyType& key_type,
37  const uint32_t& key_value,
38  const sistrip::Granularity& gran,
39  const uint16_t& channel,
40  const std::string& extra_info = "" );
41 
43  SiStripHistoTitle( const std::string& histo_title );
44 
45  // ---------- Public interface ----------
46 
48  inline const std::string& title() const;
49 
51  inline const sistrip::HistoType& histoType() const;
52 
54  inline const sistrip::RunType& runType() const;
55 
57  inline const sistrip::KeyType& keyType() const;
58 
60  inline const uint32_t& keyValue() const;
61 
63  inline const sistrip::Granularity& granularity() const;
64 
66  inline const uint16_t& channel() const;
67 
69  inline const std::string& extraInfo() const;
70 
71  private:
72 
73  // ---------- Private methods ----------
74 
77 
79  void setTitle();
80 
82  void extractTitle();
83 
84  // ---------- Private member data ----------
85 
87  std::string title_;
88 
91 
94 
97 
99  uint32_t keyValue_;
100 
103 
105  uint16_t channel_;
106 
108  std::string extraInfo_;
109 
110 };
111 
112 // ---------- inline methods ----------
113 
114 const std::string& SiStripHistoTitle::title() const { return title_; }
118 const uint32_t& SiStripHistoTitle::keyValue() const { return keyValue_; }
120 const uint16_t& SiStripHistoTitle::channel() const { return channel_; }
121 const std::string& SiStripHistoTitle::extraInfo() const { return extraInfo_; }
122 
123 #endif // DataFormats_SiStripCommon_SiStripHistoTitle_H
124 
125 
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:24
const sistrip::RunType & runType() const
sistrip::KeyType keyType_
list key
Definition: combine.py:13
const uint16_t & channel() const
const sistrip::HistoType & histoType() const