ATLAS Offline Software
ZdcRecNoiseTool.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 /*
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 #include <string>
17 #include <map>
18 
20 #include "GaudiKernel/ToolHandle.h"
21 
23 
24 class IInterface;
25 class InterfaceID;
26 class StatusCode;
27 //class Identifier;
29 
30 
31 //Interface Id for retrieving the tool
32 static const InterfaceID IID_IZdcRecNoiseTool("ZdcRecNoiseTool", 1, 1);
33 
35 {
36 public:
37  ZdcRecNoiseTool(const std::string& type,
38  const std::string& name,
39  const IInterface* parent);
40 
41  virtual ~ZdcRecNoiseTool();
42 
43  static const InterfaceID& interfaceID();
44 
45  virtual StatusCode initialize();
46  virtual StatusCode finalize();
47 
48  int readPedestals();
49  int writePedestals();
50 
51 private:
52 
53  //ZdcRawChannelCollection m_ChannelCollection;
54  //unsigned int m_nsamples;
55 
56  std::string m_pedestalDir;
57  std::string m_pedestalFile;
58 
60 
61 };
62 
63 #endif /* ZDCRECNOISETOOL_H_ */
ZdcRecNoiseTool::~ZdcRecNoiseTool
virtual ~ZdcRecNoiseTool()
Definition: ZdcRecNoiseTool.cxx:65
ZdcRecNoiseTool::m_pedestalData
ZdcDigitsCollection * m_pedestalData
Definition: ZdcRecNoiseTool.h:59
ZdcRawChannelCollection.h
ZdcRecNoiseTool
Definition: ZdcRecNoiseTool.h:35
ZdcRecNoiseTool::initialize
virtual StatusCode initialize()
Definition: ZdcRecNoiseTool.cxx:169
ZdcRecNoiseTool::ZdcRecNoiseTool
ZdcRecNoiseTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: ZdcRecNoiseTool.cxx:45
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:71
ZdcRecNoiseTool::interfaceID
static const InterfaceID & interfaceID()
Definition: ZdcRecNoiseTool.cxx:37
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ZdcRecNoiseTool::m_pedestalFile
std::string m_pedestalFile
Definition: ZdcRecNoiseTool.h:57
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ZdcRecNoiseTool::writePedestals
int writePedestals()
Definition: ZdcRecNoiseTool.cxx:118
ZdcDigitsCollection
Definition: ZdcDigitsCollection.h:20
ZdcRecNoiseTool::finalize
virtual StatusCode finalize()
Definition: ZdcRecNoiseTool.cxx:182
AthAlgTool
Definition: AthAlgTool.h:26
ZdcRecNoiseTool::m_pedestalDir
std::string m_pedestalDir
Definition: ZdcRecNoiseTool.h:56