11#ifndef PIXELCONFIGCONDALG
12#define PIXELCONFIGCONDALG
15#include "GaudiKernel/ToolHandle.h"
23#include "Gaudi/Property.h"
24#include "CLHEP/Units/SystemOfUnits.h"
30 virtual StatusCode
initialize()
override final;
31 virtual StatusCode
execute(
const EventContext& ctx)
const override final;
36 {
this,
"WriteKey",
"PixelModuleData",
"Output key of pixel module data"};
40 {
this,
"BunchSpace", 25.0,
"Bunch space [ns]"};
43 {
this,
"BarrelNumberOfBCID", {1,1,1,1},
"BCID numbers for barrel pixel layers"};
46 {
this,
"EndcapNumberOfBCID", {1,1,1},
"BCID numbers for endcap pixel layers"};
49 {
this,
"DBMNumberOfBCID", {1,1,1},
"BCID numbers for DBM layers"};
52 {
this,
"BarrelTimeOffset", {5.0,5.0,5.0,5.0},
"Offset time of barrel pixel layer"};
55 {
this,
"EndcapTimeOffset", {5.0,5.0,5.0},
"Offset time of endcap pixel layer"};
58 {
this,
"DBMTimeOffset", {5.0,5.0,5.0},
"Offset time of DBM layer"};
61 {
this,
"BarrelTimeJitter", {0.0,0.0,0.0,0.0},
"Time jitter of barrel pixel layer"};
64 {
this,
"EndcapTimeJitter", {0.0,0.0,0.0},
"Time jitter of endcap pixel layer"};
67 {
this,
"DBMTimeJitter", {0.0,0.0,0.0},
"Time jitter of DBM layer"};
168 {
this,
"Run1IOV", 222222,
"Run number for Run1 conditions"};
171 {
this,
"PixelParameterConditionsFolder",
"PixelConditionsAlgorithms/v1/",
"Folder name for pixel parameter conditions"};
174 {
this,
"PixelParameterConditionsFile",
"PixelParametersList-04.dat",
"File name for pixel parameter conditions"};
177 {
this,
"UsePrivateFileName",
"",
"File name for private pixel settings (default:empty)"};
185 {
this,
"DefaultBarrelAnalogThreshold", {-1,-1,-1,-1},
"Default analog thresholds of barrel pixel layers"};
188 {
this,
"DefaultEndcapAnalogThreshold", {-1,-1,-1},
"Default analog thresholds of endcap pixel layers"};
191 {
this,
"DefaultDBMAnalogThreshold", {-1,-1,-1},
"Default analog thresholds of DBMlayers"};
194 {
this,
"DefaultBarrelAnalogThresholdSigma", {45,35,30,30},
"Default analog threshold sigma of barrel pixel layers"};
197 {
this,
"DefaultEndcapAnalogThresholdSigma", {30,30,30},
"Default analog threshold sigma of endcap pixel layers"};
200 {
this,
"DefaultDBMAnalogThresholdSigma", {70,70,70},
"Default analog threshold sigma of DBM pixel layers"};
203 {
this,
"DefaultBarrelAnalogThresholdNoise", {130,150,160,160},
"Default threshold noise of barrel pixel layers"};
206 {
this,
"DefaultEndcapAnalogThresholdNoise", {150,150,150},
"Default threshold noise of endcap pixel layers"};
209 {
this,
"DefaultDBMAnalogThresholdNoise", {190,190,190},
"Default threshold noise of DBM pixel layers"};
212 {
this,
"DefaultBarrelInTimeThreshold", {2000,5000,5000,5000},
"Default in-time thresholds of barrel pixel layers"};
215 {
this,
"DefaultEndcapInTimeThreshold", {5000,5000,5000},
"Default in-time thresholds of endcap pixel layers"};
218 {
this,
"DefaultDBMInTimeThreshold", {1200,1200,1200},
"Default in-time thresholds of DBM pixel layers"};
221 {
this,
"BarrelThermalNoise", {160.0,160.0,160.0,160.0},
"Thermal noise of barrel pixel layers"};
224 {
this,
"EndcapThermalNoise", {160.0,160.0,160.0},
"Thermal noise of endcap pixel layers"};
227 {
this,
"DBMThermalNoise", {160.0,160.0,160.0},
"Thermal noise of DBM layers"};
230 {
this,
"FEI4BarrelHitDiscConfig", {2,2,2},
"Set HitDiscConfig parameter for barrel pixel layers"};
233 {
this,
"FEI4EndcapHitDiscConfig", {2,2,2},
"Set HitDiscConfig parameter for endcap pixel layers"};
236 {
this,
"ChargeScaleFEI4", 1.0,
"Scaling of the FEI4 charge"};
239 {
this,
"UseFEI4SpecialScalingFunction",
true,
"Use FEI4 special scaling function"};
242 {
this,
"FEI4ToTSigma", {0.0,0.50,0.50,0.50,0.50,0.50,0.60,0.60,0.60,0.60,0.65,0.70,0.75,0.80,0.80,0.80,0.80},
"Set ToT sigma for FEI4"};
246 {
this,
"DefaultCalibrationParameterA", 70.2,
"Default charge calibration parameter A"};
249 {
this,
"DefaultCalibrationParameterE", -3561.25,
"Default charge calibration parameter E"};
252 {
this,
"DefaultCalibrationParameterC", 26000.0,
"Default charge calibration parameter C"};
255 {
this,
"doPIXLinearExtrapolation",
true,
"Activation for linear extrapolation for PIXEL"};
259 {
this,
"DefaultBiasVoltage", 150.0,
"Default bias voltage"};
262 {
this,
"DefaultTemperature", -7.0,
"Default temperature in Celcius"};
266 {
this,
"CablingMapToFile",
false,
"Dump pixel cabling map into file"};
269 {
this,
"CablingMapFileName",
"PixelCabling/Pixels_Atlas_IdMapping_2016.dat",
"Read cabling map from file"};
271 std::string
getFileName(
const int currentRunNumber)
const;
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Store pixel constant parameters in PixelModuleData.
Base class for conditions algorithms.
Gaudi::Property< std::vector< int > > m_EndcapInTimeThreshold
Gaudi::Property< std::vector< double > > m_EndcapTimeJitter
Gaudi::Property< std::vector< int > > m_EndcapAnalogThresholdNoise
Gaudi::Property< std::vector< int > > m_DBMNumberOfBCID
Gaudi::Property< float > m_biasVoltage
Gaudi::Property< std::string > m_conditionsFolder
virtual StatusCode initialize() override final
Gaudi::Property< float > m_CalibrationParameterA
Gaudi::Property< bool > m_UseFEI4SpecialScalingFunction
Gaudi::Property< std::vector< int > > m_FEI4BarrelHitDiscConfig
Gaudi::Property< float > m_temperature
Gaudi::Property< double > m_bunchSpace
Gaudi::Property< std::vector< int > > m_BarrelAnalogThresholdNoise
Gaudi::Property< std::vector< double > > m_EndcapTimeOffset
Gaudi::Property< std::vector< double > > m_DBMTimeJitter
Gaudi::Property< std::vector< int > > m_EndcapNumberOfBCID
Gaudi::Property< std::vector< int > > m_DBMAnalogThreshold
Gaudi::Property< std::vector< int > > m_DBMAnalogThresholdSigma
Gaudi::Property< bool > m_doPIXLinearExtrapolation
Gaudi::Property< std::vector< int > > m_BarrelNumberOfBCID
Gaudi::Property< std::vector< double > > m_EndcapThermalNoise
Gaudi::Property< std::vector< int > > m_BarrelAnalogThreshold
Gaudi::Property< std::vector< int > > m_BarrelInTimeThreshold
Gaudi::Property< std::vector< double > > m_BarrelTimeOffset
Gaudi::Property< bool > m_cablingMapToFile
virtual StatusCode execute(const EventContext &ctx) const override final
Gaudi::Property< std::vector< double > > m_FEI4ToTSigma
Gaudi::Property< std::vector< int > > m_FEI4EndcapHitDiscConfig
Gaudi::Property< float > m_CalibrationParameterC
SG::WriteCondHandleKey< PixelModuleData > m_writeKey
Gaudi::Property< std::vector< int > > m_DBMAnalogThresholdNoise
std::string getFileName(const int currentRunNumber) const
PixelConfigCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::string > m_usePrivateFileName
Gaudi::Property< std::vector< double > > m_BarrelTimeJitter
Gaudi::Property< std::vector< double > > m_DBMThermalNoise
Gaudi::Property< float > m_chargeScaleFEI4
Gaudi::Property< std::vector< int > > m_DBMInTimeThreshold
Gaudi::Property< std::vector< int > > m_EndcapAnalogThreshold
Gaudi::Property< int > m_Run1IOV
Gaudi::Property< std::vector< double > > m_BarrelThermalNoise
Gaudi::Property< std::string > m_conditionsFileName
Gaudi::Property< std::vector< int > > m_BarrelAnalogThresholdSigma
Gaudi::Property< std::vector< int > > m_EndcapAnalogThresholdSigma
Gaudi::Property< std::string > m_cablingMapFileName
Gaudi::Property< float > m_CalibrationParameterE
Gaudi::Property< std::vector< double > > m_DBMTimeOffset