ATLAS Offline Software
MuonCalibStreamFileInputSvc.h
Go to the documentation of this file.
1 #ifndef MUONCALIBSTREAMCNVSVC_MUONCALIBSTREAMFILEINPUTSVC_H
2 #define MUONCALIBSTREAMCNVSVC_MUONCALIBSTREAMFILEINPUTSVC_H
3 
4 //===================================================================
5 // MuonCalibStreamFileInputSvc.h
6 //===================================================================
7 //
8 // Description: This class implements the interface MuonCalibStreamInputSvc for
9 // event selector to read the events for Files.
10 //
11 //-------------------------------------------------------------------
12 
13 // Include files.
14 #include <fstream>
15 #include <TROOT.h>
16 
18 
20 #include "EventStorage/DataReader.h"
21 #include "MuCalDecode/CalibDataLoader.h"
22 #include "MuCalDecode/CalibEvent.h"
23 #include "MuCalDecode/CalibUti.h"
24 #include "MuCalDecode/DataBuffer.h"
25 
26 class MuonCalibStreamFileInputSvc : public extends<AthService, MuonCalibStreamInputSvc> {
27 public:
28  // Constructors:
29  MuonCalibStreamFileInputSvc(const std::string &name, ISvcLocator *svcloc);
30  // Destructor.
32  // Implementation of the MuonCalibStreamInputSvc interface methods.
33  virtual StatusCode initialize() override;
34  virtual const LVL2_MUON_CALIBRATION::CalibEvent *nextEvent() override;
35  virtual const LVL2_MUON_CALIBRATION::CalibEvent *currentEvent() const override;
36 
37 private:
38  Long64_t m_fileEventCounter{0};
39  Long64_t m_totalEventCounter{0};
40  Gaudi::Property<int> m_DumpStream{this, "DumpStream", 0};
41  std::unique_ptr<DataReader> m_reader{};
42  bool m_EoF{false};
43  std::unique_ptr<LVL2_MUON_CALIBRATION::CalibEvent> m_re{};
44  std::unique_ptr<LVL2_MUON_CALIBRATION::CalibDataLoader> m_dataLoader{};
45  DataBuffer m_dataBuffer;
46  Gaudi::Property<std::vector<std::string>> m_inputFiles{this, "InputFiles", {} };
48 };
49 #endif
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
MuonCalibStreamFileInputSvc::m_re
std::unique_ptr< LVL2_MUON_CALIBRATION::CalibEvent > m_re
Definition: MuonCalibStreamFileInputSvc.h:43
MuonCalibStreamFileInputSvc::m_fileEventCounter
Long64_t m_fileEventCounter
Definition: MuonCalibStreamFileInputSvc.h:38
MuonCalibStreamFileInputSvc::m_EoF
bool m_EoF
Definition: MuonCalibStreamFileInputSvc.h:42
MuonCalibStreamFileInputSvc::m_totalEventCounter
Long64_t m_totalEventCounter
Definition: MuonCalibStreamFileInputSvc.h:39
MuonCalibStreamFileInputSvc::initialize
virtual StatusCode initialize() override
Definition: MuonCalibStreamFileInputSvc.cxx:30
MuonCalibStreamFileInputSvc::m_inputFilesIt
std::vector< std::string >::iterator m_inputFilesIt
Definition: MuonCalibStreamFileInputSvc.h:47
MuonCalibStreamFileInputSvc::m_dataLoader
std::unique_ptr< LVL2_MUON_CALIBRATION::CalibDataLoader > m_dataLoader
Definition: MuonCalibStreamFileInputSvc.h:44
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonCalibStreamFileInputSvc::currentEvent
virtual const LVL2_MUON_CALIBRATION::CalibEvent * currentEvent() const override
Get a pointer to the current event.
Definition: MuonCalibStreamFileInputSvc.cxx:110
MuonCalibStreamFileInputSvc::m_reader
std::unique_ptr< DataReader > m_reader
Definition: MuonCalibStreamFileInputSvc.h:41
MuonCalibStreamFileInputSvc::m_dataBuffer
DataBuffer m_dataBuffer
Definition: MuonCalibStreamFileInputSvc.h:45
MuonCalibStreamInputSvc.h
MuonCalibStreamFileInputSvc::nextEvent
virtual const LVL2_MUON_CALIBRATION::CalibEvent * nextEvent() override
Definition: MuonCalibStreamFileInputSvc.cxx:50
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
MuonCalibStreamFileInputSvc
Definition: MuonCalibStreamFileInputSvc.h:26
MuonCalibStreamFileInputSvc::MuonCalibStreamFileInputSvc
MuonCalibStreamFileInputSvc(const std::string &name, ISvcLocator *svcloc)
Definition: MuonCalibStreamFileInputSvc.cxx:23
MuonCalibStreamFileInputSvc::~MuonCalibStreamFileInputSvc
virtual ~MuonCalibStreamFileInputSvc()
Definition: MuonCalibStreamFileInputSvc.cxx:27
AthService.h
MuonCalibStreamFileInputSvc::m_DumpStream
Gaudi::Property< int > m_DumpStream
Definition: MuonCalibStreamFileInputSvc.h:40
MuonCalibStreamFileInputSvc::m_inputFiles
Gaudi::Property< std::vector< std::string > > m_inputFiles
Definition: MuonCalibStreamFileInputSvc.h:46