ATLAS Offline Software
Loading...
Searching...
No Matches
CscRdoContByteStreamTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONCSC_CNVTOOLS_CSCRDOCONTRAWEVENTTOOL_H
6#define MUONCSC_CNVTOOLS_CSCRDOCONTRAWEVENTTOOL_H
7
8
9
14#include "CSC_Hid2RESrcID.h"
15#include "GaudiKernel/ServiceHandle.h"
18#include <string>
19
20class CSCcablingSvc;
21
22namespace Muon {
23 /*
24 An AlgTool to provide conversion between CSC RDO <---> ByteStream,
25 and fill it in RawEvent.
26
27 @author Ketevi A. Assamagan BNL December 27 2003
28 */
29 class CscRdoContByteStreamTool : public extends<AthAlgTool, ICSC_RDOtoByteStreamTool> {
30 public:
33 CscRdoContByteStreamTool(const std::string& type, const std::string& name, const IInterface* parent);
34
35 virtual ~CscRdoContByteStreamTool() = default;
36
37 virtual StatusCode initialize() override;
38
40 virtual bool isCosmic() const override { return m_isCosmic; }
41
43 virtual bool isOldCosmic() const override { return m_isOldCosmic; }
44
45 virtual StatusCode convert(const CscRawDataContainer* cont, MsgStream& log) const override;
46
47 private:
49 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
50
51 ServiceHandle<IByteStreamCnvSvc> m_byteStreamCnvSvc{this, "ByteStreamCnvSvc", "ByteStreamCnvSvc"};
52
53 ServiceHandle<CSCcablingSvc> m_cabling{this, "CablingSvc", "CSCcablingSvc"};
54
55 uint16_t m_rodVersion{};
56 bool m_isCosmic{};
58 };
59} // namespace Muon
60
61#endif
This container provides access to collections of CSC RDOs and a mechanism for recording them.
virtual bool isOldCosmic() const override
for the old cosmic data before the ROB id=ROD id fix
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
virtual StatusCode convert(const CscRawDataContainer *cont, MsgStream &log) const override
virtual bool isCosmic() const override
to read the cosmic data
virtual ~CscRdoContByteStreamTool()=default
ServiceHandle< IByteStreamCnvSvc > m_byteStreamCnvSvc
ServiceHandle< CSCcablingSvc > m_cabling
CscRdoContByteStreamTool(const std::string &type, const std::string &name, const IInterface *parent)
constructor
virtual StatusCode initialize() override
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.