ATLAS Offline Software
Loading...
Searching...
No Matches
LVL1::TrigT1Run3ZDC Class Reference

level 1 ZDC trigger simulation More...

#include <TrigT1Run3ZDC.h>

Inheritance diagram for LVL1::TrigT1Run3ZDC:
Collaboration diagram for LVL1::TrigT1Run3ZDC:

Public Member Functions

virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) const override
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
virtual void setFilterPassed (bool state, const EventContext &ctx) const
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadDecorHandleKey< xAOD::ZdcModuleContainerm_zdcModuleCalibEnergyKey
const ZdcIDm_zdcId {}
SG::ReadHandleKey< ZdcLucrodDataContainerm_zldContainerName
SG::WriteHandleKey< ZdcCTPm_zdcCTPLocation
Gaudi::Property< std::string > m_lutFile
Gaudi::Property< unsigned int > m_minSampleAna
Gaudi::Property< unsigned int > m_maxSampleAna
Gaudi::Property< unsigned int > m_negHG2ndDerivThresh
Gaudi::Property< unsigned int > m_negLG2ndDerivThresh
Gaudi::Property< unsigned int > m_baselineDelta
std::shared_ptr< ZDCTriggerSimFADCm_triggerSimHGPtr
 Two data member to hold the ZDCTrigger Object that computes the LUT logic: shared ptr to ensure cleanup.
std::shared_ptr< ZDCTriggerSimFADCm_triggerSimLGPtr
std::shared_ptr< ZDCTriggerSim::FADCInputsm_hgFADC_ptr
 A data member to hold the ZDCTrigger Object that stores flash ADC input values: shared ptr to ensure cleanup.
std::shared_ptr< ZDCTriggerSim::FADCInputsm_lgFADC_ptr
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

level 1 ZDC trigger simulation

Definition at line 45 of file TrigT1Run3ZDC.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode LVL1::TrigT1Run3ZDC::execute ( const EventContext & ctx) const
overridevirtual

Definition at line 108 of file TrigT1Run3ZDC.cxx.

