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