ATLAS Offline Software
Loading...
Searching...
No Matches
AFP_LinkNumTranslator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef AFP_BYTESTREAM2RAWCNV_AFP_LINKNUMTRANSLATOR_H
5#define AFP_BYTESTREAM2RAWCNV_AFP_LINKNUMTRANSLATOR_H
6
7// Package includes
9
10// Framework includes
15
16// STL includes
17#include <string>
18
23class AFP_LinkNumTranslator : public extends<AthAlgTool, IAFP_LinkNumTranslator> {
24public:
25 AFP_LinkNumTranslator(const std::string& type, const std::string& name, const IInterface* parent);
26 virtual ~AFP_LinkNumTranslator() override;
27
28 virtual StatusCode initialize() override;
29 virtual StatusCode finalize() override;
30
31 // same enumeration as for Run2
32 enum LinkNums : unsigned int { kNS0=0, kNS1=1, kNS2=2, kNS3=3, kFS0=8, kFS1=9, kFS2=10, kFS3=11, kFS5=12, kFS4=13, kUnknown=99};
33
34 unsigned int translate(unsigned int origlink) const override;
35
36private:
37 Gaudi::Property<bool> m_useDB {this, "UseDB", false, "whether to use COOL DB (true) or hard-coded values (false) to obtain link numbers"};
38 Gaudi::Property<int> m_forceRunConfig {this, "ForceRunConfig", 0, "force run configuration for link translation regardless of actual run number; set to 2 for Run-2, set to 3 for Run-3; set 0 to disable"};
39
40 // Using DB is not implemented yet
41 // TODO: change based on reality
42 // SG::ReadCondHandleKey<CondAttrListCollection> m_readDBKey_AF { this, "ReadDbKey_AF", "/AFP/Config/SideA/Far/Planes", "DB folder from which to read link numbers, side A, Far" };
43 // SG::ReadCondHandleKey<CondAttrListCollection> m_readDBKey_AN { this, "ReadDbKey_AN", "/AFP/Config/SideA/Near/Planes", "DB folder from which to read link numbers, side A, Near" };
44 // SG::ReadCondHandleKey<CondAttrListCollection> m_readDBKey_CF { this, "ReadDbKey_CF", "/AFP/Config/SideC/Far/Planes", "DB folder from which to read link numbers, side C, Far" };
45 // SG::ReadCondHandleKey<CondAttrListCollection> m_readDBKey_CN { this, "ReadDbKey_CN", "/AFP/Config/SideC/Near/Planes", "DB folder from which to read link numbers, side C, Near" };
46};
47
48#endif // AFP_BYTESTREAM2RAWCNV_AFP_LINKNUMTRANSLATOR_H
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Gaudi::Property< bool > m_useDB
Gaudi::Property< int > m_forceRunConfig
virtual StatusCode initialize() override
unsigned int translate(unsigned int origlink) const override
virtual ~AFP_LinkNumTranslator() override
virtual StatusCode finalize() override
AFP_LinkNumTranslator(const std::string &type, const std::string &name, const IInterface *parent)