ATLAS Offline Software
gFEXCondAlgo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 //***************************************************************************
5 // Interface for gFEXCondAlgo - Tool to read the COOL DB for gFEX
6 // -------------------
7 // begin : 23 10 2024
8 // email : jared.little@cern.ch
9 //***************************************************************************
10 
11 #ifndef gFEXCondAlgo_H
12 #define gFEXCondAlgo_H
13 
15 #include "AthenaKernel/CLASS_DEF.h"
20 
21 namespace LVL1
22 {
23 
25  {
26 
27  public:
29  gFEXCondAlgo(const std::string &name, ISvcLocator *svc);
30 
31  virtual StatusCode initialize() override;
32 
33  virtual StatusCode execute(const EventContext &) const override;
34  virtual bool isReEntrant() const override final { return false; }
35 
36  private:
37  // Default noise-cut parameters, in case DB values aren't valid
38  constexpr static std::array<int, 12> m_AslopesDefault = {891, 905, 903, 954, 1128, 1106, 1093, 1034, 940, 887, 877, 874};
39  constexpr static std::array<int, 12> m_BslopesDefault = {880, 869, 888, 923, 1011, 1060, 1062, 1109, 941, 912, 904, 882};
40  constexpr static std::array<int, 12> m_CslopesDefault = {1024, 1024, 1306, 1011, 887, 878, 860, 888, 975, 1252, 1024, 1024};
41  constexpr static std::array<int, 12> m_AnoiseCutsDefault = {-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100};
42  constexpr static std::array<int, 12> m_BnoiseCutsDefault = {-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100};
43  constexpr static std::array<int, 12> m_CnoiseCutsDefault = {176, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 176};
44 
45  // Key for writing CondHandles
46  SG::WriteCondHandleKey<gFEXDBCondData> m_gFEXDBParamsKey{this, "gFEXDBParamsKey", "gFEXDBParams", "Output for gFEX DB noise parameters"};
47 
48  // Key for reading CondHandles
49  SG::ReadCondHandleKey<CondAttrListCollection> m_GfexNoiseCutsKey{this, "GfexNoiseCuts", "", "Key to store GfexNoiseCuts DB path"};
50 
51  // STILL NEED TO CHECK TIME
52  UnsignedIntegerProperty m_dbBeginTimestamp{this, "BeginTimestamp", 1729591852, "Earliest timestamp that db parameters will be loaded. Default is start of 2023-10-27"};
53 
54  Gaudi::Property<bool> m_isMC {this, "IsMC", false, "For MC, always access the DB"};
55  };
56 
57 } // END OF LVL1 NAMESPACE
58 
59 #endif
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
WriteCondHandleKey.h
LVL1::gFEXCondAlgo::m_GfexNoiseCutsKey
SG::ReadCondHandleKey< CondAttrListCollection > m_GfexNoiseCutsKey
Definition: gFEXCondAlgo.h:49
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::gFEXCondAlgo::isReEntrant
virtual bool isReEntrant() const override final
Definition: gFEXCondAlgo.h:34
LVL1::gFEXCondAlgo::m_gFEXDBParamsKey
SG::WriteCondHandleKey< gFEXDBCondData > m_gFEXDBParamsKey
Definition: gFEXCondAlgo.h:46
LVL1::gFEXCondAlgo::m_BslopesDefault
constexpr static std::array< int, 12 > m_BslopesDefault
Definition: gFEXCondAlgo.h:39
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
LVL1::gFEXCondAlgo::gFEXCondAlgo
gFEXCondAlgo(const std::string &name, ISvcLocator *svc)
Constructors.
Definition: gFEXCondAlgo.cxx:17
LVL1::gFEXCondAlgo::execute
virtual StatusCode execute(const EventContext &) const override
Definition: gFEXCondAlgo.cxx:29
LVL1::gFEXCondAlgo
Definition: gFEXCondAlgo.h:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LVL1::gFEXCondAlgo::m_isMC
Gaudi::Property< bool > m_isMC
Definition: gFEXCondAlgo.h:54
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
LVL1::gFEXCondAlgo::m_dbBeginTimestamp
UnsignedIntegerProperty m_dbBeginTimestamp
Definition: gFEXCondAlgo.h:52
TrigConf::name
Definition: HLTChainList.h:35
LVL1::gFEXCondAlgo::m_CslopesDefault
constexpr static std::array< int, 12 > m_CslopesDefault
Definition: gFEXCondAlgo.h:40
ReadCondHandleKey.h
AthReentrantAlgorithm.h
LVL1::gFEXCondAlgo::m_AnoiseCutsDefault
constexpr static std::array< int, 12 > m_AnoiseCutsDefault
Definition: gFEXCondAlgo.h:41
gFEXDBCondData.h
SG::ReadCondHandleKey< CondAttrListCollection >
LVL1::gFEXCondAlgo::m_CnoiseCutsDefault
constexpr static std::array< int, 12 > m_CnoiseCutsDefault
Definition: gFEXCondAlgo.h:43
SG::WriteCondHandleKey
Definition: WriteCondHandleKey.h:20
LVL1::gFEXCondAlgo::m_BnoiseCutsDefault
constexpr static std::array< int, 12 > m_BnoiseCutsDefault
Definition: gFEXCondAlgo.h:42
LVL1::gFEXCondAlgo::m_AslopesDefault
constexpr static std::array< int, 12 > m_AslopesDefault
Definition: gFEXCondAlgo.h:38
CLASS_DEF.h
macros to associate a CLID to a type
LVL1::gFEXCondAlgo::initialize
virtual StatusCode initialize() override
Definition: gFEXCondAlgo.cxx:19