5#ifndef MUONCONDALG_NSWCALIBDBALG_H
6#define MUONCONDALG_NSWCALIBDBALG_H
13#include "GaudiKernel/ICondSvc.h"
14#include "GaudiKernel/ServiceHandle.h"
15#include "GaudiKernel/ToolHandle.h"
39 using AthCondAlgorithm::AthCondAlgorithm;
42 virtual StatusCode
execute (
const EventContext&)
const override;
73 Gaudi::Property<bool>
m_isData {
this,
"isData" ,
true,
"Processing data"};
74 Gaudi::Property<bool>
m_processThresholds{
this,
"processThresholds",
false,
"Process threshold data"};
96 Gaudi::Property<bool>
m_loadMmT0Data {
this,
"loadMmT0Data",
false,
"Enable loading the sTgc T0Data"};
97 Gaudi::Property<bool>
m_loadsTgcT0Data {
this,
"loadsTgcT0Data",
false,
"Enable loading the sTgcT0Data"};
100 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"};
101 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.
writeKeyTdoPdo_t m_writeKey_tdopdo
readKey_t m_readKey_mm_sidea_pdo
StatusCode loadT0ToTree(const EventContext &ctx, const readKey_t &readKey, writeHandleT0_t &writeHandle, std::unique_ptr< TTree > &tree) const
SG::ReadCondHandleKey< CondAttrListCollection > readKey_t
NswCalibDbThresholdData::ThrsldTechType ThresholdTech
Gaudi::Property< bool > m_processThresholds
readKey_t m_readKey_stgc_sidec_tdo
readKey_t m_readKey_mm_sidec_tdo
SG::WriteCondHandleKey< NswCalibDbTimeChargeData > writeKeyTdoPdo_t
Gaudi::Property< std::string > m_mmT0FilePath
virtual StatusCode initialize() override
StatusCode loadThresholdData(const EventContext &, const readKey_t &, const ThresholdTech, writeHandleThr_t &, NswCalibDbThresholdData *) const
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
ServiceHandle< ICondSvc > m_condSvc
virtual ~NswCalibDbAlg()=default
readKey_t m_readKey_mm_sidea_thr
readKey_t m_readKey_stgc_sidec_pdo
readKey_t m_readKey_stgc_sidec_thr
readKey_t m_readKey_stgc_sidea_tdo
Gaudi::Property< std::string > m_stgcT0FilePath
readKey_t m_readKey_mm_sidea_tdo
readKey_t m_readKey_mm_sidec_pdo
StatusCode loadT0Data(const std::unique_ptr< TTree > &tree, NswT0Data *writeCdo, const T0Tech tech) const
Gaudi::Property< bool > m_loadsTgcT0Data
readKey_t m_readKey_mm_sidec_thr
readKey_t m_readKey_stgc_sidea_thr
bool buildChannelId(Identifier &channelId, unsigned int elinkId, unsigned int vmm, unsigned int channel) const
readKey_t m_readKey_stgc_t0
NswCalibDbTimeChargeData::CalibDataType TimeChargeType
Gaudi::Property< bool > m_loadMmT0Data
SG::WriteCondHandle< NswCalibDbTimeChargeData > writeHandleTdoPdo_t
StatusCode processThrData(const EventContext &ctx) const
virtual StatusCode execute(const EventContext &) const override
MuonCond::CalibTechType TimeChargeTech
StatusCode processTdoPdoData(const EventContext &ctx) const
StatusCode loadTimeChargeData(const EventContext &ctx, const readKey_t &readKey, const TimeChargeTech, const TimeChargeType type, writeHandleTdoPdo_t &writeHandle, NswCalibDbTimeChargeData *writeCdo) const
StatusCode processNSWT0Data(const EventContext &ctx) const
readKey_t m_readKey_stgc_sidea_pdo
writeKeyMmT0_t m_writeKey_nswT0
SG::WriteCondHandle< NswCalibDbThresholdData > writeHandleThr_t
readKey_t m_readKey_mm_t0
Gaudi::Property< bool > m_isData
SG::WriteCondHandleKey< NswT0Data > writeKeyMmT0_t
SG::WriteCondHandleKey< NswCalibDbThresholdData > writeKeyThr_t
writeKeyThr_t m_writeKey_thr
SG::WriteCondHandle< NswT0Data > writeHandleT0_t
MuonCond::CalibTechType T0Tech