ATLAS Offline Software
Loading...
Searching...
No Matches
MuCalCircClient.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGL2MUONSA_MUCALCIRCCLIENT_H
6#define TRIGL2MUONSA_MUCALCIRCCLIENT_H
7
8#include <string>
9#include <exception>
10
11#include "circ/Circ.h"
12#include "circ/Circservice.h"
13
14#include "MuCalDecode/CalibEvent.h"
15#include "MuCalDecode/CalibUti.h"
16
17namespace TrigL2MuonSA
18{
19 class Circexception: public std::exception
20 {
21 const char *what () const noexcept
22 {
23 return "Error in opening output buffer via Circ client";
24 }
25 };
26
28 {
29 public:
30 MuCalCircClient (unsigned short port, std::string &buffer_name, unsigned int buffer_size);
31 virtual ~MuCalCircClient ();
32
33 bool dumpToCirc (LVL2_MUON_CALIBRATION::CalibEvent &event) const;
34
35 private:
36 int m_cid;
37 unsigned short m_port;
38 std::string m_bufferName;
39 unsigned int m_bufferSize;
40 };
41} // namespace TrigL2MuonSA
42
43#endif //
const char * what() const noexcept
MuCalCircClient(unsigned short port, std::string &buffer_name, unsigned int buffer_size)
bool dumpToCirc(LVL2_MUON_CALIBRATION::CalibEvent &event) const