 |
Belle II Software
release-05-02-19
|
11 #ifndef KLMTRIGGERMODULE_H
12 #define KLMTRIGGERMODULE_H
14 #include <framework/core/Module.h>
24 class KLMTriggerModule :
public Module {
31 virtual ~KLMTriggerModule() { };
35 virtual void event()
override;
36 virtual void endRun()
override;
59 void geometryConverter(
int section,
int sector,
int layer,
int phiStrip,
int zStrip,
int& x,
int& y,
int& z);
86 #endif // KLMTRIGGERMODULE_H
virtual void endRun() override
This method is called if the current run ends.
std::string m_klmhitCollectionName
name of StoreArray Hits
int m_minLayers
Trigger threshold on the number of fired layers.
void geometryConverter(int section, int sector, int layer, int phiStrip, int zStrip, int &x, int &y, int &z)
Convert sector, layer and channel numbers to x, y, z coordinates.
virtual void terminate() override
This method is called at the end of the event processing.
int m_nEvents
Total number of processed events.
virtual void initialize() override
Initialize the Module.
virtual void event() override
This method is the core of the module.
void fillTracks()
Create tracks from 2D hits.
double m_maxChisq
Trigger threshold on chisq.
static const int c_TotalSectors
Total number of sectors (eight, a constant)
std::string m_klmtrackCollectionName
name of StoreArray Tracks
double m_maxIP
Trigger threshold on the impact parameter.
virtual void beginRun() override
Called when entering a new run.
Abstract base class for different kinds of events.
int m_nTracks
Total number of found tracks.
void fillHits()
Create 2D hits from KLM Digits.
static const int c_TotalLayers
Total number of layers (fifteen, a constant)
void calcChisq()
Calculate track parameters, chi squared, impact parameter and number of fired layers.