test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Static Public Member Functions
sistrip::FEDStripOrdering Class Reference

#include <SiStripFEDBufferComponents.h>

Static Public Member Functions

static uint8_t physicalOrderForStripInAPV (const uint8_t readoutOrderStripIndexInAPV)
 
static uint8_t physicalOrderForStripInChannel (const uint8_t readoutOrderStripIndexInChannel)
 
static uint8_t readoutOrderForStripInAPV (const uint8_t physicalOrderStripIndexInAPV)
 
static uint8_t readoutOrderForStripInChannel (const uint8_t physicalOrderStripIndexInChannel)
 

Detailed Description

Definition at line 161 of file SiStripFEDBufferComponents.h.

Member Function Documentation

uint8_t sistrip::FEDStripOrdering::physicalOrderForStripInAPV ( const uint8_t  readoutOrderStripIndexInAPV)
inlinestatic

Definition at line 685 of file SiStripFEDBufferComponents.h.

Referenced by physicalOrderForStripInChannel().

686  {
687  return ( (32 * (readout_order%4)) +
688  (8 * static_cast<uint16_t>(static_cast<float>(readout_order)/4.0)) -
689  (31 * static_cast<uint16_t>(static_cast<float>(readout_order)/16.0))
690  );
691  }
uint8_t sistrip::FEDStripOrdering::physicalOrderForStripInChannel ( const uint8_t  readoutOrderStripIndexInChannel)
inlinestatic

Definition at line 675 of file SiStripFEDBufferComponents.h.

References physicalOrderForStripInAPV(), and sistrip::STRIPS_PER_APV.

Referenced by sistrip::FEDBufferPayloadCreator::fillRawChannelBuffer(), and sistrip::SpyDigiConverter::reorderDigis().

676  {
677  return physicalOrderForStripInAPV(readoutOrderStripIndexInChannel/2) + (readoutOrderStripIndexInChannel%2)*STRIPS_PER_APV;
678  }
static uint8_t physicalOrderForStripInAPV(const uint8_t readoutOrderStripIndexInAPV)
static const uint16_t STRIPS_PER_APV
uint8_t sistrip::FEDStripOrdering::readoutOrderForStripInAPV ( const uint8_t  physicalOrderStripIndexInAPV)
inlinestatic

Definition at line 693 of file SiStripFEDBufferComponents.h.

Referenced by readoutOrderForStripInChannel().

694  {
695  return ( 4*((static_cast<uint16_t>((static_cast<float>(physical_order)/8.0)))%4) +
696  static_cast<uint16_t>(static_cast<float>(physical_order)/32.0) +
697  16*(physical_order%8)
698  );
699  }
uint8_t sistrip::FEDStripOrdering::readoutOrderForStripInChannel ( const uint8_t  physicalOrderStripIndexInChannel)
inlinestatic

Definition at line 680 of file SiStripFEDBufferComponents.h.

References readoutOrderForStripInAPV().

681  {
682  return ( readoutOrderForStripInAPV(physicalOrderStripIndexInChannel%128)*2 + (physicalOrderStripIndexInChannel/128) );
683  }
static uint8_t readoutOrderForStripInAPV(const uint8_t physicalOrderStripIndexInAPV)