CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

sipixelobjects::PixelROC Class Reference

#include <PixelROC.h>

List of all members.

Public Member Functions

unsigned int idInDetUnit () const
 id of this ROC in DetUnit etermined by token path
unsigned int idInLink () const
 id of this ROC in parent Link.
const PixelROCoperator= (const PixelROC &)
 PixelROC ()
 dummy
 PixelROC (const PixelROC &o)
 PixelROC (uint32_t du, int idInDU, int idLk)
std::string print (int depth=0) const
 printout for debug
uint32_t rawId () const
 return the DetUnit to which this ROC belongs to.
void swap (PixelROC &)
GlobalPixel toGlobal (const LocalPixel &loc) const
LocalPixel toLocal (const GlobalPixel &gp) const
 ~PixelROC ()

Private Member Functions

void initFrameConversion () const

Private Attributes

uint32_t theDetUnit
const FrameConversiontheFrameConverter
unsigned int theIdDU
unsigned int theIdLk

Detailed Description

Definition at line 21 of file PixelROC.h.


Constructor & Destructor Documentation

sipixelobjects::PixelROC::PixelROC ( ) [inline]

dummy

Definition at line 25 of file PixelROC.h.

PixelROC::~PixelROC ( )

Definition at line 22 of file PixelROC.cc.

References theFrameConverter.

{
  delete theFrameConverter;
}
PixelROC::PixelROC ( const PixelROC o)
PixelROC::PixelROC ( uint32_t  du,
int  idInDU,
int  idLk 
)

ctor with DetUnit id, ROC number in DU (given by token passage), ROC number in Link (given by token passage),

Definition at line 12 of file PixelROC.cc.

  : theDetUnit(du), theIdDU(idDU), theIdLk(idLk), theFrameConverter(0)
{}

Member Function Documentation

unsigned int sipixelobjects::PixelROC::idInDetUnit ( ) const [inline]
unsigned int sipixelobjects::PixelROC::idInLink ( ) const [inline]
void PixelROC::initFrameConversion ( ) const [private]

Definition at line 64 of file PixelROC.cc.

References PixelModuleName::isBarrel(), theDetUnit, theFrameConverter, and theIdDU.

Referenced by print(), toGlobal(), and toLocal().

const PixelROC & PixelROC::operator= ( const PixelROC iRHS)

Definition at line 28 of file PixelROC.cc.

References swap(), and groupFilesInBlocks::temp.

{
  PixelROC temp(iRHS);
  this->swap(temp);
  return *this;
}
string PixelROC::print ( int  depth = 0) const

printout for debug

Definition at line 75 of file PixelROC.cc.

References Reference_intrackfit_cff::barrel, initFrameConversion(), PixelModuleName::isBarrel(), PixelEndcapName::name(), PixelBarrelName::name(), dbtoconf::out, theDetUnit, theFrameConverter, theIdDU, and theIdLk.

{
  if (!theFrameConverter) initFrameConversion();

  ostringstream out;
  bool barrel = PixelModuleName::isBarrel(theDetUnit);
  DetId detId(theDetUnit);
  if (depth-- >=0 ) {
    out <<"======== PixelROC ";
    out <<" unit: ";
    if (barrel) out << PixelBarrelName(detId).name();
    else        out << PixelEndcapName(detId).name(); 
    out <<" ("<<theDetUnit<<")"
        <<" idInDU: "<<theIdDU
        <<" idInLk: "<<theIdLk
//        <<" frame: "<<theRowOffset<<","<<theRowSlopeSign<<","<<theColOffset<<","<<theColSlopeSign
//        <<" frame: "<<*theFrameConverter
        <<endl;
  }
  return out.str();
}
uint32_t sipixelobjects::PixelROC::rawId ( ) const [inline]

return the DetUnit to which this ROC belongs to.

Definition at line 40 of file PixelROC.h.

References theDetUnit.

Referenced by SiPixelFedCablingTree::pathToDetUnit(), SiPixelFrameReverter::toCabling(), SiPixelFrameConverter::toCabling(), and SiPixelFrameConverter::toDetector().

{ return theDetUnit; }
void PixelROC::swap ( PixelROC iOther)

Definition at line 36 of file PixelROC.cc.

References theDetUnit, theFrameConverter, theIdDU, and theIdLk.

Referenced by operator=().

GlobalPixel PixelROC::toGlobal ( const LocalPixel loc) const
LocalPixel PixelROC::toLocal ( const GlobalPixel gp) const

Member Data Documentation

Definition at line 64 of file PixelROC.h.

Referenced by initFrameConversion(), print(), rawId(), and swap().

Definition at line 66 of file PixelROC.h.

Referenced by initFrameConversion(), PixelROC(), print(), swap(), toGlobal(), toLocal(), and ~PixelROC().

unsigned int sipixelobjects::PixelROC::theIdDU [private]

Definition at line 65 of file PixelROC.h.

Referenced by idInDetUnit(), initFrameConversion(), print(), and swap().

unsigned int sipixelobjects::PixelROC::theIdLk [private]

Definition at line 65 of file PixelROC.h.

Referenced by idInLink(), print(), and swap().