|
3 | 3 |
|
4 | 4 | #include "k4FWCore/DataHandle.h" |
5 | 5 |
|
6 | | -#include "GaudiAlg/GaudiAlgorithm.h" |
| 6 | +#include "Gaudi/Algorithm.h" |
7 | 7 | #include "GaudiKernel/ToolHandle.h" |
8 | 8 |
|
9 | 9 | #include "edm4hep/CalorimeterHitCollection.h" |
|
15 | 15 | class TH1D; |
16 | 16 | class IGeoSvc; |
17 | 17 |
|
18 | | -class DRcalib3D : public GaudiAlgorithm { |
| 18 | +class DRcalib3D : public Gaudi::Algorithm { |
19 | 19 | public: |
20 | 20 | DRcalib3D(const std::string& name, ISvcLocator* svcLoc); |
21 | 21 | virtual ~DRcalib3D() {}; |
22 | 22 |
|
23 | 23 | StatusCode initialize(); |
24 | | - StatusCode execute(); |
| 24 | + StatusCode execute(const EventContext&) const; |
25 | 25 | StatusCode finalize(); |
26 | 26 |
|
27 | | - TH1* processFFT(TH1* waveHist); |
| 27 | + TH1* processFFT(TH1* waveHist) const; |
28 | 28 |
|
29 | 29 | private: |
30 | 30 | ServiceHandle<IGeoSvc> m_geoSvc; |
31 | 31 | dd4hep::DDSegmentation::GridDRcalo* pSeg; |
32 | | - dd4hep::DDSegmentation::DRparamBase* pParamBase; |
| 32 | + mutable dd4hep::DDSegmentation::DRparamBase* pParamBase; |
33 | 33 | std::unique_ptr<TH1D> m_veloC; |
34 | 34 | std::unique_ptr<TH1D> m_veloS; |
35 | 35 |
|
36 | | - DataHandle<edm4hep::CalorimeterHitCollection> m_digiHits{"DigiCalorimeterHits", Gaudi::DataHandle::Reader, this}; |
37 | | - DataHandle<edm4hep::TimeSeriesCollection> m_waveforms{"DigiWaveforms", Gaudi::DataHandle::Reader, this}; |
38 | | - DataHandle<edm4hep::CalorimeterHitCollection> m_2dHits{"DRcalo2dHits", Gaudi::DataHandle::Reader, this}; |
39 | | - DataHandle<edm4hep::CalorimeterHitCollection> m_caloHits{"DRcalo3dHits", Gaudi::DataHandle::Writer, this}; |
40 | | - DataHandle<edm4hep::TimeSeriesCollection> m_postprocTime{"DRpostprocTime", Gaudi::DataHandle::Writer, this}; |
| 36 | + mutable DataHandle<edm4hep::CalorimeterHitCollection> m_digiHits{"DigiCalorimeterHits", Gaudi::DataHandle::Reader, this}; |
| 37 | + mutable DataHandle<edm4hep::TimeSeriesCollection> m_waveforms{"DigiWaveforms", Gaudi::DataHandle::Reader, this}; |
| 38 | + mutable DataHandle<edm4hep::CalorimeterHitCollection> m_2dHits{"DRcalo2dHits", Gaudi::DataHandle::Reader, this}; |
| 39 | + mutable DataHandle<edm4hep::CalorimeterHitCollection> m_caloHits{"DRcalo3dHits", Gaudi::DataHandle::Writer, this}; |
| 40 | + mutable DataHandle<edm4hep::TimeSeriesCollection> m_postprocTime{"DRpostprocTime", Gaudi::DataHandle::Writer, this}; |
41 | 41 |
|
42 | 42 | Gaudi::Property<std::string> m_readoutName{this, "readoutName", "DRcaloSiPMreadout", "readout name of DRcalo"}; |
43 | 43 | Gaudi::Property<std::string> m_veloFile{this, "veloFile", "share/velo.root", "velocity profile file name"}; |
|
0 commit comments