9#ifndef FANGSDIGITIZERMODULE_H
10#define FANGSDIGITIZERMODULE_H
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14#include <beast/fangs/dataobjects/FANGSHit.h>
22constexpr int MAXtSIZE = 1000;
24constexpr int MAXSIZE = 3000;
62 virtual void event()
override;
66 virtual void endRun()
override;
127 std::map<std::tuple<int, int, int>,
int>
m_dchip;
Accessor to arrays stored in the data store.
FANGS ATLAS FE-I4B ASIC chip digitizer.
double m_TOTC1
TOT factor C1.
double m_lowerTimingCut
Lower timing cut.
double m_ChipRowY
Chip row y dimension.
std::map< std::tuple< int, int >, int > m_dchip_pdg_map
chip pdg map arrays
double m_TOTA1
TOT factor A1.
std::map< std::tuple< int, int >, int > m_dchip_trkID_map
chip track ID map arrays
double m_PixelTimeBin
Pixel time bin.
virtual void initialize() override
Initialize the Module.
TF1 * fctToT_Calib1
Define ToT calib 1.
StoreArray< FANGSHit > m_fangsHit
array for FANGSHit
virtual void event() override
This method is the core of the module.
double m_TOTB1
TOT factor B1.
virtual void endRun() override
This method is called if the current run ends.
double m_ChipColumnX
Chip column x dimension.
void getXMLData()
reads data from MICROFANGS.xml: tube location, drift data filename, sigma of impulse response functio...
virtual void terminate() override
This method is called at the end of the event processing.
double m_TOTQ2
TOT factor Q2.
double m_v_sensor
Drift velocity in sensor.
double m_upperTimingCut
Upper timing cut.
std::map< std::tuple< int, int, int >, int > m_dchip
chip store arrays
double m_sensor_width
sensor width
TF1 * fctToT_Calib2
Define ToT calib 2.
std::map< std::tuple< int, int >, int > m_dchip_detNb_map
chip Nb map arrays
virtual void beginRun() override
Called when entering a new run.
double m_TOTC2
TOT factor C2.
int m_ChipRowNb
Chip row number.
std::map< std::tuple< int, int >, int > m_dchip_map
chip map arrays
int m_PixelTimeBinNb
Pixel time number of bin.
int olddetNb
Old detector counter.
int m_ChipColumnNb
Chip column number.
void Pixelization()
Produces the pixelization.
double m_Workfct
Work function.
double m_TOTA2
TOT factor A2.
int m_PixelThresholdRMS
Pixel threshold RMS.
int m_PixelThreshold
Pixel threshold.
FANGSDigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
double m_Fanofac
Fano factor.
int m_nFANGS
number of detectors.
double m_TOTB2
TOT factor B2.
double m_TOTQ1
TOT factor Q1.
Abstract base class for different kinds of events.