12 #ifndef _FdTriggerSimulatorOG_FdTriggerSimulator_h_
13 #define _FdTriggerSimulatorOG_FdTriggerSimulator_h_
15 #include <utl/config.h>
16 #include <utl/TimeStamp.h>
17 #include <fwk/VModule.h>
18 #include <fevt/SLTData.h>
26 #include <utl/Trace-fwd.h>
33 class EyeEventClassifier;
53 namespace FdTriggerSimulatorOG {
98 bool T1Trigger(
unsigned int chId,
unsigned int pixelthreshold,
112 unsigned int TestPattern(
const std::set<int>& pixInCycle,
int col,
int row,
113 int& multipattern, std::vector<int>& usedInSlt);
121 TEyeEvent& EyeEvent);
141 std::map<int, fevt::SLTData>
fSLT;
149 EyeEventClassifier* fT3;
150 VTltProcessor* fTltProcessor;
Simulates the FLT, SLT, TLT and T3 of the telescopes.
fwk::VModule::ResultFlag Init()
Init method of the module.
Description of the electronic channel for the 480 channels of the crate.
bool T3Sim(TEyeEvent &eye, fevt::Eye &evtEye)
ETriggerLevel fMinRequiredTriggerLevel
Fluorescence Detector Eye Event.
std::map< int, fevt::SLTData > fSLT
A TimeStamp holds GPS second and nanosecond for some event.
TMirrorEvent * MakeMirrorEvent(fevt::Telescope &tel, const evt::Event &event, const utl::TimeInterval &offsetFdSd, int sltTimeOffset)
bool FLTSim(fevt::Telescope &tel)
int ShiftEventToSLT(fevt::Telescope &tel, int sltTimeOffset)
bool AddEyeEvent(fevt::Eye &eye, evt::Event &event, TEyeEvent &EyeEvent)
fwk::VModule::ResultFlag Finish()
Finish method of the module.
fwk::VModule::ResultFlag Run(evt::Event &event)
Run method of the module.
std::map< int, int > fMultiplicity
int T2Trigger(const fdet::Telescope &detTel, unsigned int lastFLTbin)
SLT algorithm.
std::list< int > fChannelReadOutList
REGISTER_MODULE("FdTriggerSimulatorOG", FdTriggerSimulator)
bool TLTSim(TMirrorEvent *tel, fevt::Telescope &evtTel)
Detector description interface for Telescope-related data.
A TimeInterval is used to represent time elapsed between two events.
ResultFlag
Flag returned by module methods to the RunController.
std::list< int > fChannelFLT
ETriggerLevel fMaxSimTriggerLevel
unsigned int TestPattern(const std::set< int > &pixInCycle, int col, int row, int &multipattern, std::vector< int > &usedInSlt)
Method to search patterns in list.
utl::TimeStamp fStartMultiplicityTLT
bool T1Trigger(unsigned int chId, unsigned int pixelthreshold, unsigned int nSamp, const utl::TraceI &trace, fevt::PixelSimData &pixelSim, const fdet::Channel &detChannel)
FLT algorithm.
Fluorescence Detector Telescope Event.
int SLTSim(fevt::Telescope &tel)
std::map< int, int > FltTrace
Fluorescence Detector Pixel Simulated Data.
void DoPixelList(int sltTimeOffset, const fdet::Telescope &detTel)
Prepare list of pixel to be read-out.
std::map< int, FltTrace > fFLT