ATLAS Offline Software
InnerDetector
InDetEventCnv
ITkPixelByteStreamCnv
src
ITkPixelEncodingTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/*
6
* Author: Ondra Kovanda, ondrej.kovanda at cern.ch
7
* Date: 05/2024
8
* Description: Athena tool wrapper around the ITkPix encoder
9
*/
10
11
#include "
ITkPixelEncodingTool.h
"
12
13
ITkPixelEncodingTool::ITkPixelEncodingTool
(
const
std::string&
type
,
const
std::string&
name
,
const
IInterface*
parent
) :
14
AthAlgTool
(
type
,
name
,
parent
)
15
{
16
//not much to construct as of now
17
}
18
19
StatusCode
ITkPixelEncodingTool::initialize
(){
20
21
return
StatusCode::SUCCESS;
22
}
23
24
std::vector<uint32_t>
ITkPixelEncodingTool::encodeFE
(
const
HitMap
& hitMap,
const
uint8_t
chipID)
const
{
25
// uint8_t FE_id to also be passed to this function in the future
26
//call the addToStream() method. For now assuming 1-event stream.
27
//The FE_id functionality for data merging is yet to be implemented.
28
29
std::unique_ptr<ITkPixV2Encoder> encoder = std::make_unique<ITkPixV2Encoder>();
30
encoder->
setChipID
(chipID);
31
encoder->
setEventsPerStream
(1);
32
encoder->
addToStream
(hitMap);
33
return
encoder->
getWords
();
34
35
}
ITkPixelEncodingTool::initialize
StatusCode initialize()
Definition:
ITkPixelEncodingTool.cxx:19
xAOD::uint8_t
uint8_t
Definition:
Muon_v1.cxx:558
ITkPixEncoder::getWords
std::vector< uint32_t > & getWords()
Definition:
ITkPixEncoder.h:32
ITkPixelEncodingTool.h
python.CaloAddPedShiftConfig.type
type
Definition:
CaloAddPedShiftConfig.py:42
ITkPixelEncodingTool::ITkPixelEncodingTool
ITkPixelEncodingTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
ITkPixelEncodingTool.cxx:13
ITkPixEncoder::setChipID
void setChipID(const uint8_t &chipID)
Definition:
ITkPixEncoder.cxx:227
ITkPixV2Encoder::addToStream
void addToStream(const HitMap &hitMap, bool last=false) const
Definition:
ITkPixV2Encoder.cxx:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:240
ITkPixelEncodingTool::encodeFE
std::vector< uint32_t > encodeFE(const HitMap &hitMap, const uint8_t chipID) const
Definition:
ITkPixelEncodingTool.cxx:24
ITkPixLayout
Definition:
ITkPixLayout.h:18
ITkPixEncoder::setEventsPerStream
void setEventsPerStream(const unsigned nEventsPerStream=16)
Definition:
ITkPixEncoder.h:38
AthAlgTool
Definition:
AthAlgTool.h:26
Generated on Mon Sep 29 2025 21:12:11 for ATLAS Offline Software by
1.8.18