ATLAS Offline Software
LUCID_RodEncoder.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LUCID_RODENCODER_H
6 #define LUCID_RODENCODER_H
7 
8 #include <inttypes.h>
9 
11 
12 #include "GaudiKernel/Bootstrap.h"
13 #include "GaudiKernel/ISvcLocator.h"
14 #include "GaudiKernel/MsgStream.h"
15 
18 
20 {
21 public:
22  typedef std::vector<const LUCID_Digit*> VDIGIT;
23  struct Cache
24  {
25  unsigned int hitcounter0 = 0;
26  unsigned int hitcounter1 = 0;
27  unsigned int hitcounter2 = 0;
28  unsigned int hitcounter3 = 0;
30  };
31 
34 
35  void addDigit(const LUCID_Digit* digit, Cache& cache) const
36  {
37  cache.Digits.push_back(digit);
38  }
39  void encode(std::vector<uint32_t>& data_block,
40  Cache& cache,
41  MsgStream& log) const;
42 
43  VDIGIT getDigits(Cache& cache) const { return cache.Digits; }
44 
45 private:
46 };
47 
48 #endif
LUCID_RodEncoder
Definition: LUCID_RodEncoder.h:20
LUCID_RodEncoder::Cache::hitcounter1
unsigned int hitcounter1
Definition: LUCID_RodEncoder.h:26
LUCID_RawData.h
checkRpcDigits.digit
digit
Definition: checkRpcDigits.py:186
LUCID_RodEncoder::Cache::Digits
VDIGIT Digits
Definition: LUCID_RodEncoder.h:29
LUCID_RodEncoder::Cache::hitcounter3
unsigned int hitcounter3
Definition: LUCID_RodEncoder.h:28
LUCID_RodEncoder::encode
void encode(std::vector< uint32_t > &data_block, Cache &cache, MsgStream &log) const
Definition: LUCID_RodEncoder.cxx:12
LUCID_Digit
Definition: LUCID_Digit.h:8
LUCID_RodEncoder::getDigits
VDIGIT getDigits(Cache &cache) const
Definition: LUCID_RodEncoder.h:43
LUCID_RodEncoder::Cache
Definition: LUCID_RodEncoder.h:24
RawEvent.h
LUCID_RodEncoder::VDIGIT
std::vector< const LUCID_Digit * > VDIGIT
Definition: LUCID_RodEncoder.h:22
LUCID_Digit.h
LUCID_RodEncoder::Cache::hitcounter2
unsigned int hitcounter2
Definition: LUCID_RodEncoder.h:27
LUCID_RodEncoder::LUCID_RodEncoder
LUCID_RodEncoder()
Definition: LUCID_RodEncoder.cxx:7
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LUCID_RodEncoder::~LUCID_RodEncoder
~LUCID_RodEncoder()
Definition: LUCID_RodEncoder.cxx:9
LUCID_RodEncoder::addDigit
void addDigit(const LUCID_Digit *digit, Cache &cache) const
Definition: LUCID_RodEncoder.h:35
LUCID_RodEncoder::Cache::hitcounter0
unsigned int hitcounter0
Definition: LUCID_RodEncoder.h:25