ATLAS Offline Software
Loading...
Searching...
No Matches
NswCondTestAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef NswCondTestAlg_H
6#define NswCondTestAlg_H
7
8// STL
9#include <chrono>
10#include <string>
11
12// Athena
14#include "GaudiKernel/ServiceHandle.h"
19#include "MuonCondData/Defs.h"
21// Forward declarations
22class ISvcLocator;
23class StatusCode;
24
26public:
27 NswCondTestAlg(const std::string &name, ISvcLocator *pSvcLocator);
28 virtual ~NswCondTestAlg() override;
29
30 virtual StatusCode initialize() override;
31 virtual StatusCode execute(const EventContext &) const override;
32
33private:
36
37 StatusCode retrieveTdoPdo(const EventContext& ctx, TimeChargeType data, const std::string& tech,
38 const std::string& side, std::chrono::duration<double>& timer) const;
39 StatusCode retrieveVmm(const EventContext &, const std::string &, const std::string &, std::chrono::duration<double> &) const;
40 StatusCode retrieveT0(const EventContext &, std::chrono::duration<double> &) const;
41 std::string timestamp() const;
42
44 this, "ReadKey_tdopdo", "NswCalibDbTimeChargeData",
45 "Key of NswCalibDbTimeChargeData object containing calibration data (TDOs and PDOs)"};
47 this, "ReadKey_vmm", "NswCalibDbThresholdData",
48 "Key of NswCalibDbThresholdData object containing calibration data (VMM thresholds)"};
49 SG::ReadCondHandleKey<NswT0Data> m_readKey_t0{this, "readKey_t0", "NswT0Data", "Key of NswT0Data containing the t0 calibration data"};
50
51 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
52
53 Gaudi::Property<std::string> m_logName{this,"LogName", "LogFile", "Name of the log file. The file creating the TimeCharge log will be called <LogName>_TDO.txt, the other will be <LogName>_vmm.txt"};
54 Gaudi::Property<bool> m_isMC {this, "isMC", false, "flagging the input type"};
55
56}; // end of class
57
58#endif
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
An algorithm that can be simultaneously executed in multiple threads.
StatusCode retrieveT0(const EventContext &, std::chrono::duration< double > &) const
virtual StatusCode initialize() override
SG::ReadCondHandleKey< NswCalibDbThresholdData > m_readKey_vmm
virtual ~NswCondTestAlg() override
Gaudi::Property< bool > m_isMC
StatusCode retrieveVmm(const EventContext &, const std::string &, const std::string &, std::chrono::duration< double > &) const
SG::ReadCondHandleKey< NswT0Data > m_readKey_t0
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
StatusCode retrieveTdoPdo(const EventContext &ctx, TimeChargeType data, const std::string &tech, const std::string &side, std::chrono::duration< double > &timer) const
std::string timestamp() const
virtual StatusCode execute(const EventContext &) const override
NswCalibDbTimeChargeData::CalibDataType TimeChargeType
NswCondTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::string > m_logName
SG::ReadCondHandleKey< NswCalibDbTimeChargeData > m_readKey_tdopdo
MuonCond::CalibTechType TimeTech