ATLAS Offline Software
CTPResult_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 // System include(s):
7 #include <iostream>
8 #include <stdexcept>
9 
10 // xAOD include(s):
12 
13 // Local include(s):
15 
16 namespace xAOD {
17 
18  // get the number of bunches
19  AUXSTORE_PRIMITIVE_GETTER(CTPResult_v1, uint32_t, numberOfBunches)
20 
21  // get the L1 Accept Bunch Position
22  AUXSTORE_PRIMITIVE_GETTER(CTPResult_v1, uint32_t, l1AcceptBunchPosition)
23 
24  // set the L1 Accept Bunch Position
25  void CTPResult_v1::setL1AcceptBunchPosition(const uint32_t pos) {
26  if(pos < numberOfBunches()) {
27  static const SG::Accessor< uint32_t > acc("l1AcceptBunchPosition");
28  acc( *this ) = pos;
29  }
30  }
31 
32  // get the number of additional words
33  AUXSTORE_PRIMITIVE_GETTER(CTPResult_v1, uint32_t, numberOfAdditionalWords)
34 
35  // get/set the raw data words
36  AUXSTORE_OBJECT_SETTER_AND_GETTER(CTPResult_v1, std::vector<uint32_t>, dataWords, setDataWords)
37 
38  // get/set the number of the CTP version to be used
40  setCtpVersionNumber )
41 
42  // get/set the turn counter
44  setTurnCounter )
45 
46 }
xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
AuxStoreAccessorMacros.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
xAOD::CTPResult_v1
This is the trigger result for each item before prescale, after prescale and after veto....
Definition: CTPResult_v1.h:23
CTPResult_v1.h
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:16
AUXSTORE_PRIMITIVE_GETTER
#define AUXSTORE_PRIMITIVE_GETTER(CL, TYPE, NAME)
Macro creating the reader function for a primitive auxiliary property.
Definition: AuxStoreAccessorMacros.h:59
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27
xAOD::turnCounter
turnCounter
Definition: CTPResult_v1.cxx:43