CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
pos::PixelChannel Class Reference

#include "interface/PixelChannel.h"

Public Member Functions

std::string channelname () const
 
const PixelModuleNamemodule () const
 
std::string modulename () const
 
const bool operator< (const PixelChannel &aChannel) const
 
const bool operator== (const PixelChannel &aChannel) const
 
 PixelChannel ()
 
 PixelChannel (PixelModuleName module, std::string TBMChannel)
 
 PixelChannel (PixelModuleName module, PixelTBMChannel TBMChannel)
 
 PixelChannel (std::string name)
 
const PixelTBMChannelTBMChannel () const
 
std::string TBMChannelString () const
 

Private Attributes

PixelModuleName module_
 
PixelTBMChannel TBMChannel_
 

Detailed Description

A longer explanation will be placed here later

Definition at line 21 of file PixelChannel.h.

Constructor & Destructor Documentation

pos::PixelChannel::PixelChannel ( )
inline

Definition at line 25 of file PixelChannel.h.

References dataset::name, AlCaHLTBitMon_QueryRunRegistry::string, and TBMChannel().

25 {;}
PixelChannel::PixelChannel ( PixelModuleName  module,
std::string  TBMChannel 
)

Definition at line 5 of file PixelChannel.cc.

5  :
7 {}
PixelModuleName module_
Definition: PixelChannel.h:47
const PixelTBMChannel & TBMChannel() const
Definition: PixelChannel.h:32
PixelTBMChannel TBMChannel_
Definition: PixelChannel.h:48
PixelChannel::PixelChannel ( PixelModuleName  module,
PixelTBMChannel  TBMChannel 
)

Definition at line 9 of file PixelChannel.cc.

9  :
10  module_(module), TBMChannel_(TBMChannel)
11 {}
PixelModuleName module_
Definition: PixelChannel.h:47
PixelTBMChannel TBMChannel_
Definition: PixelChannel.h:48
PixelChannel::PixelChannel ( std::string  name)

Definition at line 13 of file PixelChannel.cc.

References module_, TBMChannel_, and TBMChannelString().

14 {
16  char TBMChannelString[2] = {0,0};
17  TBMChannelString[0] = name[name.size()-1]; // take the last character of name
18  TBMChannel_ = PixelTBMChannel(TBMChannelString);
19 }
PixelModuleName module_
Definition: PixelChannel.h:47
Simple class to hold either "A" or "B" for the TBM channel.
std::string TBMChannelString() const
Definition: PixelChannel.h:33
PixelTBMChannel TBMChannel_
Definition: PixelChannel.h:48
This class implements..

Member Function Documentation

std::string PixelChannel::channelname ( ) const

Definition at line 27 of file PixelChannel.cc.

References modulename(), and TBMChannelString().

Referenced by pos::operator<<(), and TBMChannelString().

28 {
29  return modulename() + "_ch" + TBMChannelString();
30 }
std::string modulename() const
Definition: PixelChannel.h:31
std::string TBMChannelString() const
Definition: PixelChannel.h:33
const PixelModuleName& pos::PixelChannel::module ( ) const
inline

Definition at line 30 of file PixelChannel.h.

References module_.

30 { return module_; }
PixelModuleName module_
Definition: PixelChannel.h:47
std::string pos::PixelChannel::modulename ( ) const
inline

Definition at line 31 of file PixelChannel.h.

References module_, and pos::PixelModuleName::modulename().

Referenced by channelname().

31 { return module_.modulename(); }
PixelModuleName module_
Definition: PixelChannel.h:47
std::string modulename() const
const bool pos::PixelChannel::operator< ( const PixelChannel aChannel) const
inline

Definition at line 38 of file PixelChannel.h.

References module_, and TBMChannel_.

38  {
39  return (module_<aChannel.module_ || (module_==aChannel.module_ && TBMChannel_ < aChannel.TBMChannel_) );
40  }
PixelModuleName module_
Definition: PixelChannel.h:47
PixelTBMChannel TBMChannel_
Definition: PixelChannel.h:48
const bool pos::PixelChannel::operator== ( const PixelChannel aChannel) const
inline

Definition at line 42 of file PixelChannel.h.

References module_, and TBMChannel_.

42  {
43  return (module_==aChannel.module_ && TBMChannel_==aChannel.TBMChannel_);
44  }
PixelModuleName module_
Definition: PixelChannel.h:47
PixelTBMChannel TBMChannel_
Definition: PixelChannel.h:48
const PixelTBMChannel& pos::PixelChannel::TBMChannel ( ) const
inline

Definition at line 32 of file PixelChannel.h.

References TBMChannel_.

Referenced by PixelChannel().

32 { return TBMChannel_; }
PixelTBMChannel TBMChannel_
Definition: PixelChannel.h:48
std::string pos::PixelChannel::TBMChannelString ( ) const
inline

Member Data Documentation

PixelModuleName pos::PixelChannel::module_
private

Definition at line 47 of file PixelChannel.h.

Referenced by module(), modulename(), operator<(), operator==(), and PixelChannel().

PixelTBMChannel pos::PixelChannel::TBMChannel_
private

Definition at line 48 of file PixelChannel.h.

Referenced by operator<(), operator==(), PixelChannel(), TBMChannel(), and TBMChannelString().