ATLAS Offline Software
MuCTPI_Phase1_RDO.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TRIGT1RESULT_MUCTPI_PHASE1_RDO_H
8 #define TRIGT1RESULT_MUCTPI_PHASE1_RDO_H
9 
10 // STL include(s):
11 #include <vector>
12 #include <string>
13 #include <cstdint>
14 
15 // Gaudi/Athena include(s):
16 #include "AthenaKernel/CLASS_DEF.h"
17 
18 //for slice etc structs
20 
37 
38 public:
45  MuCTPI_Phase1_RDO( std::vector< LVL1::MuCTPIBits::Slice >&& slices,
46  std::vector< size_t >&& errorBits )
47  : m_slices( std::move(slices) ),
48  m_errorBits( std::move(errorBits) ) {
49  }
50 
52 
55  MuCTPI_Phase1_RDO () = default;
56 
58 
61  ~MuCTPI_Phase1_RDO () = default;
62 
64 
69  const std::vector< LVL1::MuCTPIBits::Slice >& slices() const { return m_slices; }
70 
72 
77  const std::vector< size_t >& errorBits() const { return m_errorBits; }
78 
79 private:
81  std::vector< LVL1::MuCTPIBits::Slice > m_slices;
83  std::vector< size_t > m_errorBits;
84 
85 }; // class MuCTPI_Phase1_RDO
86 
87 CLASS_DEF( MuCTPI_Phase1_RDO , 95939798 , 0 )
88 
89 #endif // TRIGT1RESULT_MUCTPI_PHASE1_RDO_H
MuCTPI_Phase1_RDO::MuCTPI_Phase1_RDO
MuCTPI_Phase1_RDO(std::vector< LVL1::MuCTPIBits::Slice > &&slices, std::vector< size_t > &&errorBits)
This constructor can be used to fill the object with a vector of Slice structs and a vector of errorB...
Definition: MuCTPI_Phase1_RDO.h:45
MuCTPI_Phase1_RDO::~MuCTPI_Phase1_RDO
~MuCTPI_Phase1_RDO()=default
Destructor.
MuCTPI_Phase1_RDO::MuCTPI_Phase1_RDO
MuCTPI_Phase1_RDO()=default
Default constructor.
MuCTPI_Phase1_RDO::errorBits
const std::vector< size_t > & errorBits() const
Function returning the fragment error bits vector.
Definition: MuCTPI_Phase1_RDO.h:77
MuCTPI_Phase1_RDO
Class representing the readout data of the MuCTPI hardware and simulation.
Definition: MuCTPI_Phase1_RDO.h:36
MuCTPI_Phase1_RDO::m_slices
std::vector< LVL1::MuCTPIBits::Slice > m_slices
Variable storing the timeslices read out.
Definition: MuCTPI_Phase1_RDO.h:81
MuCTPI_Phase1_RDO::m_errorBits
std::vector< size_t > m_errorBits
Variable storing the erorrBits read out.
Definition: MuCTPI_Phase1_RDO.h:83
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
HelpersPhase1.h
CLASS_DEF.h
macros to associate a CLID to a type
MuCTPI_Phase1_RDO::slices
const std::vector< LVL1::MuCTPIBits::Slice > & slices() const
Function returning the timeslice data words.
Definition: MuCTPI_Phase1_RDO.h:69