ATLAS Offline Software
Loading...
Searching...
No Matches
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.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
ITkPixelEncodingTool::encodeFE
std::vector< uint32_t > encodeFE(const HitMap &hitMap, const uint8_t chipID) const
Definition
ITkPixelEncodingTool.cxx:24
ITkPixelEncodingTool::ITkPixelEncodingTool
ITkPixelEncodingTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
ITkPixelEncodingTool.cxx:13
ITkPixelEncodingTool::HitMap
ITkPixLayout< uint16_t > HitMap
Definition
ITkPixelEncodingTool.h:24
ITkPixelEncodingTool::initialize
StatusCode initialize()
Definition
ITkPixelEncodingTool.cxx:19
type
Generated on
for ATLAS Offline Software by
1.14.0