ATLAS Offline Software
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 
15 namespace xAOD {
16 
23  class CTPResult_v1 : public SG::AuxElement {
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 
72  uint32_t sourceID() const;
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 
169 
174  void setNumberOfBunches(const uint32_t nBCs);
175 
181 
187 
192  const std::vector< std::vector< uint32_t > >& tipWords() const;
193 
198  void setTIPWords(const std::vector< std::vector< uint32_t > >& words);
199 
204  const std::vector< std::vector< uint32_t > >& tbpWords() const;
205 
210  void setTBPWords(const std::vector< std::vector< uint32_t > >& words);
211 
216  const std::vector< std::vector< uint32_t > >& tapWords() const;
217 
222  void setTAPWords(const std::vector< std::vector< uint32_t > >& words);
223 
228  const std::vector< std::vector< uint32_t > >& tavWords() const;
229 
234  void setTAVWords(const std::vector< std::vector< uint32_t > >& words);
235 
240  uint32_t timeSec() const;
241 
246  void setTimeSec(const uint32_t sec);
247 
253 
258  void setTimeNanoSec(const uint32_t nano);
259 
265 
270  void setNumberOfAdditionalWords(const uint32_t nExtraWords);
271 
276  const std::vector< uint32_t >& additionalWords() const;
277 
282  void setAdditionalWords(const std::vector< uint32_t >& words);
283 
289 
295 
300  std::vector< uint32_t > getTIPWords(const int bunchPosition=-1) const;
301 
306  std::vector< uint32_t > getTBPWords(const int bunchPosition=-1) const;
307 
312  std::vector< uint32_t > getTAPWords(const int bunchPosition=-1) const;
313 
318  std::vector< uint32_t > getTAVWords(const int bunchPosition=-1) const;
319 
325 
331 
337 
343 
350 
355  void setErrorStatus(const uint32_t word);
356 
361  void setInfoStatus(const uint32_t word);
362 
367  void setNumStatusWords(const uint32_t word);
368 
374  void setStatusPosition(const uint32_t word);
375 
381 
382  }; // class CTPResult_v1
383 
384 } // namespace xAOD
385 
386 #endif // XAODTRIGGER_VERSIONS_CTPRESULT_V1_H
387 
388 
xAOD::CTPResult_v1::setSourceID
void setSourceID(const uint32_t word)
Set the sub-detector source ID.
xAOD::CTPResult_v1::setHeaderSize
void setHeaderSize(const uint32_t word)
Set the number of words in the header.
xAOD::CTPResult_v1::setInfoStatus
void setInfoStatus(const uint32_t word)
Set the info status word.
xAOD::CTPResult_v1::setL1ID
void setL1ID(const uint32_t word)
Set the extended LVL1 ID.
xAOD::CTPResult_v1::errorStatus
uint32_t errorStatus() const
Retrieve the error status word.
xAOD::CTPResult_v1::getTAVWords
std::vector< uint32_t > getTAVWords(const int bunchPosition=-1) const
Get the TAV (Trigger After Veto) words.
Definition: CTPResult_v1.cxx:149
xAOD::CTPResult_v1::setNumberOfAdditionalWords
void setNumberOfAdditionalWords(const uint32_t nExtraWords)
Set the number of additional data words.
xAOD::CTPResult_v1::setHeaderMarker
void setHeaderMarker(const uint32_t word)
Set the header marker word.
xAOD::CTPResult_v1::setHeaderFormatVersion
void setHeaderFormatVersion(const uint32_t word)
Set the format version of the header.
xAOD::CTPResult_v1::sourceID
uint32_t sourceID() const
Retrieve the sub-detector source ID.
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::CTPResult_v1::L1ID
uint32_t L1ID() const
Retrieve the extended LVL1 ID.
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
xAOD::CTPResult_v1::statusPosition
uint32_t statusPosition() const
Retrieve the position of status information in the ROD.
xAOD::CTPResult_v1::setTimeNanoSec
void setTimeNanoSec(const uint32_t nano)
Set the time in nanoseconds.
xAOD::CTPResult_v1::setRunNumber
void setRunNumber(const uint32_t word)
Set the run number.
xAOD::CTPResult_v1::setAdditionalWords
void setAdditionalWords(const std::vector< uint32_t > &words)
Set the additional data words.
xAOD::CTPResult_v1::ctpVersionNumber
uint32_t ctpVersionNumber() const
Get the CTP version number.
xAOD::CTPResult_v1::eventType
uint32_t eventType() const
Retrieve the LVL1 event type.
xAOD::CTPResult_v1::setTimeSec
void setTimeSec(const uint32_t sec)
Set the time in seconds.
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CTPResult_v1::CTPBunchCrossing::tapWords
std::vector< uint32_t > tapWords
Definition: CTPResult_v1.h:34
xAOD::CTPResult_v1::setNumStatusWords
void setNumStatusWords(const uint32_t word)
Set the number of status words in the trailer.
xAOD::CTPResult_v1
This is the trigger result for each item before prescale, after prescale and after veto....
Definition: CTPResult_v1.h:23
xAOD::CTPResult_v1::headerFormatVersion
uint32_t headerFormatVersion() const
Retrieve the format version of the header.
xAOD::CTPResult_v1::setTIPWords
void setTIPWords(const std::vector< std::vector< uint32_t > > &words)
Set the TIP words for all bunch crossings.
xAOD::CTPResult_v1::setTAPWords
void setTAPWords(const std::vector< std::vector< uint32_t > > &words)
Set the TAP words for all bunch crossings.
xAOD::CTPResult_v1::setTBPWords
void setTBPWords(const std::vector< std::vector< uint32_t > > &words)
Set the TBP words for all bunch crossings.
xAOD::CTPResult_v1::setEventType
void setEventType(const uint32_t word)
Set the LVL1 event type.
xAOD::CTPResult_v1::setBCID
void setBCID(const uint32_t word)
Set the bunch crossing ID.
xAOD::CTPResult_v1::turnCounter
uint32_t turnCounter() const
Get the turn counter.
xAOD::CTPResult_v1::BCID
uint32_t BCID() const
Retrieve the bunch crossing ID.
xAOD::CTPResult_v1::CTPBunchCrossing::tbpWords
std::vector< uint32_t > tbpWords
Definition: CTPResult_v1.h:33
xAOD::CTPResult_v1::l1AcceptBunchPosition
uint32_t l1AcceptBunchPosition() const
Get the L1 accept bunch position.
xAOD::CTPResult_v1::tapWords
const std::vector< std::vector< uint32_t > > & tapWords() const
Get the TAP words for all bunch crossings.
xAOD::CTPResult_v1::numStatusWords
uint32_t numStatusWords() const
Retrieve the number of status words in the trailer.
xAOD::CTPResult_v1::CTPBunchCrossing::tipWords
std::vector< uint32_t > tipWords
Definition: CTPResult_v1.h:32
xAOD::CTPResult_v1::numDataWords
uint32_t numDataWords() const
Retrieve the number of data words.
xAOD::CTPResult_v1::setL1AcceptBunchPosition
void setL1AcceptBunchPosition(const uint32_t pos)
Set the L1Accept bunch position.
Definition: CTPResult_v1.cxx:126
xAOD::CTPResult_v1::numberOfAdditionalWords
uint32_t numberOfAdditionalWords() const
Get the number of additional data words.
xAOD::CTPResult_v1::setStatusPosition
void setStatusPosition(const uint32_t word)
Set the position of status information in the ROD.
xAOD::CTPResult_v1::CTPBunchCrossing::tavWords
std::vector< uint32_t > tavWords
Definition: CTPResult_v1.h:35
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
xAOD::CTPResult_v1::runNumber
uint32_t runNumber() const
Retrieve the run number.
PlotCalibFromCool.words
words
Definition: PlotCalibFromCool.py:51
xAOD::CTPResult_v1::tipWords
const std::vector< std::vector< uint32_t > > & tipWords() const
Get the TIP words for all bunch crossings.
xAOD::CTPResult_v1::tavWords
const std::vector< std::vector< uint32_t > > & tavWords() const
Get the TAV words for all bunch crossings.
xAOD::CTPResult_v1::tbpWords
const std::vector< std::vector< uint32_t > > & tbpWords() const
Get the TBP words for all bunch crossings.
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:16
xAOD::CTPResult_v1::headerSize
uint32_t headerSize() const
Retrieve the number of words in the header.
xAOD::CTPResult_v1::setErrorStatus
void setErrorStatus(const uint32_t word)
Set the error status word.
xAOD::CTPResult_v1::numberOfBunches
uint32_t numberOfBunches() const
Get the number of bunch crossings.
xAOD::CTPResult_v1::setTAVWords
void setTAVWords(const std::vector< std::vector< uint32_t > > &words)
Set the TAV words for all bunch crossings.
xAOD::CTPResult_v1::setTurnCounter
void setTurnCounter(const uint32_t val)
Set the turn counter.
xAOD::CTPResult_v1::triggerType
uint32_t triggerType() const
Retrieve the LVL1 trigger type.
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
xAOD::CTPResult_v1::headerMarker
uint32_t headerMarker() const
Retrieve the header marker word.
xAOD::CTPResult_v1::getTAPWords
std::vector< uint32_t > getTAPWords(const int bunchPosition=-1) const
Get the TAP (Trigger After Prescale) words.
Definition: CTPResult_v1.cxx:144
xAOD::CTPResult_v1::infoStatus
uint32_t infoStatus() const
Retrieve the info status word.
xAOD::CTPResult_v1::CTPBunchCrossing
This is the trigger result for each item before prescale, after prescale and after veto for a single ...
Definition: CTPResult_v1.h:31
xAOD::CTPResult_v1::getBC
const CTPResult_v1::CTPBunchCrossing getBC(const int bunch=-1) const
Get the CTPBunchCrossing object for a specific bunch in the readout window.
Definition: CTPResult_v1.cxx:94
xAOD::CTPResult_v1::getTIPWords
std::vector< uint32_t > getTIPWords(const int bunchPosition=-1) const
Get the TIP (Trigger Inputs to the CTP) words (in Run3 512 items)
Definition: CTPResult_v1.cxx:134
xAOD::CTPResult_v1::setTriggerType
void setTriggerType(const uint32_t word)
Set the LVL1 trigger type.
xAOD::CTPResult_v1::additionalWords
const std::vector< uint32_t > & additionalWords() const
Get the additional data words.
xAOD::CTPResult_v1::timeNanoSec
uint32_t timeNanoSec() const
Get the time in nanoseconds.
xAOD::CTPResult_v1::setCtpVersionNumber
void setCtpVersionNumber(const uint32_t ctpNumber)
Set the CTP version number.
xAOD::CTPResult_v1::getTBPWords
std::vector< uint32_t > getTBPWords(const int bunchPosition=-1) const
Get the TBP (Trigger Before Prescale) words.
Definition: CTPResult_v1.cxx:139
xAOD::CTPResult_v1::timeSec
uint32_t timeSec() const
Get the time in seconds.
xAOD::CTPResult_v1::setNumDataWords
void setNumDataWords(const uint32_t num)
Set the number of data words.
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::CTPResult_v1::setNumberOfBunches
void setNumberOfBunches(const uint32_t nBCs)
Set the number of bunch crossings.
Definition: CTPResult_v1.cxx:110