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
//initialize the encoder
21
m_encoder
= std::make_unique<ITkPixV2Encoder>();
22
23
//for now, use one event per stream
24
m_encoder
->setEventsPerStream(1);
25
26
return
StatusCode::SUCCESS;
27
}
28
29
std::vector<uint32_t>
ITkPixelEncodingTool::encodeFE
(
const
HitMap
& hitMap){
30
// uint8_t FE_id to also be passed to this function in the future
31
//call the addToStream() method. For now assuming 1-event stream.
32
//The FE_id functionality for data merging is yet to be implemented.
33
m_encoder
->addToStream(hitMap);
34
return
m_encoder
->getWords();
35
}
ITkPixelEncodingTool::initialize
StatusCode initialize()
Definition:
ITkPixelEncodingTool.cxx:19
ITkPixelEncodingTool.h
ITkPixelEncodingTool::encodeFE
std::vector< uint32_t > encodeFE(const HitMap &hitMap)
Definition:
ITkPixelEncodingTool.cxx:29
ITkPixelEncodingTool::ITkPixelEncodingTool
ITkPixelEncodingTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
ITkPixelEncodingTool.cxx:13
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:228
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
ITkPixelEncodingTool::m_encoder
std::unique_ptr< ITkPixV2Encoder > m_encoder
Definition:
ITkPixelEncodingTool.h:34
ITkPixLayout< uint16_t >
AthAlgTool
Definition:
AthAlgTool.h:26
Generated on Sun Dec 22 2024 21:12:05 for ATLAS Offline Software by
1.8.18