ATLAS Offline Software
Loading...
Searching...
No Matches
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
20
21namespace 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
35 private:
36 // Default noise-cut parameters, in case DB values aren't valid
37 constexpr static std::array<int, 12> m_AslopesDefault = {891, 905, 903, 954, 1128, 1106, 1093, 1034, 940, 887, 877, 874};
38 constexpr static std::array<int, 12> m_BslopesDefault = {880, 869, 888, 923, 1011, 1060, 1062, 1109, 941, 912, 904, 882};
39 constexpr static std::array<int, 12> m_CslopesDefault = {1024, 1024, 1306, 1011, 887, 878, 860, 888, 975, 1252, 1024, 1024};
40 constexpr static std::array<int, 12> m_AnoiseCutsDefault = {-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100};
41 constexpr static std::array<int, 12> m_BnoiseCutsDefault = {-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100};
42 constexpr static std::array<int, 12> m_CnoiseCutsDefault = {176, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 176};
43
44 // Key for writing CondHandles
45 SG::WriteCondHandleKey<gFEXDBCondData> m_gFEXDBParamsKey{this, "gFEXDBParamsKey", "gFEXDBParams", "Output for gFEX DB noise parameters"};
46
47 // Key for reading CondHandles
48 SG::ReadCondHandleKey<CondAttrListCollection> m_GfexNoiseCutsKey{this, "GfexNoiseCuts", "", "Key to store GfexNoiseCuts DB path"};
49
50 UnsignedIntegerProperty m_dbBeginTimestamp{this, "BeginTimestamp", 1729591852, "Earliest timestamp that db parameters will be loaded. Default is start of 2024-10-22"};
51
52 Gaudi::Property<bool> m_isMC {this, "IsMC", false, "For MC, always access the DB"};
53 };
54
55} // END OF LVL1 NAMESPACE
56
57#endif
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
macros to associate a CLID to a type
Base class for conditions algorithms.
static constexpr std::array< int, 12 > m_AslopesDefault
virtual StatusCode initialize() override
static constexpr std::array< int, 12 > m_BslopesDefault
virtual StatusCode execute(const EventContext &) const override
SG::ReadCondHandleKey< CondAttrListCollection > m_GfexNoiseCutsKey
static constexpr std::array< int, 12 > m_BnoiseCutsDefault
static constexpr std::array< int, 12 > m_CslopesDefault
SG::WriteCondHandleKey< gFEXDBCondData > m_gFEXDBParamsKey
gFEXCondAlgo(const std::string &name, ISvcLocator *svc)
Constructors.
UnsignedIntegerProperty m_dbBeginTimestamp
Gaudi::Property< bool > m_isMC
static constexpr std::array< int, 12 > m_CnoiseCutsDefault
static constexpr std::array< int, 12 > m_AnoiseCutsDefault
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...