Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
26 class IInterface;
27 class InterfaceID;
28 class StatusCode;
30 
31 
32 //Interface Id for retrieving the tool
33 static const InterfaceID IID_IZdcRecNoiseTool("ZdcRecNoiseTool", 1, 1);
34 
36 {
37 public:
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 
52 private:
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_ */
ZdcRecNoiseTool::~ZdcRecNoiseTool
virtual ~ZdcRecNoiseTool()
Definition: ZdcRecNoiseTool.cxx:63
ZdcRawChannelCollection.h
ZdcRecNoiseTool
Definition: ZdcRecNoiseTool.h:36
ZdcRecNoiseTool::initialize
virtual StatusCode initialize()
Definition: ZdcRecNoiseTool.cxx:167
ZdcRecNoiseTool::m_pedestalData
std::unique_ptr< ZdcDigitsCollection > m_pedestalData
Definition: ZdcRecNoiseTool.h:57
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
ZdcRecNoiseTool::ZdcRecNoiseTool
ZdcRecNoiseTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: ZdcRecNoiseTool.cxx:43
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ZdcRecNoiseTool::readPedestals
int readPedestals()
Definition: ZdcRecNoiseTool.cxx:69
ZdcRecNoiseTool::interfaceID
static const InterfaceID & interfaceID()
Definition: ZdcRecNoiseTool.cxx:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ZdcRecNoiseTool::m_pedestalFile
std::string m_pedestalFile
Definition: ZdcRecNoiseTool.h:55
ZdcRecNoiseTool::writePedestals
int writePedestals()
Definition: ZdcRecNoiseTool.cxx:116
ZdcDigitsCollection
Definition: ZdcDigitsCollection.h:20
ZdcRecNoiseTool::finalize
virtual StatusCode finalize()
Definition: ZdcRecNoiseTool.cxx:180
AthAlgTool
Definition: AthAlgTool.h:26
ZdcRecNoiseTool::m_pedestalDir
std::string m_pedestalDir
Definition: ZdcRecNoiseTool.h:54