5#ifndef TILECONDITIONS_TILEINFOLOADER_H
6#define TILECONDITIONS_TILEINFOLOADER_H
37#include "GaudiKernel/ServiceHandle.h"
38#include "Gaudi/Property.h"
65 virtual StatusCode
finalize()
override;
72 const std::string& ShapeFile,
73 int &NBins,
int &Time0Bin,
int &BinsPerX
74 , std::vector<double> &FullShape, std::vector<double> &Shape);
78 "TileInfo",
"TileInfo",
"Name of TileInfo object in Detector Store"};
88 Gaudi::Property<int>
m_nSamples{
this,
"NSamples", 7,
"Number of 25ns time slices in TileDigits"};
89 Gaudi::Property<int>
m_iTrigSample{
this,
"TrigSample", 3,
"sample index of t=0 in TileDigits"};
91 Gaudi::Property<bool>
m_tileNoise{
this,
"TileNoise",
true,
"true => add noise to TileDigits and TileRawChannels (used in MC generation)"};
92 Gaudi::Property<bool>
m_tileCoherNoise{
this,
"TileCoherNoise",
false,
"true => add coherent noise to TileDigits and TileRawChannels (used in MC generation)"};
93 Gaudi::Property<bool>
m_tileZeroSuppress{
this,
"TileZeroSuppress",
false,
"true => applies threshold cuts in HitToRC, HitToDigits, RCToCells"};
94 Gaudi::Property<int>
m_noiseScaleIndex{
this,
"NoiseScaleIndex", 1,
"allowed values 0-3 to choose proper ADC->OF noise scale factor for different OF methods"};
95 Gaudi::Property<double>
m_thresholdRawChannel{
this,
"ThresholdRawChannel", -3.0,
"threshold for TileRawChannel [adc] (high gain only, negative -> cut on abs value)"};
96 Gaudi::Property<double>
m_thresholdDigits{
this,
"ThresholdDigits", -2.0,
"threshold for TileDigits [adc] (high gain only, negative -> cut on abs value)"};
98 Gaudi::Property<double>
m_ttL1Calib{
this,
"TTL1Calib", 4.1,
"converts pCb to mV for TTL1"};
99 Gaudi::Property<double>
m_ttL1NoiseSigma{
this,
"TTL1NoiseSigma", 2.5,
"sigma of noise in TTL1 (mV)"};
100 Gaudi::Property<double>
m_ttL1Thresh{
this,
"TTL1Thresh", 5.0,
"threshold cut for TTL1 signals (mV)"};
101 Gaudi::Property<double>
m_ttL1Ped{
this,
"TTL1Ped", 0.0,
"pedestal for TTL1 signals (mV)"};
102 Gaudi::Property<double>
m_ttL1Max{
this,
"TTL1Max", 1850.0,
"max value for TTL1 signals (mV)"};
104 Gaudi::Property<double>
m_MuRcvCalib{
this,
"MuRcvCalib", 14.20,
"converts pCb to ADC counts for MuRcv"};
105 Gaudi::Property<double>
m_MuRcvNoiseSigma{
this,
"MuRcvNoiseSigma", 2,
"sigma of noise in MuRcv (ADC counts)"};
106 Gaudi::Property<double>
m_MuRcvThresh{
this,
"MuRcvThresh", 5,
"threshold cut for MuRcv signals (ADC count)"};
107 Gaudi::Property<double>
m_MuRcvPed{
this,
"MuRcvPed", 11.73,
"pedestal for MuRcv signals (ADC count)"};
108 Gaudi::Property<double>
m_MuRcvMax{
this,
"MuRcvMax", 255,
"max value for MuRcv signals (ADC count)"};
110 Gaudi::Property<double>
m_muL1Calib{
this,
"MuL1Calib", 204.2,
"converts pCb to mV for Mu"};
111 Gaudi::Property<double>
m_muL1NoiseSigma{
this,
"MuL1NoiseSigma", 15.6,
"sigma of noise in Mu (mV)"};
112 Gaudi::Property<double>
m_muL1Thresh{
this,
"MuL1Thresh", 5.0,
"threshold cut for Mu signals (mV)"};
113 Gaudi::Property<double>
m_muL1Ped{
this,
"MuL1Ped", 0.0,
"pedestal for Mu signals (mV)"};
114 Gaudi::Property<double>
m_muL1Max{
this,
"MuL1Max", 1850.0,
"max value for Mu signals (mV)"};
116 Gaudi::Property<double>
m_mbtsL1Calib{
this,
"MBTSL1Calib", 222.0,
"converts pCb to mV for MBTS"};
117 Gaudi::Property<double>
m_mbtsL1NoiseSigma{
this,
"MBTSL1NoiseSigma", 0.6,
"sigma of noise in MBTS (mV)"};
118 Gaudi::Property<double>
m_mbtsL1Thresh{
this,
"MBTSL1Thresh", 5.0,
"threshold cut for MBTS signals (mV)"};
119 Gaudi::Property<double>
m_mbtsL1Ped{
this,
"MBTSL1Ped", 0.0,
"pedestal for MBTS signals (mV)"};
120 Gaudi::Property<double>
m_mbtsL1Max{
this,
"MBTSL1Max", 1850.0,
"max value for MBTS signals (mV)"};
122 Gaudi::Property<double>
m_ttL1CosmicsGain{
this,
"TTL1CosmicsGain", 5.0,
"gain of the Cosmics board"};
123 Gaudi::Property<double>
m_ttL1CosmicsThresh{
this,
"TTL1CosmicsThresh", 5.0,
"threshold in the Cosmics board"};
125 Gaudi::Property<int>
m_ADCmax{
this,
"ADCmax", 1023,
"Maximum ADC value"};
126 Gaudi::Property<int>
m_ADCmaskValue{
this,
"ADCmaskValue", 2047,
"ADC mask value"};
133 Gaudi::Property<std::string>
m_digitsShapeFileHi{
this,
"DigitsShapeFileHi",
"pulsehi_physics.dat",
"Filename for high gain pulse shape"};
134 Gaudi::Property<std::string>
m_digitsShapeFileLo{
this,
"DigitsShapeFileLo",
"pulselo_physics.dat",
"Filename for low gain pulse shape"};
136 Gaudi::Property<std::string>
m_TTL1ShapeFile{
this,
"filename_TTL1ShapeFile",
"pulse_adder_tower_physics.dat",
"Filename for trigger tower pulse shape"};
137 Gaudi::Property<std::string>
m_MuRcvShapeFile{
this,
"filename_MuRcvShapeFile",
"pulse_adder_muonRcv_physics.dat",
"Filename for Muon Receiver pulse shape"};
138 Gaudi::Property<std::string>
m_MuL1ShapeFile{
this,
"filename_MuL1ShapeFile",
"pulse_adder_muon_physics.dat",
"Filename for muon level1 trigger pulse shape"};
140 Gaudi::Property<std::string>
m_DecoCovaFilePrefix{
this,
"filename_DecoCovaFilePrefix",
"DecoCovaMatrix",
"Prefix of the files with decomposed covariance matrices for coherent noise simulation"};
144 Gaudi::Property<std::string>
m_filenameLoCIS{
this,
"filename_lo_cis",
"pulselo_cis_100.dat",
"Low gain CIS pulseshape 100pF"};
145 Gaudi::Property<std::string>
m_filenameLoCISDer{
this,
"filename_lo_cis_der",
"dpulselo_cis_100.dat",
"Low gain CIS pulseshape derivative 100pF"};
146 Gaudi::Property<std::string>
m_filenameSLoCIS{
this,
"filename_slo_cis",
"pulselo.0230055.12.cap.5.2.dat",
"Low gain CIS pulseshape 5pF"};
147 Gaudi::Property<std::string>
m_filenameSLoCISDer{
this,
"filename_slo_cis_der",
"dpulselo.0230055.12.cap.5.2.dat",
"Low gain CIS pulseshape derivative pF"};
148 Gaudi::Property<std::string>
m_filenameHiCIS{
this,
"filename_hi_cis",
"pulsehi_cis_100.dat",
"High gain CIS pulseshape 100pF"};
149 Gaudi::Property<std::string>
m_filenameHiCISDer{
this,
"filename_hi_cis_der",
"dpulsehi_cis_100.dat",
"High gain CIS pulseshape derivative 100pF"};
150 Gaudi::Property<std::string>
m_filenameSHiCIS{
this,
"filename_shi_cis",
"pulsehi.0230055.12.cap.5.2.dat",
"High gain CIS pulseshape 5pF"};
151 Gaudi::Property<std::string>
m_filenameSHiCISDer{
this,
"filename_shi_cis_der",
"dpulsehi.0230055.12.cap.5.2.dat",
"High gain CIS pulseshape derivative 5pF"};
153 Gaudi::Property<std::string>
m_filenameLoPhys{
this,
"filename_lo_phys",
"pulselo_physics.dat",
"Low gain physics pulseshape"};
154 Gaudi::Property<std::string>
m_filenameHiPhys{
this,
"filename_hi_phys",
"pulsehi_physics.dat",
"High gain physics pulseshape"};
155 Gaudi::Property<std::string>
m_filenameLoPhysDer{
this,
"filename_lo_phys_der",
"dpulselo_physics.dat",
"Low gain physics pulseshape derivative"};
156 Gaudi::Property<std::string>
m_filenameHiPhysDer{
this,
"filename_hi_phys_der",
"dpulsehi_physics.dat",
"High gain physics pulseshape derivative"};
158 Gaudi::Property<std::string>
m_filenameLoLas{
this,
"filename_lo_las",
"pulselo_laser.dat",
"Low gain laser pulseshape"};
159 Gaudi::Property<std::string>
m_filenameHiLas{
this,
"filename_hi_las",
"pulsehi_laser.dat",
"High gain laser pulseshape"};
160 Gaudi::Property<std::string>
m_filenameLoLasDer{
this,
"filename_lo_las_der",
"dpulselo_laser.dat",
"Low gain laser pulseshape derivative"};
161 Gaudi::Property<std::string>
m_filenameHiLasDer{
this,
"filename_hi_las_der",
"dpulsehi_laser.dat",
"High gain laser pulseshape derivative"};
163 Gaudi::Property<std::string>
m_filenameSLeakLo{
this,
"filename_sleaklo",
"leaklo.0230055.12.cap.5.2.dat",
"Low gain CIS leakage pulse 5pF"};
164 Gaudi::Property<std::string>
m_filenameLeakLo{
this,
"filename_leaklo",
"leaklo_100.dat",
"Low gain CIS leakage pulse 100pF"};
165 Gaudi::Property<std::string>
m_filenameDSLeakLo{
this,
"filename_dsleaklo",
"dsleaklo.0230055.12.cap.5.2.dat",
"Derivative low gain CIS leakage pulse 5pF"};
166 Gaudi::Property<std::string>
m_filenameDLeakLo{
this,
"filename_dleaklo",
"dleaklo_100.dat",
"Derivative low gain CIS leakage pulse 100pF"};
167 Gaudi::Property<std::string>
m_filenameSLeakHi{
this,
"filename_sleakhi",
"leakhi.0230055.12.cap.5.2.dat",
"High gain CIS leakage pulse 5pF"};
168 Gaudi::Property<std::string>
m_filenameLeakHi{
this,
"filename_leakhi",
"leakhi_100.dat",
"High gain CIS leakage pulse 100pF"};
169 Gaudi::Property<std::string>
m_filenameDSLeakHi{
this,
"filename_dsleakhi",
"dsleakhi.0230055.12.cap.5.2.dat",
"Derivative high gain CIS leakage pulse 5pF"};
170 Gaudi::Property<std::string>
m_filenameDLeakHi{
this,
"filename_dleakhi",
"dleakhi_100.dat",
"Derivative high gain CIS leakage pulse 100pF"};
172 Gaudi::Property<std::string>
m_filenameOrigNoise{
this,
"filename_orig_noise",
"noise_digi_orig.dat",
"file with noise rms per channel"};
173 Gaudi::Property<std::string>
m_filenameNkNoise{
this,
"filename_nk_noise",
"noise_digi_nk.dat",
"file with noise rms per channel"};
178 Gaudi::Property<int>
m_WFNSamplesPhys{
this,
"WienerFilterPhysicsNSamples", 7,
"Number of samples for Wiener filter physics weights"};
179 Gaudi::Property<int>
m_WFLuminosity{
this,
"WienerFilterLuminosity", 40,
"Luminosity for Wiener filter weights"};
static const InterfaceID IID_TileInfoLoader("TileInfoLoader", 1, 0)
The Athena Transient Store API.
Gaudi::Property< std::string > m_filenameHiLas
Gaudi::Property< double > m_ttL1Max
Gaudi::Property< double > m_ttL1CosmicsGain
Gaudi::Property< std::string > m_filenameLeakHi
Gaudi::Property< bool > m_tileCoherNoise
void buildCovMatrix(TileInfo &info)
Gaudi::Property< std::string > m_filenameSLeakHi
Gaudi::Property< double > m_mbtsL1Thresh
Gaudi::Property< std::string > m_filenameDSLeakHi
Gaudi::Property< double > m_ttL1Calib
Gaudi::Property< std::string > m_filenameHiLasDer
Gaudi::Property< double > m_thresholdRawChannel
Gaudi::Property< int > m_WFNSamplesPhys
Forwarded to TileWienerFilterWeights in initialize().
Gaudi::Property< std::string > m_filenameHiCISDer
Gaudi::Property< double > m_MuRcvCalib
Gaudi::Property< double > m_ttL1Ped
Gaudi::Property< double > m_ttL1CosmicsThresh
Gaudi::Property< std::string > m_filenameHiCIS
Gaudi::Property< int > m_noiseScaleIndex
Gaudi::Property< int > m_iTrigSample
Gaudi::Property< bool > m_tileNoise
Gaudi::Property< std::string > m_TTL1ShapeFile
Gaudi::Property< double > m_thresholdDigits
Gaudi::Property< std::string > m_filenameHiPhysDer
std::vector< std::string > m_connectedDrawers
Gaudi::Property< double > m_ttL1Thresh
Gaudi::Property< std::string > m_filenameLoLasDer
virtual StatusCode finalize() override
Gaudi::Property< double > m_muL1Max
Gaudi::Property< std::string > m_digitsShapeFileHi
Filenames of input files.
Gaudi::Property< int > m_WFLuminosity
Gaudi::Property< double > m_muL1Calib
TilePulseShapes * m_pulsevar
Pointer to TilePulseShapes object.
Gaudi::Property< std::string > m_MuL1ShapeFile
Gaudi::Property< bool > m_tileZeroSuppress
TileInfoLoader(const TileInfoLoader &)
Gaudi::Property< std::string > m_filenameDLeakLo
Gaudi::Property< double > m_mbtsL1Max
Gaudi::Property< std::string > m_filenameSHiCISDer
Gaudi::Property< std::string > m_filenameHiPhys
Gaudi::Property< int > m_ADCmax
Gaudi::Property< std::string > m_filenameSLeakLo
Gaudi::Property< std::string > m_filenameLeakLo
StatusCode buildDigitsShapesHiLo(TileInfo &info)
Gaudi::Property< double > m_mbtsL1Ped
Gaudi::Property< std::string > m_filenameDLeakHi
Gaudi::Property< std::string > m_filenameLoCISDer
Gaudi::Property< double > m_MuRcvNoiseSigma
Gaudi::Property< std::string > m_filenameLoCIS
Reference pulse shape filenames, forwarded to TilePulseShapes in initialize().
Gaudi::Property< std::string > m_filenameLoPhys
Gaudi::Property< std::string > m_filenameSLoCIS
Gaudi::Property< double > m_MuRcvMax
Gaudi::Property< std::string > m_filenameDSLeakLo
Gaudi::Property< double > m_MuRcvThresh
Gaudi::Property< std::string > m_DecoCovaFilePrefix
Gaudi::Property< bool > m_loadWienerFilterWeights
Gaudi::Property< std::string > m_filenameSHiCIS
Gaudi::Property< std::string > m_filenameLoLas
Gaudi::Property< int > m_nSamples
Properties to forward to TileInfo.
Gaudi::Property< double > m_MuRcvPed
Gaudi::Property< std::string > m_filenameNkNoise
Gaudi::Property< std::string > m_tileInfoName
virtual ~TileInfoLoader()
Gaudi::Property< int > m_ADCmaskValue
Gaudi::Property< std::string > m_filenameOrigNoise
Gaudi::Property< double > m_muL1Thresh
Gaudi::Property< std::string > m_filenameLoPhysDer
Gaudi::Property< double > m_mbtsL1Calib
Gaudi::Property< double > m_ttL1NoiseSigma
Gaudi::Property< double > m_muL1Ped
static const InterfaceID & interfaceID()
StatusCode buildTTL1Shapes(TileInfo &info, const std::string &ShapeFile, int &NBins, int &Time0Bin, int &BinsPerX, std::vector< double > &FullShape, std::vector< double > &Shape)
ServiceHandle< StoreGateSvc > m_detStore
TileInfoLoader(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::string > m_filenameSLoCISDer
std::string m_calibCntName
TileWienerFilterWeights * m_WFWeights
Pointer to Wiener Filtering weights.
TileInfoLoader & operator=(const TileInfoLoader &)
Gaudi::Property< double > m_mbtsL1NoiseSigma
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_digitsShapeFileLo
Gaudi::Property< double > m_muL1NoiseSigma
Gaudi::Property< std::string > m_MuRcvShapeFile