ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_RodEncoder.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRT_RAWDATABYTESTREAMCNV_TRT_RODENCODER_H
6#define TRT_RAWDATABYTESTREAMCNV_TRT_RODENCODER_H
7
9
10#include "GaudiKernel/ServiceHandle.h"
11
12#include <inttypes.h>
13#include <vector>
14
15class TRT_RDORawData;
16class TRT_ID;
17class ITRT_CablingSvc;
18class MsgStream;
19
22
24{
25public:
27 typedef std::vector<const RDO*> VRDO;
28
31
34
36 void addRdo(const RDO * rdo) {m_RDOs.push_back(rdo);}
37
39 void set_trt_IdHelper ( const TRT_ID * trt_id) { m_trt_id = trt_id ; }
40
42 void set_trt_cabling ( const ServiceHandle<ITRT_CablingSvc> & trt_CablingSvc)
43 {
44 m_CablingSvc = trt_CablingSvc;
45 }
46
48 void setRodMinorVersion (unsigned short RodBlockVersion) { m_RodBlockVersion = RodBlockVersion; }
49
51 StatusCode fillROD(std::vector<uint32_t>& v ) ;
52
54 StatusCode fillROD3(std::vector<uint32_t>& v ) ;
55
56 private:
57 const TRT_ID * m_trt_id{};
59 unsigned short m_RodBlockVersion{};
61};
62
63#endif // TRT_RAWDATABYTESTREAMCNV_TRT_RODENCODER_H
This is an Identifier helper class for the TRT subdetector.
Definition TRT_ID.h:82
unsigned short m_RodBlockVersion
void set_trt_IdHelper(const TRT_ID *trt_id)
setId Helper
void setRodMinorVersion(unsigned short RodBlockVersion)
setRodMinorVersion
void set_trt_cabling(const ServiceHandle< ITRT_CablingSvc > &trt_CablingSvc)
setCablingSvc
std::vector< const RDO * > VRDO
~TRT_RodEncoder()
destructor
const TRT_ID * m_trt_id
TRT_RDORawData RDO
StatusCode fillROD3(std::vector< uint32_t > &v)
conversion of ROD into compressed ROD fragment
StatusCode fillROD(std::vector< uint32_t > &v)
conversion of ROD into ROD fragment
ServiceHandle< ITRT_CablingSvc > m_CablingSvc
TRT_RodEncoder()
constructor
void addRdo(const RDO *rdo)
add RDO to internal vector