ATLAS Offline Software
Loading...
Searching...
No Matches
RpcROD_Encoder.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 MUONBYTESTREAM_RPCROD_ENCODER_H
6#define MUONBYTESTREAM_RPCROD_ENCODER_H
7
8#include <cstdint>
9
13#include "MuonRDO/RpcPad.h"
15#include "RPC_Hid2RESrcID.h"
17
29
31public:
35
39
42 void set(const RPC_Hid2RESrcID* hid2re);
43
46 void add(const RpcPad* rc);
47
50 void clear();
51
55
56 void fillROD(std::vector<uint32_t>& v);
57
58private:
59 void packFragments(const std::vector<uint16_t>& v16, std::vector<uint32_t>& v, int n) const;
60
61 static uint32_t set32bits(const unsigned short int* v16, const unsigned short int* pos, const unsigned short int n) ;
62
63private:
65 std::vector<const RpcPad*> m_vRpcPad;
66};
67
68#endif
static Double_t rc
std::vector< const RpcPad * > m_vRpcPad
static uint32_t set32bits(const unsigned short int *v16, const unsigned short int *pos, const unsigned short int n)
void clear()
clear the current pad list
RpcROD_Encoder()
constructor
const RPC_Hid2RESrcID * m_hid2re
void add(const RpcPad *rc)
add Rpc pads to the current list
void packFragments(const std::vector< uint16_t > &v16, std::vector< uint32_t > &v, int n) const
void set(const RPC_Hid2RESrcID *hid2re)
initialize the map
~RpcROD_Encoder()
destructor
void fillROD(std::vector< uint32_t > &v)
convert all pad in the current list to a vector of 32bit words