ATLAS Offline Software
Loading...
Searching...
No Matches
PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback Class Reference

#include <ITkPixelDecodingPhaseIIRDOAlg.h>

Collaboration diagram for PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback:

Public Member Functions

 PhaseIIRDOCallback (PhaseIIPixelRawDataContainerMT *cont_coll, PhaseIIPixelRawDataContainerMT::ContainerPtr rdo_container_dest, const PixelID *idHelper, MsgStream &msg_source)
 ~PhaseIIRDOCallback ()=default
void evt_init (uint8_t tag)
void evt_next (uint8_t tag)
void evt_done ()
void add_hit (uint16_t col, uint16_t row, uint16_t tot)
void add_hmap (uint8_t qcol, uint8_t qrow, uint16_t hmap, uint64_t tots)
void add_qcore (uint8_t qcol, uint8_t qrow, uint64_t qtot)
uint8_t on_error (itksw::pix::endec::intf::EventError error)
void registerLastModule ()
void setOfflineID (const uint32_t &offlineID)
void setChipID (const uint8_t &chipID)
void setTransformType (const ITkPixelCabling::TransformType &transform)

Private Attributes

PhaseIIPixelRawDataContainerMT::ContainerPtr m_rdo_container_dest
PhaseIIPixelRawDataContainerMTm_cont_coll {}
PhaseII::ContainerRangeGuard< PhaseII::DataRange, PhaseIIPixelRawDataContainerMT::ContainerPtrm_dest_range_guard
unsigned int m_currentIdentifierHash {std::numeric_limits<unsigned int>::max()}
unsigned int m_n_rejected_work {}
uint32_t m_offlineID = 0
uint8_t m_chipID = 0
uint32_t m_n_rdos = 0
Identifier m_identifier {}
ITkPixelCabling::TransformType m_transform {ITkPixelCabling::TransformType::UndefinedTransform}
const PixelIDm_idHelper {}
MsgStream & m_msg_source

Detailed Description

Definition at line 87 of file ITkPixelDecodingPhaseIIRDOAlg.h.

Constructor & Destructor Documentation

◆ PhaseIIRDOCallback()

PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::PhaseIIRDOCallback ( PhaseIIPixelRawDataContainerMT * cont_coll,
PhaseIIPixelRawDataContainerMT::ContainerPtr rdo_container_dest,
const PixelID * idHelper,
MsgStream & msg_source )
inlineexplicit

Definition at line 90 of file ITkPixelDecodingPhaseIIRDOAlg.h.

91 :
92 m_rdo_container_dest(rdo_container_dest),
93 m_cont_coll(cont_coll),
94 m_dest_range_guard(rdo_container_dest),
96 m_idHelper(idHelper),
97 m_msg_source(msg_source)
98 {};
PhaseIIPixelRawDataContainerMT::ContainerPtr m_rdo_container_dest
PhaseII::ContainerRangeGuard< PhaseII::DataRange, PhaseIIPixelRawDataContainerMT::ContainerPtr > m_dest_range_guard

◆ ~PhaseIIRDOCallback()

PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::~PhaseIIRDOCallback ( )
default

Member Function Documentation

◆ add_hit()

void PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::add_hit ( uint16_t col,
uint16_t row,
uint16_t tot )
inline

Definition at line 119 of file ITkPixelDecodingPhaseIIRDOAlg.h.

119 {
120 //Translate the col, row into module coordinates
121 // after that, row and col are phi_index and eta_index, respectively
123
124 //Set dummy values at 0 for these:
125 int bcid = 0;
126 int lvl0a = 0;
127 int lvl0d = 0;
128
131 std::array<std::int16_t,2>{static_cast<std::int16_t>(row), static_cast<std::int16_t>(col)},
132 PhaseII::PixelRawDataContainer::makeWord( tot, bcid, lvl0a, lvl0d ));
133 };
static std::uint32_t makeWord(int tot, int bcid, int lvl1a, int lvl1d)
static void chipToModuleTransform(const TransformType &transform, const uint8_t &chipID, uint16_t &col, uint16_t &row)
void addDataForModule(T_RawDataContainerCollection &rdo_container_collection, ContainerRangeGuard< T_RawDataContainerPtr, T_RangeType > &range_guard, T_Coordinates &&coordinates, std::uint32_t data_word)
convenience method to add data to an RDO container, add a new RDO container, copy the data added for ...
row
Appending html table to final .html summary file.
setEventNumber setTimeStamp bcid

◆ add_hmap()

void PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::add_hmap ( uint8_t qcol,
uint8_t qrow,
uint16_t hmap,
uint64_t tots )
inline

Definition at line 135 of file ITkPixelDecodingPhaseIIRDOAlg.h.

139 {};

◆ add_qcore()

void PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::add_qcore ( uint8_t qcol,
uint8_t qrow,
uint64_t qtot )
inline

Definition at line 141 of file ITkPixelDecodingPhaseIIRDOAlg.h.

144 {};

◆ evt_done()

void PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::evt_done ( )
inline

Definition at line 116 of file ITkPixelDecodingPhaseIIRDOAlg.h.

116 {
117 };

◆ evt_init()

void PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::evt_init ( uint8_t tag)
inline

Definition at line 103 of file ITkPixelDecodingPhaseIIRDOAlg.h.

103 {
104
105 m_identifier = Identifier(m_offlineID);
106 const auto waferHash = m_idHelper->wafer_hash(m_identifier);
107 if(waferHash != m_currentIdentifierHash){
109 m_currentIdentifierHash = waferHash;
110 m_dest_range_guard=PhaseII::ContainerRangeGuard<PhaseII::DataRange, PhaseIIPixelRawDataContainerMT::ContainerPtr>(m_rdo_container_dest);
111 }
112 };

◆ evt_next()

void PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::evt_next ( uint8_t tag)
inline

Definition at line 114 of file ITkPixelDecodingPhaseIIRDOAlg.h.

114{};

◆ on_error()

uint8_t PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::on_error ( itksw::pix::endec::intf::EventError error)
inline

Definition at line 146 of file ITkPixelDecodingPhaseIIRDOAlg.h.

146{return 0;};

◆ registerLastModule()

void PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::registerLastModule ( )
inline

Definition at line 149 of file ITkPixelDecodingPhaseIIRDOAlg.h.

149 {
150 if (!m_dest_range_guard.empty()) {
151 // register the RDO range for this module, or erase the newly added
152 if (!m_cont_coll->registerOrEraseNewData(m_currentIdentifierHash,m_dest_range_guard.range())) {
154 }
155 // in the process of adding hits to the original container, its capacity may have
156 // been exceeded and the container may have been changed for the current module. To
157 // ensure that the same container is used for the next module get the container, that
158 // contains the hits for the current module from the the range_guard.
160 m_n_rdos += m_dest_range_guard.range().size();
161 }
162 }

◆ setChipID()

void PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::setChipID ( const uint8_t & chipID)
inline

Definition at line 170 of file ITkPixelDecodingPhaseIIRDOAlg.h.

170 {
171 m_chipID = chipID;
172 }

◆ setOfflineID()

void PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::setOfflineID ( const uint32_t & offlineID)
inline

Definition at line 165 of file ITkPixelDecodingPhaseIIRDOAlg.h.

165 {
166 m_offlineID = offlineID;
167 };

◆ setTransformType()

void PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::setTransformType ( const ITkPixelCabling::TransformType & transform)
inline

Definition at line 175 of file ITkPixelDecodingPhaseIIRDOAlg.h.

175 {
177 }
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.

Member Data Documentation

◆ m_chipID

uint8_t PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::m_chipID = 0
private

Definition at line 201 of file ITkPixelDecodingPhaseIIRDOAlg.h.

◆ m_cont_coll

PhaseIIPixelRawDataContainerMT* PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::m_cont_coll {}
private

Definition at line 186 of file ITkPixelDecodingPhaseIIRDOAlg.h.

186{};

◆ m_currentIdentifierHash

unsigned int PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::m_currentIdentifierHash {std::numeric_limits<unsigned int>::max()}
private

Definition at line 192 of file ITkPixelDecodingPhaseIIRDOAlg.h.

192{std::numeric_limits<unsigned int>::max()};

◆ m_dest_range_guard

PhaseII::ContainerRangeGuard<PhaseII::DataRange, PhaseIIPixelRawDataContainerMT::ContainerPtr> PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::m_dest_range_guard
private

Definition at line 189 of file ITkPixelDecodingPhaseIIRDOAlg.h.

◆ m_identifier

Identifier PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::m_identifier {}
private

Definition at line 207 of file ITkPixelDecodingPhaseIIRDOAlg.h.

207{};

◆ m_idHelper

const PixelID* PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::m_idHelper {}
private

Definition at line 213 of file ITkPixelDecodingPhaseIIRDOAlg.h.

213{};

◆ m_msg_source

MsgStream& PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::m_msg_source
private

Definition at line 216 of file ITkPixelDecodingPhaseIIRDOAlg.h.

◆ m_n_rdos

uint32_t PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::m_n_rdos = 0
private

Definition at line 204 of file ITkPixelDecodingPhaseIIRDOAlg.h.

◆ m_n_rejected_work

unsigned int PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::m_n_rejected_work {}
private

Definition at line 195 of file ITkPixelDecodingPhaseIIRDOAlg.h.

195{};

◆ m_offlineID

uint32_t PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::m_offlineID = 0
private

Definition at line 198 of file ITkPixelDecodingPhaseIIRDOAlg.h.

◆ m_rdo_container_dest

PhaseIIPixelRawDataContainerMT::ContainerPtr PixelCallbacksPhaseIIRDO::PhaseIIRDOCallback::m_rdo_container_dest
private

Definition at line 183 of file ITkPixelDecodingPhaseIIRDOAlg.h.

◆ m_transform


The documentation for this class was generated from the following file: