CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

pos::PixelChannel Class Reference

#include <interface/PixelChannel.h>

List of all members.

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, PixelTBMChannel TBMChannel)
 PixelChannel (std::string name)
 PixelChannel (PixelModuleName module, std::string TBMChannel)
const PixelTBMChannelTBMChannel () const
std::string TBMChannelString () const

Private Attributes

PixelModuleName module_
PixelTBMChannel TBMChannel_

Friends

std::ostream & operator<< (std::ostream &s, const PixelChannel &channel)

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.

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

Definition at line 5 of file PixelChannel.cc.

                                                                      :
  module_(module), TBMChannel_(TBMChannel)
{}
PixelChannel::PixelChannel ( PixelModuleName  module,
PixelTBMChannel  TBMChannel 
)

Definition at line 9 of file PixelChannel.cc.

                                                                            :
  module_(module), TBMChannel_(TBMChannel)
{}
PixelChannel::PixelChannel ( std::string  name)

Definition at line 13 of file PixelChannel.cc.

References module_, TBMChannel_, and TBMChannelString().

{
        module_ = PixelModuleName(name);
        char TBMChannelString[2] = {0,0};
        TBMChannelString[0] = name[name.size()-1]; // take the last character of name
        TBMChannel_ = PixelTBMChannel(TBMChannelString);
}

Member Function Documentation

std::string PixelChannel::channelname ( ) const

Definition at line 27 of file PixelChannel.cc.

References modulename(), and TBMChannelString().

{
        return modulename() + "_ch" + TBMChannelString();
}
const PixelModuleName& pos::PixelChannel::module ( ) const [inline]

Definition at line 30 of file PixelChannel.h.

References module_.

{ return module_; }
std::string pos::PixelChannel::modulename ( ) const [inline]

Definition at line 31 of file PixelChannel.h.

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

Referenced by channelname().

{ return module_.modulename(); }
const bool pos::PixelChannel::operator< ( const PixelChannel aChannel) const [inline]

Definition at line 40 of file PixelChannel.h.

References module_, and TBMChannel_.

                                                            {
      return (module_<aChannel.module_ || (module_==aChannel.module_ && TBMChannel_ < aChannel.TBMChannel_) );
    }
const bool pos::PixelChannel::operator== ( const PixelChannel aChannel) const [inline]

Definition at line 44 of file PixelChannel.h.

References module_, and TBMChannel_.

                                                             {
      return (module_==aChannel.module_ && TBMChannel_==aChannel.TBMChannel_);
    }
const PixelTBMChannel& pos::PixelChannel::TBMChannel ( ) const [inline]

Definition at line 32 of file PixelChannel.h.

References TBMChannel_.

{ return TBMChannel_; }
std::string pos::PixelChannel::TBMChannelString ( ) const [inline]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const PixelChannel channel 
) [friend]

Member Data Documentation

Definition at line 49 of file PixelChannel.h.

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

Definition at line 50 of file PixelChannel.h.

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