ATLAS Offline Software
Loading...
Searching...
No Matches
TrigT1Run3ZDC.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
14
15#ifndef TRIG_T1_RUN_3_ZDC_H
16#define TRIG_T1_RUN_3_ZDC_H
17
18
21#include "GaudiKernel/ServiceHandle.h"
22#include "GaudiKernel/ToolHandle.h"
28
29// Input Containers
32#include "ZdcIdentifier/ZdcID.h"
34
35// Outputs to CTP
39#include "nlohmann/json.hpp"
40
41#include <string>
42#include <memory>
43
44
45namespace LVL1 {
48
49 public:
50 // This is a standard algorithm constructor
51 using AthReentrantAlgorithm::AthReentrantAlgorithm;
52
53 // These are the functions inherited from Algorithm
54 virtual StatusCode initialize() override;
55 virtual StatusCode execute(const EventContext& ctx) const override;
56
57private:
58 /* Input handles */
60 this, "ZdcModuleCalibEnergyKey", "ZdcModules.CalibEnergy",
61 "ReadHandleKey for Zdc CalibEnergy AuxData"};
62
63 // Access Bytestream data from Lucrod
64 const ZdcID* m_zdcId{};
65
67 this, "ZdcLucrodDataContainerKey", TrigT1CaloDefs::ZdcLucrodDataContainer,
68 "Read Handle key for ZdcLucrodDataContainer"};
69
70 /* Output handles */
73 "Write handle key for ZdcCTP"};
74
75 /* properties */
76 Gaudi::Property<std::string> m_lutFile{
77 this, "filepath_LUT", "TrigT1ZDC/zdcRun3T1LUT_v1_30_05_2023.json",
78 "path to LUT file"};
79 Gaudi::Property<unsigned int> m_minSampleAna{
80 this, "MinSampleAna", 7, "First Sample in ZDC LUCROD Analysis window"};
81 Gaudi::Property<unsigned int> m_maxSampleAna{
82 this, "MaxSampleAna",154, "Last Sample in ZDC LUCROD Analysis window"};
83 Gaudi::Property<unsigned int> m_negHG2ndDerivThresh{
84 this, "NegHG2ndDerivThresh", 45,
85 "Negative 2nd Derivative Threshold for High Gain LUCROD Channel"};
86 Gaudi::Property<unsigned int> m_negLG2ndDerivThresh{
87 this, "NegLG2ndDerivThresh", 15,
88 "Negative 2nd Derivative Threshold for Low Gain LUCROD Channel"};
89 Gaudi::Property<unsigned int> m_baselineDelta{
90 this, "BaselineDelta", 3,
91 "Parameter to take out average offset from raw Flash ADC values"};
92
96 std::shared_ptr<ZDCTriggerSimFADC> m_triggerSimHGPtr;
97 std::shared_ptr<ZDCTriggerSimFADC> m_triggerSimLGPtr;
98
102 std::shared_ptr<ZDCTriggerSim::FADCInputs> m_hgFADC_ptr;
103 std::shared_ptr<ZDCTriggerSim::FADCInputs> m_lgFADC_ptr;
104};
105} // namespace LVL1
106
107#endif
An STL vector of pointers that by default owns its pointed-to elements.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Handle class for reading a decoration on an object.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
A tool to make L1 decision using LUTs.
An algorithm that can be simultaneously executed in multiple threads.
static const std::string ZdcCTPLocation
static const std::string ZdcLucrodDataContainer
level 1 ZDC trigger simulation
Gaudi::Property< unsigned int > m_maxSampleAna
Gaudi::Property< unsigned int > m_negLG2ndDerivThresh
std::shared_ptr< ZDCTriggerSimFADC > m_triggerSimLGPtr
SG::ReadHandleKey< ZdcLucrodDataContainer > m_zldContainerName
virtual StatusCode initialize() override
Gaudi::Property< unsigned int > m_minSampleAna
SG::WriteHandleKey< ZdcCTP > m_zdcCTPLocation
std::shared_ptr< ZDCTriggerSimFADC > m_triggerSimHGPtr
Two data member to hold the ZDCTrigger Object that computes the LUT logic: shared ptr to ensure clean...
Gaudi::Property< std::string > m_lutFile
std::shared_ptr< ZDCTriggerSim::FADCInputs > m_hgFADC_ptr
A data member to hold the ZDCTrigger Object that stores flash ADC input values: shared ptr to ensure ...
Gaudi::Property< unsigned int > m_negHG2ndDerivThresh
const ZdcID * m_zdcId
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleCalibEnergyKey
Gaudi::Property< unsigned int > m_baselineDelta
std::shared_ptr< ZDCTriggerSim::FADCInputs > m_lgFADC_ptr
virtual StatusCode execute(const EventContext &ctx) const override
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition ZdcID.h:25
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...