5#ifndef MUONCONDALG_NSWCALIBDBALG_H
6#define MUONCONDALG_NSWCALIBDBALG_H
30 using AthCondAlgorithm::AthCondAlgorithm;
33 virtual StatusCode
execute (
const EventContext&)
const override;
55 template <
typename Key_t,
56 typename... KeyArgs_t>
60 KeyArgs_t&... otherKeys)
const;
76 std::unique_ptr<TTree>&
tree)
const;
84 unsigned channel)
const;
86 Gaudi::Property<bool>
m_isData {
this,
"isData" ,
true,
"Processing data"};
87 Gaudi::Property<bool>
m_processThresholds{
this,
"processThresholds",
false,
"Process threshold data"};
108 Gaudi::Property<bool>
m_loadMmT0Data {
this,
"loadMmT0Data",
false,
"Enable loading the sTgc T0Data"};
109 Gaudi::Property<bool>
m_loadsTgcT0Data {
this,
"loadsTgcT0Data",
false,
"Enable loading the sTgcT0Data"};
112 Gaudi::Property<std::string>
m_mmT0FilePath{
this,
"MmT0FileName",
"",
"Path to a file containing the MM T0 data, this will override the data from the conditions db"};
113 Gaudi::Property<std::string>
m_stgcT0FilePath{
this,
"sTgcT0FileName",
"",
"Path to a file containing the sTGC T0 data, this will override the data from the conditions db"};
Base class for conditions algorithms.
Base class for conditions algorithms.
This class is a collection of AttributeLists where each one is associated with a channel number.
Gaudi::Property< bool > m_isData
Gaudi::Property< std::string > m_stgcT0FilePath
StatusCode loadT0Data(std::unique_ptr< TTree > &&tree, NswT0Data &writeCdo, const T0Tech tech) const
NswCalibDbThresholdData::ThrsldTechType ThresholdTech
readKey_t m_readKey_mm_sidea_pdo
Gaudi::Property< bool > m_loadsTgcT0Data
readKey_t m_readKey_mm_t0
SG::WriteCondHandle< NswCalibDbTimeChargeData > writeHandleTdoPdo_t
readKey_t m_readKey_mm_sidec_tdo
SG::WriteCondHandleKey< NswCalibDbThresholdData > writeKeyThr_t
StatusCode loadT0ToTree(const EventContext &ctx, const readKey_t &readKey, std::unique_ptr< TTree > &tree) const
StatusCode processNSWT0Data(const EventContext &ctx) const
bool buildChannelId(Identifier &channelId, unsigned elinkId, unsigned vmm, unsigned channel) const
readKey_t m_readKey_mm_sidea_tdo
Gaudi::Property< bool > m_processThresholds
readKey_t m_readKey_mm_sidec_pdo
readKey_t m_readKey_stgc_sidec_thr
virtual ~NswCalibDbAlg()=default
Gaudi::Property< bool > m_loadMmT0Data
StatusCode loadThresholdData(const EventContext &ctx, const readKey_t &readKey, const ThresholdTech tech, NswCalibDbThresholdData &writeCdo) const
readKey_t m_readKey_stgc_sidea_pdo
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
NswCalibDbTimeChargeData::CalibDataType TimeChargeType
StatusCode processTdoPdoData(const EventContext &ctx) const
virtual StatusCode initialize() override
MuonCond::CalibTechType TimeChargeTech
SG::WriteCondHandleKey< NswT0Data > writeKeyMmT0_t
readKey_t m_readKey_stgc_t0
MuonCond::CalibTechType T0Tech
readKey_t m_readKey_stgc_sidec_tdo
Gaudi::Property< std::string > m_mmT0FilePath
readKey_t m_readKey_stgc_sidec_pdo
SG::WriteCondHandleKey< NswCalibDbTimeChargeData > writeKeyTdoPdo_t
writeKeyMmT0_t m_writeKey_nswT0
SG::WriteCondHandle< NswCalibDbThresholdData > writeHandleThr_t
virtual StatusCode execute(const EventContext &) const override
SG::ReadCondHandleKey< CondAttrListCollection > readKey_t
readKey_t m_readKey_stgc_sidea_tdo
readKey_t m_readKey_mm_sidec_thr
writeKeyThr_t m_writeKey_thr
readKey_t m_readKey_mm_sidea_thr
SG::WriteCondHandle< NswT0Data > writeHandleT0_t
readKey_t m_readKey_stgc_sidea_thr
StatusCode declareDependency(const EventContext &ctx, SG::WriteCondHandle< Key_t > &writeHandle, const readKey_t &readKey, KeyArgs_t &... otherKeys) const
writeKeyTdoPdo_t m_writeKey_tdopdo
StatusCode processThrData(const EventContext &ctx) const
StatusCode loadTimeChargeData(const EventContext &ctx, const readKey_t &readKey, const TimeChargeTech tech, const TimeChargeType type, NswCalibDbTimeChargeData &writeCdo) const
Conditions data to model a channel dependent energy deposit threshold such that the electronics retur...
MuonCond::CalibTechType ThrsldTechType
Conditions data object to calibrate the timeoff set of each individual channel in the NSW.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.