ATLAS Offline Software
Loading...
Searching...
No Matches
CTPResult_v1.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef XAODTRIGGER_VERSIONS_CTPRESULT_V1_H
6#define XAODTRIGGER_VERSIONS_CTPRESULT_V1_H
7
8// System include(s):
9#include <cstdint>
10#include <vector>
11
12// EDM include(s):
14
15namespace xAOD {
16
22
24
25 public:
26
32 std::vector< uint32_t > tipWords{0}; // Trigger input words for the bunch crossing
33 std::vector< uint32_t > tbpWords{0}; // Trigger before prescale words for the bunch crossing
34 std::vector< uint32_t > tapWords{0}; // Trigger after prescale words for the bunch crossing
35 std::vector< uint32_t > tavWords{0}; // Trigger after veto words for the bunch crossing
36 };
37
43
48 void setCtpVersionNumber(const uint32_t ctpNumber);
49
55
61
67
73
79
84 uint32_t L1ID() const;
85
90 uint32_t BCID() const;
91
97
103
108 void setHeaderMarker(const uint32_t word);
109
114 void setHeaderSize(const uint32_t word);
115
121
126 void setSourceID(const uint32_t word);
127
132 void setRunNumber(const uint32_t word);
133
138 void setL1ID(const uint32_t word);
139
144 void setBCID(const uint32_t word);
145
150 void setTriggerType(const uint32_t word);
151
156 void setEventType(const uint32_t word);
157
162 const CTPResult_v1::CTPBunchCrossing getBC(const int bunch=-1) const;
163
168 const std::vector<uint32_t> header() const;
169
181 void setHeader(const uint32_t marker, const uint32_t version, const uint32_t sourceid, const uint32_t l1id=0, const uint32_t runNum=0, const uint32_t bcid=0, const uint32_t trigType=0, const uint32_t evtType=0);
182
187 const std::vector<uint32_t> trailer() const;
188
197 void setTrailer(const uint32_t numData, const uint32_t errStat=0, const uint32_t infoStat=0, const uint32_t numStat=2, const uint32_t statPos=1);
198
204
209 void setNumberOfBunches(const uint32_t nBCs);
210
216
221 void setL1AcceptBunchPosition(const uint32_t pos);
222
227 const std::vector< std::vector< uint32_t > >& tipWords() const;
228
233 void setTIPWords(const std::vector< std::vector< uint32_t > >& words);
234
239 const std::vector< std::vector< uint32_t > >& tbpWords() const;
240
245 void setTBPWords(const std::vector< std::vector< uint32_t > >& words);
246
251 const std::vector< std::vector< uint32_t > >& tapWords() const;
252
257 void setTAPWords(const std::vector< std::vector< uint32_t > >& words);
258
263 const std::vector< std::vector< uint32_t > >& tavWords() const;
264
269 void setTAVWords(const std::vector< std::vector< uint32_t > >& words);
270
276
281 void setTimeSec(const uint32_t sec);
282
288
293 void setTimeNanoSec(const uint32_t nano);
294
300
305 void setNumberOfAdditionalWords(const uint32_t nExtraWords);
306
311 const std::vector< uint32_t >& additionalWords() const;
312
317 void setAdditionalWords(const std::vector< uint32_t >& words);
318
324
329 void setTurnCounter(const uint32_t val);
330
335 std::vector< uint32_t > getTIPWords(const int bunchPosition=-1) const;
336
341 std::vector< uint32_t > getTBPWords(const int bunchPosition=-1) const;
342
347 std::vector< uint32_t > getTAPWords(const int bunchPosition=-1) const;
348
353 std::vector< uint32_t > getTAVWords(const int bunchPosition=-1) const;
354
360
366
372
378
385
390 void setErrorStatus(const uint32_t word);
391
396 void setInfoStatus(const uint32_t word);
397
402 void setNumStatusWords(const uint32_t word);
403
409 void setStatusPosition(const uint32_t word);
410
415 void setNumDataWords(const uint32_t num);
416
417 }; // class CTPResult_v1
418
419} // namespace xAOD
420
421#endif // XAODTRIGGER_VERSIONS_CTPRESULT_V1_H
422
423
Base class for elements of a container that can have aux data.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
This is the trigger result for each item before prescale, after prescale and after veto.
void setTimeSec(const uint32_t sec)
Set the time in seconds.
void setHeaderFormatVersion(const uint32_t word)
Set the format version of the header.
uint32_t numDataWords() const
Retrieve the number of data words.
void setTAVWords(const std::vector< std::vector< uint32_t > > &words)
Set the TAV words for all bunch crossings.
void setEventType(const uint32_t word)
Set the LVL1 event type.
uint32_t L1ID() const
Retrieve the extended LVL1 ID.
const std::vector< std::vector< uint32_t > > & tbpWords() const
Get the TBP words for all bunch crossings.
void setInfoStatus(const uint32_t word)
Set the info status word.
uint32_t numStatusWords() const
Retrieve the number of status words in the trailer.
const std::vector< std::vector< uint32_t > > & tapWords() const
Get the TAP words for all bunch crossings.
std::vector< uint32_t > getTBPWords(const int bunchPosition=-1) const
Get the TBP (Trigger Before Prescale) words.
void setNumberOfBunches(const uint32_t nBCs)
Set the number of bunch crossings.
uint32_t infoStatus() const
Retrieve the info status word.
uint32_t headerSize() const
Retrieve the number of words in the header.
void setHeader(const uint32_t marker, const uint32_t version, const uint32_t sourceid, const uint32_t l1id=0, const uint32_t runNum=0, const uint32_t bcid=0, const uint32_t trigType=0, const uint32_t evtType=0)
Set the header words.
void setHeaderSize(const uint32_t word)
Set the number of words in the header.
void setTAPWords(const std::vector< std::vector< uint32_t > > &words)
Set the TAP words for all bunch crossings.
std::vector< uint32_t > getTAPWords(const int bunchPosition=-1) const
Get the TAP (Trigger After Prescale) words.
uint32_t triggerType() const
Retrieve the LVL1 trigger type.
uint32_t runNumber() const
Retrieve the run number.
uint32_t statusPosition() const
Retrieve the position of status information in the ROD.
uint32_t numberOfAdditionalWords() const
Get the number of additional data words.
uint32_t BCID() const
Retrieve the bunch crossing ID.
void setTBPWords(const std::vector< std::vector< uint32_t > > &words)
Set the TBP words for all bunch crossings.
void setAdditionalWords(const std::vector< uint32_t > &words)
Set the additional data words.
const std::vector< uint32_t > & additionalWords() const
Get the additional data words.
void setNumStatusWords(const uint32_t word)
Set the number of status words in the trailer.
uint32_t headerFormatVersion() const
Retrieve the format version of the header.
void setHeaderMarker(const uint32_t word)
Set the header marker word.
const std::vector< uint32_t > trailer() const
Get the trailer words.
void setRunNumber(const uint32_t word)
Set the run number.
uint32_t errorStatus() const
Retrieve the error status word.
void setTurnCounter(const uint32_t val)
Set the turn counter.
void setTriggerType(const uint32_t word)
Set the LVL1 trigger type.
void setBCID(const uint32_t word)
Set the bunch crossing ID.
uint32_t timeSec() const
Get the time in seconds.
const std::vector< std::vector< uint32_t > > & tipWords() const
Get the TIP words for all bunch crossings.
const std::vector< std::vector< uint32_t > > & tavWords() const
Get the TAV words for all bunch crossings.
void setL1ID(const uint32_t word)
Set the extended LVL1 ID.
void setSourceID(const uint32_t word)
Set the sub-detector source ID.
void setStatusPosition(const uint32_t word)
Set the position of status information in the ROD.
void setTrailer(const uint32_t numData, const uint32_t errStat=0, const uint32_t infoStat=0, const uint32_t numStat=2, const uint32_t statPos=1)
Set the trailer words.
void setCtpVersionNumber(const uint32_t ctpNumber)
Set the CTP version number.
uint32_t eventType() const
Retrieve the LVL1 event type.
void setNumDataWords(const uint32_t num)
Set the number of data words.
uint32_t headerMarker() const
Retrieve the header marker word.
const CTPResult_v1::CTPBunchCrossing getBC(const int bunch=-1) const
Get the CTPBunchCrossing object for a specific bunch in the readout window.
uint32_t ctpVersionNumber() const
Get the CTP version number.
std::vector< uint32_t > getTIPWords(const int bunchPosition=-1) const
Get the TIP (Trigger Inputs to the CTP) words (in Run3 512 items)
std::vector< uint32_t > getTAVWords(const int bunchPosition=-1) const
Get the TAV (Trigger After Veto) words.
uint32_t turnCounter() const
Get the turn counter.
uint32_t timeNanoSec() const
Get the time in nanoseconds.
uint32_t numberOfBunches() const
Get the number of bunch crossings.
const std::vector< uint32_t > header() const
Get the header words.
void setNumberOfAdditionalWords(const uint32_t nExtraWords)
Set the number of additional data words.
void setErrorStatus(const uint32_t word)
Set the error status word.
void setL1AcceptBunchPosition(const uint32_t pos)
Set the L1Accept bunch position.
void setTimeNanoSec(const uint32_t nano)
Set the time in nanoseconds.
uint32_t sourceID() const
Retrieve the sub-detector source ID.
void setTIPWords(const std::vector< std::vector< uint32_t > > &words)
Set the TIP words for all bunch crossings.
uint32_t l1AcceptBunchPosition() const
Get the L1 accept bunch position.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEventNumber setTimeStamp bcid
setEventNumber uint32_t
This is the trigger result for each item before prescale, after prescale and after veto for a single ...
std::vector< uint32_t > tapWords
std::vector< uint32_t > tbpWords
std::vector< uint32_t > tavWords
std::vector< uint32_t > tipWords