ATLAS Offline Software
Loading...
Searching...
No Matches
ITkPixV2Encoder.h
Go to the documentation of this file.
1/*
2Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5/*EXTERNAL CODE PORTED FROM YARR MINIMALLY ADAPTED FOR ATHENA,
6 including the mutex in addToStream, which is the only externally-called
7 function that accesses the class resources.*/
8
9
10/*
11* Author: Ondra Kovanda, ondrej.kovanda at cern.ch
12* Date: 02/2024
13* Description: ITkPixv2 encoding
14*/
15
16#ifndef ITKPIXV2ENCODER_H
17#define ITKPIXV2ENCODER_H
18
19#include "ITkPixEncoder.h"
20#include <mutex>
21
23
24 public:
25
26 void endStream() const;
27
28 void addToStream(const HitMap& hitMap, bool last = false) const;
29
30};
31
32#endif
ITkPixLayout< uint16_t > HitMap
ITkPixEncoder(const bool enableChipID=true, const unsigned nCol=400, const unsigned nRow=384, const unsigned nColInCCol=8, const unsigned nRowInQRow=2, const unsigned nEventsPerStream=16, const bool plainHitMap=false, const bool dropToT=false)
void addToStream(const HitMap &hitMap, bool last=false) const
void endStream() const