CMS 3D CMS Logo

PixelChannel.h
Go to the documentation of this file.
1 #ifndef PixelChannel_h
2 #define PixelChannel_h
3 
9 #include <string>
10 #include <iostream>
13 
14 // class holding module name and TBM channel ("A" or "B") associated with a channel
15 
16 namespace pos {
21  class PixelChannel {
22  public:
23  PixelChannel() { ; }
26  PixelChannel(std::string name); // takes a name of the form produced by channelname()
27 
28  const PixelModuleName& module() const { return module_; }
29  std::string modulename() const { return module_.modulename(); }
30  const PixelTBMChannel& TBMChannel() const { return TBMChannel_; }
32 
33  std::string channelname() const;
34 
35  // allows for use of find() function in a map of PixelChannels
36  const bool operator<(const PixelChannel& aChannel) const {
37  return (module_ < aChannel.module_ || (module_ == aChannel.module_ && TBMChannel_ < aChannel.TBMChannel_));
38  }
39 
40  const bool operator==(const PixelChannel& aChannel) const {
41  return (module_ == aChannel.module_ && TBMChannel_ == aChannel.TBMChannel_);
42  }
43 
44  private:
47  };
48 
49  std::ostream& operator<<(std::ostream& s, const PixelChannel& channel);
50 } // namespace pos
51 
52 #endif
pos::PixelChannel::operator<
const bool operator<(const PixelChannel &aChannel) const
Definition: PixelChannel.h:36
pos
Definition: PixelAliasList.h:18
pos::PixelModuleName
This class implements..
Definition: PixelModuleName.h:26
pos::PixelChannel::modulename
std::string modulename() const
Definition: PixelChannel.h:29
pos::PixelChannel::TBMChannel
const PixelTBMChannel & TBMChannel() const
Definition: PixelChannel.h:30
alignCSCRings.s
s
Definition: alignCSCRings.py:92
PixelTBMChannel.h
Simple class to hold either "A" or "B" for the TBM channel.
pos::PixelChannel::module_
PixelModuleName module_
Definition: PixelChannel.h:45
pos::PixelChannel::operator==
const bool operator==(const PixelChannel &aChannel) const
Definition: PixelChannel.h:40
PixelModuleName.h
This class implements..
pos::PixelTBMChannel
Simple class to hold either "A" or "B" for the TBM channel.
Definition: PixelTBMChannel.h:18
pos::PixelTBMChannel::string
std::string string() const
Definition: PixelTBMChannel.cc:18
pos::PixelChannel::module
const PixelModuleName & module() const
Definition: PixelChannel.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
pos::PixelChannel::PixelChannel
PixelChannel()
Definition: PixelChannel.h:23
pos::PixelChannel::channelname
std::string channelname() const
Definition: PixelChannel.cc:22
pos::PixelModuleName::modulename
std::string modulename() const
Definition: PixelModuleName.cc:203
pos::PixelChannel
Definition: PixelChannel.h:21
pos::operator<<
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
Definition: PixelCalibConfiguration.cc:1325
module
Definition: vlib.h:198
pos::PixelChannel::TBMChannelString
std::string TBMChannelString() const
Definition: PixelChannel.h:31
pos::PixelChannel::TBMChannel_
PixelTBMChannel TBMChannel_
Definition: PixelChannel.h:46
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17