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

◆ PixelChannel() [1/4]

pos::PixelChannel::PixelChannel ( )
inline

Definition at line 23 of file PixelChannel.h.

23 { ; }

◆ PixelChannel() [2/4]

PixelChannel::PixelChannel ( PixelModuleName  module,
std::string  TBMChannel 
)

Definition at line 5 of file PixelChannel.cc.

◆ PixelChannel() [3/4]

PixelChannel::PixelChannel ( PixelModuleName  module,
PixelTBMChannel  TBMChannel 
)

Definition at line 7 of file PixelChannel.cc.

◆ PixelChannel() [4/4]

PixelChannel::PixelChannel ( std::string  name)

Definition at line 10 of file PixelChannel.cc.

10  {
12  char TBMChannelString[2] = {0, 0};
13  TBMChannelString[0] = name[name.size() - 1]; // take the last character of name
15 }

References module_, Skims_PA_cff::name, TBMChannel_, and TBMChannelString().

Member Function Documentation

◆ channelname()

std::string PixelChannel::channelname ( ) const

Definition at line 22 of file PixelChannel.cc.

22 { return modulename() + "_ch" + TBMChannelString(); }

References modulename(), and TBMChannelString().

Referenced by pos::operator<<().

◆ module()

const PixelModuleName& pos::PixelChannel::module ( ) const
inline

Definition at line 28 of file PixelChannel.h.

28 { return module_; }

References module_.

◆ modulename()

std::string pos::PixelChannel::modulename ( ) const
inline

Definition at line 29 of file PixelChannel.h.

29 { return module_.modulename(); }

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

Referenced by channelname().

◆ operator<()

const bool pos::PixelChannel::operator< ( const PixelChannel aChannel) const
inline

Definition at line 36 of file PixelChannel.h.

36  {
37  return (module_ < aChannel.module_ || (module_ == aChannel.module_ && TBMChannel_ < aChannel.TBMChannel_));
38  }

References module_, and TBMChannel_.

◆ operator==()

const bool pos::PixelChannel::operator== ( const PixelChannel aChannel) const
inline

Definition at line 40 of file PixelChannel.h.

40  {
41  return (module_ == aChannel.module_ && TBMChannel_ == aChannel.TBMChannel_);
42  }

References module_, and TBMChannel_.

◆ TBMChannel()

const PixelTBMChannel& pos::PixelChannel::TBMChannel ( ) const
inline

Definition at line 30 of file PixelChannel.h.

30 { return TBMChannel_; }

References TBMChannel_.

◆ TBMChannelString()

std::string pos::PixelChannel::TBMChannelString ( ) const
inline

Member Data Documentation

◆ module_

PixelModuleName pos::PixelChannel::module_
private

Definition at line 45 of file PixelChannel.h.

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

◆ TBMChannel_

PixelTBMChannel pos::PixelChannel::TBMChannel_
private

Definition at line 46 of file PixelChannel.h.

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

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
pos::PixelChannel::module_
PixelModuleName module_
Definition: PixelChannel.h:45
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::PixelModuleName::modulename
std::string modulename() const
Definition: PixelModuleName.cc:203
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