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
Utility class that holds histogram title.
std::ostream & operator<<(std::ostream &, const SiStripHistoTitle &)
sistrip::Granularity granularity_
sistrip::RunType runType_
const sistrip::KeyType & keyType() const
sistrip::HistoType histoType_
Base utility class that identifies a position within a logical structure of the strip tracker...
Definition: SiStripKey.h:23
key
prepare the HTCondor submission files and eventually submit them
const sistrip::HistoType & histoType() const
sistrip::KeyType keyType_
const uint32_t & keyValue() const
const sistrip::Granularity & granularity() const
const std::string & title() const
const uint16_t & channel() const
const sistrip::RunType & runType() const
const std::string & extraInfo() const