108 {
109
110 // create uints to hold trigger averages
111 unsigned int trigAvgAHG = 0;
112 unsigned int trigAvgCHG = 0;
113 unsigned int trigAvgALG = 0;
114 unsigned int trigAvgCLG = 0;
115
116 // create multi-dim array to store event by event flash ADC values
117 std::array<std::array<std::array<unsigned int, 24>, 4>, 2> FADCSamplesHG;
118 std::array<std::array<std::array<unsigned int, 24>, 4>, 2> FADCSamplesLG;
119
120 // create vectors to store flattened above multi
121 // dim arrays, in order to give the TriggerSimTool
122 // data in the proper format
123 std::vector<unsigned int> FADCFlattenedHG;
124 std::vector<unsigned int> FADCFlattenedLG;
125
126 // access LUCROD data
127
128 // use readhandle to retrieve lucrodCollection
129 SG::ReadHandle<ZdcLucrodDataContainer> lucrodCollection(m_zldContainerName,ctx);
130
131 for (const ZdcLucrodData *zld : *lucrodCollection) {
132
133 // get lucrod board number
134 uint32_t lucrod_id = zld->GetLucrodID();
135
136 // unpack data for each lucrod
137 for (size_t i = 0; i < zld->GetChanDataSize(); i++) {
138
139 // create channel object
140 const ZdcLucrodChannel &zlc = zld->GetChanData(i);
141
142 // figure out which channel we are reading out (0,1)
143 uint16_t lucrod_channel = zlc.id;
144
145 // variable to hold if it is a ZDC (0) or RPD (1) type
146 // lucrod
148 lucrod_id)["type"][lucrod_channel];
149
150 // trigger based on ZDC amplitudes, don't use
151 // RPD channels
152 if (type != 0) {
153 continue;
154 }
155
156 // retrieve what side, module, and gain we are reading out
158 lucrod_id)["side"][lucrod_channel];
160 lucrod_id)["module"][lucrod_channel];
162 lucrod_id)["gain"][lucrod_channel];
163
164 // Fill different flash ADC vectors for Low and High
165 // gain samples
166 if (gain == 0) {
167 unsigned int counter = 0;
168 for (const auto &sample : zlc.waveform) {
169 // fill low gain FADC samples
170 FADCSamplesLG.at((side == 1)).at(module).at(counter) = sample;
171 counter++;
172 }
173 } else if (gain == 1) {
174 unsigned int counter = 0;
175 for (const auto &sample : zlc.waveform) {
176 // fill high gain FADC samples
177 FADCSamplesHG.at((side == 1)).at(module).at(counter) = sample;
178 counter++;
179 }
180 }
181 // retrieve Trig Avg amp for debugging
182 // from both LG and HG modules
183 if (side * gain * module == 3) {
184 trigAvgAHG = zld->GetTrigAvgA();
185 trigAvgCHG = zld->GetTrigAvgC();
186 } else if (side * module == 3) {
187 trigAvgALG = zld->GetTrigAvgA();
188 trigAvgCLG = zld->GetTrigAvgC();
189 }
190 }
191 } // end lucrod loop
192
193 // unpack FADC data into one long vector for both
194 // high and low gain
195 for (int side : {1, 0}) {
196 for (int module : {0, 1, 2, 3}) {
197 for (const auto sample : FADCSamplesLG.at(side).at(module)) {
198 FADCFlattenedLG.push_back(sample);
199 }
200 }
201 }
202
203 for (int side : {1, 0}) {
204 for (int module : {0, 1, 2, 3}) {
205 for (const auto sample : FADCSamplesHG.at(side).at(module)) {
206 FADCFlattenedHG.push_back(sample);
207 }
208 }
209 }
210
211 // set data in Trigger Sim Object
212 m_hgFADC_ptr->setData(FADCFlattenedHG);
213 m_lgFADC_ptr->setData(FADCFlattenedLG);
214
215 // call ZDCTriggerSim to actually get L1 decisions
216 unsigned int wordOutHG = m_triggerSimHGPtr->simLevel1Trig(m_hgFADC_ptr);
217 unsigned int wordOutLG = m_triggerSimLGPtr->simLevel1Trig(m_lgFADC_ptr);
218
219 // convert int to bitset for ZDC Triggers
220 std::bitset<3> binhg(wordOutHG);
221
222 // convert int to bitset for ZDC ALT Trigggers
223 std::bitset<3> binlg(wordOutLG);
224
225 // ZDC L1 items are located on CTPIN SLOT 9
226 // Each slot holds 4 connectors that each carry a 32 bit trigger word
227 // ZDC HG items are located on Connector 1 (CTPCAL)
228 // at bits 25, 26, 27
229 // ZDC LG (UCC) items are located on Connector 3 (NIM3)
230 // at bits 28, 29, 30
231 // for more info see
232 // twiki.cern.ch/twiki/bin/view/Atlas/LevelOneCentralTriggerSetup#CTPIN_Slot_9
233
234 // load HG output into trigger word on correct bits
235 unsigned int word0 = 0;
236 word0 += (binhg[0] << 25);
237 word0 += (binhg[1] << 26);
238 word0 += (binhg[2] << 27);
239
240 // load LG output into trigger word on correct bits
241 unsigned int word1 = 0;
242 word1 += (binlg[0] << 28);
243 word1 += (binlg[1] << 29);
244 word1 += (binlg[2] << 30);
245
246 // form CTP obejct
247 SG::WriteHandle<ZdcCTP> zdcCTP = SG::makeHandle(m_zdcCTPLocation,ctx);
248
249 // record CTP object
250 ATH_CHECK(zdcCTP.record(std::make_unique<ZdcCTP>(word0, word1)));
251
252 // debug output
254 "Stored ZDC CTP object with words "
255 << std::endl
256 << std::hex << word0 << " from hgLUTOutput: " << std::dec << wordOutHG
257 << " AvgAmpA: " << trigAvgAHG << " C: " << trigAvgCHG << std::endl
258 << std::hex << word1 << " from lgLUTOutput: " << std::dec << wordOutLG
259 << " AvgAmpA: " << trigAvgALG << " C: " << trigAvgCLG);
260
261 return StatusCode::SUCCESS;
262}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
struct ZdcLucrodChannelType ZdcLucrodChannel
std::shared_ptr< ZDCTriggerSimFADC > m_triggerSimLGPtr
SG::ReadHandleKey< ZdcLucrodDataContainer > m_zldContainerName
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...
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 ...
std::shared_ptr< ZDCTriggerSim::FADCInputs > m_lgFADC_ptr
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
static const ZdcLucrodMapRun3 * getInstance()
const nlohmann::json & getLucrod(int i) const
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
setWord1 uint16_t
setEventNumber uint32_t
std::vector< uint16_t > waveform

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ initialize()

