ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
OrderInitialRdos Class Reference

#include <PixelRawContByteStreamTool.h>

Collaboration diagram for OrderInitialRdos:

Public Member Functions

 OrderInitialRdos (const ServiceHandle< InDetDD::IPixelReadoutManager > &pixelReadout, const PixelID *pixelID, SG::ReadCondHandle< PixelCablingCondData > &pixCabling)
 
 OrderInitialRdos (const OrderInitialRdos &orderFunct)=default
 
OrderInitialRdosoperator= (const OrderInitialRdos &other)
 
bool operator() (const PixelRDORawData *rdo0, const PixelRDORawData *rdo1)
 

Private Attributes

ServiceHandle< InDetDD::IPixelReadoutManagerm_pixelReadout
 
const PixelIDm_PixelID
 
SG::ReadCondHandle< PixelCablingCondDatam_pixCabling
 

Detailed Description

Definition at line 119 of file PixelRawContByteStreamTool.h.

Constructor & Destructor Documentation

◆ OrderInitialRdos() [1/2]

OrderInitialRdos::OrderInitialRdos ( const ServiceHandle< InDetDD::IPixelReadoutManager > &  pixelReadout,
const PixelID pixelID,
SG::ReadCondHandle< PixelCablingCondData > &  pixCabling 
)
inline

Definition at line 127 of file PixelRawContByteStreamTool.h.

127  :
128  m_pixelReadout(pixelReadout), m_PixelID(pixelID), m_pixCabling(pixCabling) { }

◆ OrderInitialRdos() [2/2]

OrderInitialRdos::OrderInitialRdos ( const OrderInitialRdos orderFunct)
default

Member Function Documentation

◆ operator()()

bool OrderInitialRdos::operator() ( const PixelRDORawData rdo0,
const PixelRDORawData rdo1 
)

Definition at line 790 of file PixelRawContByteStreamTool.cxx.

791 {
792  Identifier pixelId0 = rdo0->identify();
793  Identifier offlineId0 = m_PixelID->wafer_id(pixelId0);
794  Identifier pixelId1 = rdo1->identify();
795  Identifier offlineId1 = m_PixelID->wafer_id(pixelId1);
796  if (offlineId0 < offlineId1) {
797  return true;
798  }
799  if (offlineId0 == offlineId1) {
800  if ( m_pixelReadout->getModuleType(pixelId0) == InDetDD::PixelModuleType::IBL_PLANAR
801  || m_pixelReadout->getModuleType(pixelId0) == InDetDD::PixelModuleType::IBL_3D
802  || m_pixelReadout->getModuleType(pixelId0) == InDetDD::PixelModuleType::DBM) { // IBL and DBM
803 
804  uint64_t onlineId0 = m_pixCabling->find_entry_offon(offlineId0);
805  uint32_t linkNum0 = (onlineId0>>24) & 0xFFFF;
806  unsigned int localFE0 = m_pixelReadout->getFE(pixelId0, offlineId0);
807  uint32_t fe0= (linkNum0>>(localFE0*8)) & 0xF;
808 
809  uint64_t onlineId1 = m_pixCabling->find_entry_offon(offlineId1);
810  uint32_t linkNum1 = (onlineId1>>24) & 0xFFFF;
811  unsigned int localFE1 = m_pixelReadout->getFE(pixelId1, offlineId1);
812  uint32_t fe1= (linkNum1>>(localFE1*8)) & 0xF;
813 
814  return (fe0 < fe1);
815  }
816  else { // PixelCase
817  uint32_t fe0 = m_pixelReadout->getFE(pixelId0, offlineId0);
818  uint32_t fe1 = m_pixelReadout->getFE(pixelId1, offlineId1);
819  return (fe0 < fe1);
820 
821  // return false;
822  }
823  }
824  else {return false; }
825 }

◆ operator=()

OrderInitialRdos& OrderInitialRdos::operator= ( const OrderInitialRdos other)
inline

Definition at line 135 of file PixelRawContByteStreamTool.h.

135  {
136  m_pixelReadout = other.m_pixelReadout;
137  return *this;
138  }

Member Data Documentation

◆ m_pixCabling

SG::ReadCondHandle<PixelCablingCondData> OrderInitialRdos::m_pixCabling
private

Definition at line 124 of file PixelRawContByteStreamTool.h.

◆ m_PixelID

const PixelID* OrderInitialRdos::m_PixelID
private

Definition at line 123 of file PixelRawContByteStreamTool.h.

◆ m_pixelReadout

ServiceHandle<InDetDD::IPixelReadoutManager> OrderInitialRdos::m_pixelReadout
private

Definition at line 122 of file PixelRawContByteStreamTool.h.


The documentation for this class was generated from the following files:
OrderInitialRdos::m_pixCabling
SG::ReadCondHandle< PixelCablingCondData > m_pixCabling
Definition: PixelRawContByteStreamTool.h:124
InDetDD::PixelModuleType::DBM
@ DBM
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
OrderInitialRdos::m_PixelID
const PixelID * m_PixelID
Definition: PixelRawContByteStreamTool.h:123
PixelID::wafer_id
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
Definition: PixelID.h:364
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
PixelCablingCondData::find_entry_offon
uint64_t find_entry_offon(const Identifier) const
Definition: PixelCablingCondData.cxx:102
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
InDetDD::PixelModuleType::IBL_PLANAR
@ IBL_PLANAR
OrderInitialRdos::m_pixelReadout
ServiceHandle< InDetDD::IPixelReadoutManager > m_pixelReadout
Definition: PixelRawContByteStreamTool.h:122
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
InDetRawData::identify
virtual Identifier identify() const override final
Definition: InDetRawData.h:41
InDetDD::PixelModuleType::IBL_3D
@ IBL_3D