ATLAS Offline Software
Loading...
Searching...
No Matches
ZdcRecNoiseTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5/*
6 * ZdcRecNoiseTool.h
7 *
8 * This extracts the pedestal and noise figures from every channel. This should
9 * process "pedestal runs" where no activity on the channels are present.
10 * Author: leite
11 */
12
13#ifndef ZDCRECNOISETOOL_H_
14#define ZDCRECNOISETOOL_H_
15
16
17
19#include "GaudiKernel/ToolHandle.h"
20
22
23#include <string>
24#include <memory>
25
26class IInterface;
27class InterfaceID;
28class StatusCode;
30
31
32//Interface Id for retrieving the tool
33static const InterfaceID IID_IZdcRecNoiseTool("ZdcRecNoiseTool", 1, 1);
34
36{
37public:
38 ZdcRecNoiseTool(const std::string& type,
39 const std::string& name,
40 const IInterface* parent);
41
42 virtual ~ZdcRecNoiseTool();
43
44 static const InterfaceID& interfaceID();
45
46 virtual StatusCode initialize();
47 virtual StatusCode finalize();
48
49 int readPedestals();
50 int writePedestals();
51
52private:
53
54 std::string m_pedestalDir;
55 std::string m_pedestalFile;
56
57 std::unique_ptr<ZdcDigitsCollection> m_pedestalData{};
58
59};
60
61#endif /* ZDCRECNOISETOOL_H_ */
static const InterfaceID IID_IZdcRecNoiseTool("ZdcRecNoiseTool", 1, 1)
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
std::string m_pedestalDir
virtual StatusCode finalize()
virtual ~ZdcRecNoiseTool()
static const InterfaceID & interfaceID()
std::string m_pedestalFile
std::unique_ptr< ZdcDigitsCollection > m_pedestalData
virtual StatusCode initialize()
ZdcRecNoiseTool(const std::string &type, const std::string &name, const IInterface *parent)