StatusCode LVL1::TrigT1Run3ZDC::initialize ( )
overridevirtual

Definition at line 21 of file TrigT1Run3ZDC.cxx.

21 {
22 ATH_CHECK(m_zdcCTPLocation.initialize());
24 ATH_CHECK(m_zldContainerName.initialize());
25 // Find the full path to filename:
27 ATH_MSG_INFO("Reading file " << file);
28 std::ifstream fin(file.c_str());
29 if (!fin) {
30 ATH_MSG_ERROR("Can not read file: " << file);
31 return StatusCode::FAILURE;
32 }
33 json data = json::parse(fin);
34
35 // Will eventually obtain LUTs from COOL, for now obtain them from calibration
36 // area A data member to hold the side A LUT values
37 std::array<unsigned int, 4096> sideALUTHG =
38 data["LucrodHighGain"]["LUTs"]["sideA"];
39 // A data member to hold the side C LUT values
40 std::array<unsigned int, 4096> sideCLUTHG =
41 data["LucrodHighGain"]["LUTs"]["sideC"];
42 // A data member to hold the Combined LUT values
43 std::array<unsigned int, 256> combLUTHG =
44 data["LucrodHighGain"]["LUTs"]["comb"];
45 // area A data member to hold the side A LUT values
46 std::array<unsigned int, 4096> sideALUTLG =
47 data["LucrodLowGain"]["LUTs"]["sideA"];
48 // A data member to hold the side C LUT values
49 std::array<unsigned int, 4096> sideCLUTLG =
50 data["LucrodLowGain"]["LUTs"]["sideC"];
51 // A data member to hold the Combined LUT values
52 std::array<unsigned int, 256> combLUTLG =
53 data["LucrodLowGain"]["LUTs"]["comb"];
54
55 // Access Raw Lucrod Data
56 const ZdcID *zdcId = nullptr;
57 if (detStore()->retrieve(zdcId).isFailure()) {
58 msg(MSG::ERROR)
59 << "execute: Could not retrieve ZdcID object from the detector store"
60 << endmsg;
61 return StatusCode::FAILURE;
62 } else {
63 msg(MSG::DEBUG) << "execute: retrieved ZdcID" << endmsg;
64 }
65 m_zdcId = zdcId;
66
67 std::array<std::array<unsigned int, 4>, 2> deriv2ndHGThresh;
68 std::array<std::array<unsigned int, 4>, 2> deriv2ndLGThresh;
69
70 for (unsigned int side : {0, 1}) {
71 for (unsigned int module : {0, 1, 2, 3}) {
72 deriv2ndHGThresh[side][module] = m_negHG2ndDerivThresh;
73 deriv2ndLGThresh[side][module] = m_negLG2ndDerivThresh;
74 }
75 }
76
77 // We disable the EM module in the LG trigger
78 //
79 deriv2ndLGThresh[0][0] = 4095;
80 deriv2ndLGThresh[1][0] = 4095;
81
82 std::cout << "Trigger simulation will use sample indices: " << m_minSampleAna
83 << " through " << m_maxSampleAna
84 << ", and baselinDelta = " << m_baselineDelta << std::endl;
85
86 // Construct Simulation Objects
87 m_triggerSimHGPtr = std::make_shared<ZDCTriggerSimFADC>(
88 ZDCTriggerSimFADC(sideALUTHG, sideCLUTHG, combLUTHG, deriv2ndHGThresh,
90
91 m_triggerSimLGPtr = std::make_shared<ZDCTriggerSimFADC>(
92 ZDCTriggerSimFADC(sideALUTLG, sideCLUTLG, combLUTLG, deriv2ndLGThresh,
94
96 std::make_shared<ZDCTriggerSim::FADCInputs>(ZDCTriggerSim::FADCInputs());
98 std::make_shared<ZDCTriggerSim::FADCInputs>(ZDCTriggerSim::FADCInputs());
99
100 ATH_MSG_DEBUG("TrigT1Run3ZDC initilized");
101 return StatusCode::SUCCESS;
102}
#define endmsg
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
nlohmann::json json
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
const ServiceHandle< StoreGateSvc > & detStore() const
Gaudi::Property< unsigned int > m_maxSampleAna
Gaudi::Property< unsigned int > m_negLG2ndDerivThresh
Gaudi::Property< unsigned int > m_minSampleAna
Gaudi::Property< std::string > m_lutFile
Gaudi::Property< unsigned int > m_negHG2ndDerivThresh
const ZdcID * m_zdcId
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleCalibEnergyKey
Gaudi::Property< unsigned int > m_baselineDelta
ZDCTriggerSimData< unsigned int, 8 *24, 12, TFADCInputs > FADCInputs
retrieve(aClass, aKey=None)
Definition PyKernel.py:110
TFile * file

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isClonable()

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
#define ATH_MSG_WARNING(x)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_baselineDelta

Gaudi::Property<unsigned int> LVL1::TrigT1Run3ZDC::m_baselineDelta
private
Initial value:
{
this, "BaselineDelta", 3,
"Parameter to take out average offset from raw Flash ADC values"}

Definition at line 87 of file TrigT1Run3ZDC.h.

87 {
88 this, "BaselineDelta", 3,
89 "Parameter to take out average offset from raw Flash ADC values"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_hgFADC_ptr

std::shared_ptr<ZDCTriggerSim::FADCInputs> LVL1::TrigT1Run3ZDC::m_hgFADC_ptr
private

A data member to hold the ZDCTrigger Object that stores flash ADC input values: shared ptr to ensure cleanup.

Definition at line 100 of file TrigT1Run3ZDC.h.

◆ m_lgFADC_ptr

std::shared_ptr<ZDCTriggerSim::FADCInputs> LVL1::TrigT1Run3ZDC::m_lgFADC_ptr
private

Definition at line 101 of file TrigT1Run3ZDC.h.

◆ m_lutFile

Gaudi::Property<std::string> LVL1::TrigT1Run3ZDC::m_lutFile
private
Initial value:
{
this, "filepath_LUT", "TrigT1ZDC/zdcRun3T1LUT_v1_30_05_2023.json",
"path to LUT file"}

Definition at line 74 of file TrigT1Run3ZDC.h.

74 {
75 this, "filepath_LUT", "TrigT1ZDC/zdcRun3T1LUT_v1_30_05_2023.json",
76 "path to LUT file"};

◆ m_maxSampleAna

Gaudi::Property<unsigned int> LVL1::TrigT1Run3ZDC::m_maxSampleAna
private
Initial value:
{
this, "MaxSampleAna",154, "Last Sample in ZDC LUCROD Analysis window"}

Definition at line 79 of file TrigT1Run3ZDC.h.

79 {
80 this, "MaxSampleAna",154, "Last Sample in ZDC LUCROD Analysis window"};

◆ m_minSampleAna

Gaudi::Property<unsigned int> LVL1::TrigT1Run3ZDC::m_minSampleAna
private
Initial value:
{
this, "MinSampleAna", 7, "First Sample in ZDC LUCROD Analysis window"}

Definition at line 77 of file TrigT1Run3ZDC.h.

77 {
78 this, "MinSampleAna", 7, "First Sample in ZDC LUCROD Analysis window"};

◆ m_negHG2ndDerivThresh

Gaudi::Property<unsigned int> LVL1::TrigT1Run3ZDC::m_negHG2ndDerivThresh
private
Initial value:
{
this, "NegHG2ndDerivThresh", 45,
"Negative 2nd Derivative Threshold for High Gain LUCROD Channel"}

Definition at line 81 of file TrigT1Run3ZDC.h.

81 {
82 this, "NegHG2ndDerivThresh", 45,
83 "Negative 2nd Derivative Threshold for High Gain LUCROD Channel"};

◆ m_negLG2ndDerivThresh

Gaudi::Property<unsigned int> LVL1::TrigT1Run3ZDC::m_negLG2ndDerivThresh
private
Initial value:
{
this, "NegLG2ndDerivThresh", 15,
"Negative 2nd Derivative Threshold for Low Gain LUCROD Channel"}

Definition at line 84 of file TrigT1Run3ZDC.h.

84 {
85 this, "NegLG2ndDerivThresh", 15,
86 "Negative 2nd Derivative Threshold for Low Gain LUCROD Channel"};

◆ m_triggerSimHGPtr

std::shared_ptr<ZDCTriggerSimFADC> LVL1::TrigT1Run3ZDC::m_triggerSimHGPtr
private

Two data member to hold the ZDCTrigger Object that computes the LUT logic: shared ptr to ensure cleanup.

Definition at line 94 of file TrigT1Run3ZDC.h.

◆ m_triggerSimLGPtr

std::shared_ptr<ZDCTriggerSimFADC> LVL1::TrigT1Run3ZDC::m_triggerSimLGPtr
private

Definition at line 95 of file TrigT1Run3ZDC.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_zdcCTPLocation

SG::WriteHandleKey<ZdcCTP> LVL1::TrigT1Run3ZDC::m_zdcCTPLocation
private
Initial value:
{this, "ZdcCTPLocation",
"Write handle key for ZdcCTP"}
static const std::string ZdcCTPLocation

Definition at line 69 of file TrigT1Run3ZDC.h.

69 {this, "ZdcCTPLocation",
71 "Write handle key for ZdcCTP"};

◆ m_zdcId

const ZdcID* LVL1::TrigT1Run3ZDC::m_zdcId {}
private

Definition at line 62 of file TrigT1Run3ZDC.h.

62{};

◆ m_zdcModuleCalibEnergyKey

SG::ReadDecorHandleKey<xAOD::ZdcModuleContainer> LVL1::TrigT1Run3ZDC::m_zdcModuleCalibEnergyKey
private
Initial value:
{
this, "ZdcModuleCalibEnergyKey", "ZdcModules.CalibEnergy",
"ReadHandleKey for Zdc CalibEnergy AuxData"}

Definition at line 57 of file TrigT1Run3ZDC.h.

57 {
58 this, "ZdcModuleCalibEnergyKey", "ZdcModules.CalibEnergy",
59 "ReadHandleKey for Zdc CalibEnergy AuxData"};

◆ m_zldContainerName

SG::ReadHandleKey<ZdcLucrodDataContainer> LVL1::TrigT1Run3ZDC::m_zldContainerName
private
Initial value:
{
this, "ZdcLucrodDataContainerKey", TrigT1CaloDefs::ZdcLucrodDataContainer,
"Read Handle key for ZdcLucrodDataContainer"}
static const std::string ZdcLucrodDataContainer

Definition at line 64 of file TrigT1Run3ZDC.h.

64 {
65 this, "ZdcLucrodDataContainerKey", TrigT1CaloDefs::ZdcLucrodDataContainer,
66 "Read Handle key for ZdcLucrodDataContainer"};

The documentation for this class was generated from the following files: