#include <ZdcRecNoiseTool.h>
Definition at line 35 of file ZdcRecNoiseTool.h.
◆ StoreGateSvc_t
◆ ZdcRecNoiseTool()
| ZdcRecNoiseTool::ZdcRecNoiseTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 49 of file ZdcRecNoiseTool.cxx.
51 :
52
54
55{
56
57
58 declareInterface<ZdcRecNoiseTool>(this);
59
61 "Pedestal files directory");
63 "Pedestal file name");
64
65}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ ~ZdcRecNoiseTool()
| ZdcRecNoiseTool::~ZdcRecNoiseTool |
( |
| ) |
|
|
virtual |
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize()
| StatusCode ZdcRecNoiseTool::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
| StatusCode ZdcRecNoiseTool::initialize |
( |
| ) |
|
|
virtual |
Definition at line 173 of file ZdcRecNoiseTool.cxx.
174{
176
177
178
179
180
181 return StatusCode::SUCCESS;
182}
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
| const InterfaceID & ZdcRecNoiseTool::interfaceID |
( |
| ) |
|
|
static |
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ readPedestals()
| int ZdcRecNoiseTool::readPedestals |
( |
| ) |
|
Definition at line 75 of file ZdcRecNoiseTool.cxx.
76{
78
82
83
86
87 infile.open(
str.data(), std::ifstream::in);
89 msg(MSG::ERROR) <<
"ZDC ---> No pedestal file available - aborting ";
90 return 0;
91 }
92 else {
94 std::vector<int> fadc00(nsamples);
95 std::vector<int> fadc01(nsamples);
96 std::vector<int> fadc10(nsamples);
97 std::vector<int> fadc11(nsamples);
98 int sz =
sizeof(
int)*nsamples;
101 infile.read (charAddress(
id),
sizeof(
id));
102 infile.read (charAddress(fadc00[0]),
sz);
103 infile.read (charAddress(fadc01[0]),
sz);
104 infile.read (charAddress(fadc10[0]),
sz);
105 infile.read (charAddress(fadc11[0]),
sz);
106
107 ZdcDigits* digits_p = new ZdcDigits(Identifier(id));
114 }
115 msg(MSG::INFO) <<
"ZDC ---> Read " <<
i <<
" pedestal channels from file" ;
116 }
118}
void set_digits_gain0_delay1(const std::vector< int > &v)
void set_digits_gain0_delay0(const std::vector< int > &v)
void set_digits_gain1_delay0(const std::vector< int > &v)
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ writePedestals()
| int ZdcRecNoiseTool::writePedestals |
( |
| ) |
|
Definition at line 122 of file ZdcRecNoiseTool.cxx.
123{
124
126
130
131
134
135
136
137
140 msg(MSG::ERROR) <<
"ZDC ---> Cannot create Pedestal File - aborting ";
141 return 0;
142 }
143 else {
144 std::vector<int> fadc00(nsamples);
145 std::vector<int> fadc01(nsamples);
146 std::vector<int> fadc10(nsamples);
147 std::vector<int> fadc11(nsamples);
149 int sz =
sizeof(
int)*nsamples;
150
152 id =
p->identify().get_identifier32().get_compact();
153 outfile.write(charAddress(
id),
sizeof(
id));
154
155 fadc00 =
p->get_digits_gain0_delay0();
156 fadc01 =
p->get_digits_gain0_delay1();
157 fadc10 =
p->get_digits_gain1_delay0();
158 fadc11 =
p->get_digits_gain1_delay1();
164 }
165 }
167}
◆ m_detStore
◆ m_evtStore
◆ m_pedestalData
◆ m_pedestalDir
| std::string ZdcRecNoiseTool::m_pedestalDir |
|
private |
◆ m_pedestalFile
| std::string ZdcRecNoiseTool::m_pedestalFile |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: