Modules/SdSimulation/Deprecated/UpgradeASCIITests/G4TankSimulatorASCII/DataWriter.h
Go to the documentation of this file.
1 
10 #ifndef _DataWriter_h_
11 #define _DataWriter_h_
12 
13 #include <fwk/VModule.h>
14 #include <sevt/Station.h>
15 #include <TFile.h>
16 #include <TH1D.h>
17 #include <TGraph.h>
18 
19 
20 namespace evt {
21  class Event;
22 }
23 
24 namespace sevt {
25  class SEvent;
26 }
27 
28 class DataWriter : public fwk::VModule {
29 
30 public:
31  DataWriter() { }
32  virtual ~DataWriter() { }
33 
37 
38 private:
40 
41  std::ofstream* fTextFile;
42  std::ofstream* fPulsesFile;
43 
44  void WriteInfo(sevt::SEvent& theSEvent);
45 
46  REGISTER_MODULE("DataWriter", DataWriter);
47 
48 };
49 
50 
51 #endif
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
REGISTER_MODULE("DataWriter", DataWriter)
Interface class to access to the SD part of an event.
Definition: SEvent.h:39
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
fwk::VModule::ResultFlag Run(evt::Event &theEvent)
Run: invoked once per event.
Example Module to write a Root Tree and histos from the SEvent only.
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60

, generated on Tue Sep 26 2023.