 |
Belle II Software
release-05-02-19
|
11 #ifndef ARICHBTESTMODULE_H
12 #define ARICHBTESTMODULE_H
14 #include <framework/core/Module.h>
65 virtual void event()
override;
70 virtual void endRun()
override;
84 void readmwpc(
unsigned int* dbuf,
unsigned int len,
int print = 0);
86 int readhapd(
unsigned int len,
unsigned int* data);
88 int readdata(gzFile fp,
int rec_id,
int print);
113 int getTrack(
int mask, TVector3& r, TVector3& dir);
124 #endif // ARICHBTESTMODULE_H
virtual void terminate() override
Is called at the end of your Module.
arichBtestModule()
Constructor.
gzFile m_fp
file desriptor of the data file
virtual void event() override
Running over all events.
int readdata(gzFile fp, int rec_id, int print)
Read the data from the file (can be compressed)
std::vector< std::string >::iterator m_runCurrent
current run
TFile * m_file
pointer to the root file
int skipdata(gzFile fp)
Skip the data part of the record.
ARICHTracking * m_mwpc
Pointer to the tracking chambers.
int m_tdc[32]
raw MWPC TDC buffer
virtual void endRun() override
Is called after processing the last event of a run.
Abstract base class for different kinds of events.
std::vector< int > m_eveList
The eventnumbers for each of the runs.
int m_events
number of events
virtual void initialize() override
Initialize the Module.
int getTrack(int mask, TVector3 &r, TVector3 &dir)
Beamtest Track reconstruction.
Beamtest ARICH Geometry Tracking Class.
int readhapd(unsigned int len, unsigned int *data)
Read the HAPD hits from the data buffer.
double m_beamMomentum
Momentum of the particles in the beam [GeV].
virtual ~arichBtestModule()
Destructor.
std::vector< std::string > m_runList
The filenames of the runs.
std::vector< int > m_MwpcTrackMask
Bit mask of the MWPC tracking chambers used for the track creation.
void readmwpc(unsigned int *dbuf, unsigned int len, int print=0)
Read the MWPC information from the data buffer.
std::string m_outFile
output file name
time_t m_timestart
time of the first processed event
virtual void beginRun() override
Called when entering a new run.