ATLAS Offline Software
AFPDBTester.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef AFP_DBTOOLS_AFPDBTESTER_H
5 #define AFP_DBTOOLS_AFPDBTESTER_H
6 
9 #include "GaudiKernel/ServiceHandle.h"
10 #include "AthenaKernel/CondCont.h"
11 #include <string>
12 
15 
17 #include "GaudiKernel/EventContext.h"
18 
19 #include "nlohmann/json.hpp"
20 
25 class AFPDBTester : public AthAlgorithm {
26 public:
27  AFPDBTester(const std::string& name, ISvcLocator* pSvcLocator);
28  virtual ~AFPDBTester() override;
29 
30  virtual StatusCode initialize() override;
31  virtual StatusCode execute() override;
32  virtual StatusCode finalize() override;
33 
34 private:
35  SG::ReadCondHandleKey<CondAttrListCollection> m_rch_locshiftX {this, "locshiftXkey", "/FWD/Onl/AFP/Align/Local", "read cond handle local shiftXkey"};
36  SG::ReadCondHandleKey<CondAttrListCollection> m_rch_globshiftX {this, "globshiftXkey", "/FWD/Onl/AFP/Align/Global", "read cond handle global shiftXkey"};
37  SG::ReadCondHandleKey<CondAttrListCollection> m_rch_loctof {this, "locToFkey", "/FWD/Onl/AFP/ToFParameters/Local", "read cond handle local ToF"};
38  SG::ReadCondHandleKey<CondAttrListCollection> m_rch_vtxtof {this, "vtxToFkey", "/FWD/Onl/AFP/ToFParameters/Vertex", "read cond handle vertex ToF"};
39  SG::ReadCondHandleKey<AthenaAttributeList> m_readKey { this, "BeamSpotFolder", "/Indet/Beampos", "DB folder from which to read raw beam spot data" };
41 
42 };
43 
44 #ifndef __CINT__
45  CLASS_DEF( AFPDBTester , 205749847 , 1 )
46 #endif
47 
48 #endif // AFP_DBTOOLS_AFPDBTESTER_H
AFPDBTester::AFPDBTester
AFPDBTester(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AFPDBTester.cxx:7
CondCont.h
Hold mappings of ranges to condition objects.
AFPDBTester::initialize
virtual StatusCode initialize() override
Definition: AFPDBTester.cxx:18
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
AFPDBTester::m_rch_loctof
SG::ReadCondHandleKey< CondAttrListCollection > m_rch_loctof
Definition: AFPDBTester.h:37
AFPDBTester::m_rch_locshiftX
SG::ReadCondHandleKey< CondAttrListCollection > m_rch_locshiftX
Definition: AFPDBTester.h:35
AFPDBTester::m_rch_vtxtof
SG::ReadCondHandleKey< CondAttrListCollection > m_rch_vtxtof
Definition: AFPDBTester.h:38
AthenaAttributeList.h
ReadCondHandle.h
AFPDBTester::execute
virtual StatusCode execute() override
Definition: AFPDBTester.cxx:44
AFPDBTester
Definition: AFPDBTester.h:25
AthAlgorithm.h
AFPDBTester::m_rch_globshiftX
SG::ReadCondHandleKey< CondAttrListCollection > m_rch_globshiftX
Definition: AFPDBTester.h:36
AFPDBTester::m_readKey
SG::ReadCondHandleKey< AthenaAttributeList > m_readKey
Definition: AFPDBTester.h:39
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
AFPDBTester::m_key
SG::ReadCondHandleKey< CaloLocalHadCoeff > m_key
Definition: AFPDBTester.h:40
SG::ReadCondHandleKey< CondAttrListCollection >
CaloLocalHadCoeff.h
AFPDBTester::finalize
virtual StatusCode finalize() override
Definition: AFPDBTester.cxx:38
AFPDBTester::~AFPDBTester
virtual ~AFPDBTester() override
Definition: AFPDBTester.cxx:13
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64