ATLAS Offline Software
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
GlobalSim::LArCellMuxAlg Class Reference

#include <LArCellMuxAlg.h>

Inheritance diagram for GlobalSim::LArCellMuxAlg:
Collaboration diagram for GlobalSim::LArCellMuxAlg:

Public Types

using Feb2BitsetMap = std::map< std::string, std::bitset< FEB2_BITSTREAM_SIZE > >
 

Public Member Functions

virtual StatusCode initialize () override
 initialize function running before first event More...
 
virtual StatusCode execute (const EventContext &) const override
 execute function running for every event More...
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
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. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Attributes

static constexpr std::size_t FEB2_BITSTREAM_SIZE = 576
 
static constexpr std::size_t BITWIDTH_2SIGMAMASK = 128
 
static constexpr std::size_t BITWIDTH_MUX_INPUT = 32
 
static constexpr std::size_t BITWIDTH_MUX_OUTPUT = 64
 
static constexpr std::size_t N_WORDS_MUX_HEADER = 2
 
static constexpr std::size_t N_WORDS_MUX_FOOTER = 7
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode writeMuxInputBitstream (Feb2BitsetMap &feb2Bitsets, const xAOD::EventInfo &eventInfo, const GlobalSim::GlobalLArCellContainer &gblLArCells) const
 Function that compiles the LASP to MUX bitstream and writes it to file. More...
 
StatusCode writeMuxOutputBitstream (const Feb2BitsetMap &feb2Bitsets, const xAOD::EventInfo &eventInfo, const GlobalSim::GlobalLArCellContainer &gblLArCells) const
 Function that compiles the MUX to GEP bitstream and writes it to file. More...
 
std::bitset< FEB2_BITSTREAM_SIZEassembleBitsetForFeb2 (const std::vector< GlobalSim::GlobalLArCell * > &cells, std::size_t maxCells, bool inOverflow, bool inError, uint32_t bcid) const
 Function which compiles the bitset for one particular FEB2. More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Static Private Member Functions

template<std::size_t N, typename T >
static std::size_t appendBits (std::bitset< N > &target, const T &src, std::size_t pos)
 Helper function to append a bitset or vector of bools at a specific position in another bitset. More...
 

Private Attributes

SG::ReadHandleKey< xAOD::EventInfom_eventInfo {this, "EventInfo", "EventInfo", "Key for the EventInfo container"}
 Key for the EventInfo object. More...
 
SG::ReadHandleKey< GlobalSim::GlobalLArCellContainerm_gblLArCellContainerKey {this, "GlobalLArCellsKey", "GlobalLArCells", "Key for the output container of the LAr cells sent to Global"}
 Key to the GlobalLArCellContainer. More...
 
Gaudi::Property< bool > m_writeMuxInputBitstreamToFile {this, "WriteMuxInputBitstreamToFile", true, "Flag to enable the writing of MUX input bitstreams to file"}
 Flag to enable writing of MUX input bitstreams (FEB2/LASP -> MUX) to file. More...
 
Gaudi::Property< bool > m_writeMuxOutputBitstreamToFile {this, "WriteMuxOutputBitstreamToFile", true, "Flag to enable the writing of MUX output bitstreams to file"}
 Flag to enable writing ofMUX output bitstreams (MUX -> GEP) to file. More...
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 27 of file LArCellMuxAlg.h.

Member Typedef Documentation

◆ Feb2BitsetMap

using GlobalSim::LArCellMuxAlg::Feb2BitsetMap = std::map<std::string, std::bitset<FEB2_BITSTREAM_SIZE> >

Definition at line 40 of file LArCellMuxAlg.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ appendBits()

template<std::size_t N, typename T >
std::size_t GlobalSim::LArCellMuxAlg::appendBits ( std::bitset< N > &  target,
const T &  src,
std::size_t  pos 
)
staticprivate

Helper function to append a bitset or vector of bools at a specific position in another bitset.

Definition at line 273 of file LArCellMuxAlg.cxx.

273  {
274  for (std::size_t i = 0; i < src.size(); ++i, ++pos)
275  if (src[i]) target.set(pos);
276  return pos;
277  }

◆ assembleBitsetForFeb2()

std::bitset< LArCellMuxAlg::FEB2_BITSTREAM_SIZE > GlobalSim::LArCellMuxAlg::assembleBitsetForFeb2 ( const std::vector< GlobalSim::GlobalLArCell * > &  cells,
std::size_t  maxCells,
bool  inOverflow,
bool  inError,
uint32_t  bcid 
) const
private

Function which compiles the bitset for one particular FEB2.

Definition at line 110 of file LArCellMuxAlg.cxx.

110  {
111 
112  // Sort cells based on channel number
113  std::vector<const GlobalSim::GlobalLArCell*> sortedCells(cells.begin(), cells.end());
114  std::sort(sortedCells.begin(), sortedCells.end(), [](const auto* a, const auto* b) {
115  return a->getChannel() < b->getChannel();
116  });
117 
118  // Declare bitsets for 2sigma and 4sigma mask, as well as energies
119  const std::size_t bitwidth_4SigmaMask = maxCells;
120  const std::size_t bitwidth_energyBlock = FEB2_BITSTREAM_SIZE - BITWIDTH_2SIGMAMASK - bitwidth_4SigmaMask - 2 - 8;
121 
122  std::vector<bool> mask_twoSigma(BITWIDTH_2SIGMAMASK, false);
123  std::vector<bool> mask_fourSigma(bitwidth_4SigmaMask, false);
124  std::vector<bool> energyBits(bitwidth_energyBlock, false);
125 
126  std::size_t bitPosEnergy = 0;
127 
128  for (std::size_t i = 0; i < sortedCells.size(); ++i) {
129 
130  const auto* cell = sortedCells[i];
131 
132  // 2sigma mask by channel
133  mask_twoSigma[cell->getChannel()] = true;
134 
135  // 4sigma mask by order of 2sigma cells
136  mask_fourSigma[i] = (cell->getSigma() >= 4.0);
137 
138  // Energy bits
139  const boost::dynamic_bitset<>& enBits = cell->getEnergyBitstring();
140  for (std::size_t j = 0; j < enBits.size() && bitPosEnergy < bitwidth_energyBlock; ++j, ++bitPosEnergy) {
141  energyBits[bitPosEnergy]= enBits[j];
142  }
143  }
144 
145  // 8b bunch crossing number
146  std::bitset<8> bitsBCN(bcid & 0xFF);
147 
148  // Assemble final bitstream
149  std::bitset<FEB2_BITSTREAM_SIZE> bitstream;
150  std::size_t pos = 0;
151 
152  pos = appendBits(bitstream, mask_twoSigma, pos);
153  pos = appendBits(bitstream, mask_fourSigma, pos);
154 
155  if (inOverflow) bitstream.set(pos);
156  ++pos;
157  if (inError) bitstream.set(pos);
158  ++pos;
159 
160  pos = appendBits(bitstream, energyBits, pos);
161  pos = appendBits(bitstream, bitsBCN, pos);
162 
163  return bitstream;
164  }

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality
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.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64 {
65  return 0;
66 }

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

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

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

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  }

◆ 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.

95 { return m_detStore; }

◆ evtStore() [1/2]

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.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode GlobalSim::LArCellMuxAlg::execute ( const EventContext &  ctx) const
overridevirtual

execute function running for every event

Definition at line 34 of file LArCellMuxAlg.cxx.

34  {
35 
36  ATH_MSG_DEBUG ("Executing LArCellMuxAlg algorithm");
37 
38  // Get EventInfo
40  CHECK(eventInfo.isValid());
41 
42  // Read in GlobalLArCellContainer
43  auto h_gblLArCells = SG::makeHandle(m_gblLArCellContainerKey, ctx);
44  CHECK(h_gblLArCells.isValid());
45  const auto & gblLArCells = *h_gblLArCells;
46 
47  ATH_MSG_DEBUG("Reading " << std::to_string(h_gblLArCells->size()) << " cells in input GlobalLArCellContainer");
48 
49  Feb2BitsetMap feb2Bitsets;
50 
51  // Compile and write the input bitstreams which are sent from LASP to MUX
52  CHECK(writeMuxInputBitstream(feb2Bitsets, *eventInfo, gblLArCells));
53 
54  // Compile and write the output bitstreams which are sent from MUX to GEP
55  CHECK(writeMuxOutputBitstream(feb2Bitsets, *eventInfo, gblLArCells));
56 
57  return StatusCode::SUCCESS;
58  }

◆ 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
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  }
96  return BaseAlg::extraOutputDeps();
97 }

◆ 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  }

◆ initialize()

StatusCode GlobalSim::LArCellMuxAlg::initialize ( )
overridevirtual

initialize function running before first event

Definition at line 22 of file LArCellMuxAlg.cxx.

22  {
23  ATH_MSG_INFO ("Initializing " << name());
24 
27 
28  return StatusCode::SUCCESS;
29  }

◆ 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()

bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::isClonable
overridevirtualinherited

Specify if the algorithm is clonable.

Reentrant algorithms are clonable.

Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.

52 {
53  // Reentrant algorithms are clonable.
54  return true;
55 }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ 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();
383  PBASE::renounce (h);
384  }

◆ 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  {
365  handlesArray.renounce();
366  }

◆ setFilterPassed()

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

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100  {
101  execState( ctx ).setFilterPassed( state );
102  }

◆ 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 InputMakerBase, and HypoBase.

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()) {
123  sc = StatusCode::FAILURE;
124  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125  << " with CondSvc");
126  }
127  }
128  }
129  return sc;
130 }

◆ 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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

◆ writeMuxInputBitstream()

StatusCode GlobalSim::LArCellMuxAlg::writeMuxInputBitstream ( Feb2BitsetMap feb2Bitsets,
const xAOD::EventInfo eventInfo,
const GlobalSim::GlobalLArCellContainer gblLArCells 
) const
private

Function that compiles the LASP to MUX bitstream and writes it to file.

Definition at line 64 of file LArCellMuxAlg.cxx.

66  {
67 
68  std::ofstream out;
70  std::string filename = fmt::format("MuxInputBitstream/{}_MuxInput_{}_{}.dat", name(), eventInfo.runNumber(), eventInfo.eventNumber());
71  out.open(filename);
72  if (!out) {
73  ATH_MSG_ERROR("Failed to open file: " << filename);
74  return StatusCode::FAILURE;
75  }
76  }
77 
78  for (const auto& feb2Key : gblLArCells.getFeb2Keys()) {
79 
80  const std::vector<GlobalLArCell*>& cells = gblLArCells.getCellsForFeb2(feb2Key);
81  std::bitset<FEB2_BITSTREAM_SIZE> input_bitstream = assembleBitsetForFeb2(cells,
82  gblLArCells.getMaxCellsPerFeb2(),
83  gblLArCells.feb2InOverflow(feb2Key),
84  gblLArCells.feb2InError(feb2Key),
85  eventInfo.bcid());
86 
87  feb2Bitsets[feb2Key] = input_bitstream;
88 
90  out << "====== " << feb2Key << " is sending to " << gblLArCells.getMuxForFeb2(feb2Key) << ":\n";
91 
92  for (std::size_t row = 0; row < FEB2_BITSTREAM_SIZE / BITWIDTH_MUX_INPUT; ++row) {
93  for (int col = BITWIDTH_MUX_INPUT-1; col >= 0; --col) {
94  int bitIndex = row * BITWIDTH_MUX_INPUT + col;
95  out << input_bitstream[bitIndex];
96  }
97  out << "\n";
98  }
99  out << "\n";
100  }
101  }
102 
103  if (m_writeMuxInputBitstreamToFile) out.close();
104 
105  return StatusCode::SUCCESS;
106  }

◆ writeMuxOutputBitstream()

StatusCode GlobalSim::LArCellMuxAlg::writeMuxOutputBitstream ( const Feb2BitsetMap feb2Bitsets,
const xAOD::EventInfo eventInfo,
const GlobalSim::GlobalLArCellContainer gblLArCells 
) const
private

Function that compiles the MUX to GEP bitstream and writes it to file.

Definition at line 171 of file LArCellMuxAlg.cxx.

173  {
174 
176  return StatusCode::SUCCESS;
177  }
178 
179  std::string filename = fmt::format("MuxOutputBitstream/{}_MuxOutput_AllMuxes_{}_{}.dat", name(), eventInfo.runNumber(), eventInfo.eventNumber());
180  std::ofstream out(filename);
181  if (!out) {
182  ATH_MSG_ERROR("Failed to open file: " << filename);
183  return StatusCode::FAILURE;
184  }
185 
186  // Assemble the header for each MUX
187  const int nBitsMarker = BITWIDTH_MUX_OUTPUT / 8;
188 
189  // MUX marker line has the pattern ABBA ABBA
190  unsigned long long markerPattern =
191  (0xAULL << nBitsMarker*7) |
192  (0xBULL << nBitsMarker*6) |
193  (0xBULL << nBitsMarker*5) |
194  (0xAULL << nBitsMarker*4) |
195  (0xAULL << nBitsMarker*3) |
196  (0xBULL << nBitsMarker*2) |
197  (0xBULL << nBitsMarker) |
198  (0xAULL);
199 
200  std::bitset<BITWIDTH_MUX_OUTPUT> markerBitset(markerPattern);
201 
202  // 12b bunch crossing number
203  std::bitset<12> bitsBCN(eventInfo.bcid() & 0xFFF);
204 
205  // Loop over all MUX IDs
206  for (int muxID = 0; muxID < 32; ++muxID) {
207 
208  std::string muxKey = fmt::format("apl-gbl-mux-lasp-{:02d}", muxID);
209  out << "====== " << muxKey << " is sending to GEP:\n";
210 
211  std::bitset<6> bitsetMuxID(muxID);
212 
213  // Bitset for the entire header block
214  const int bitwidthMuxHeader = BITWIDTH_MUX_OUTPUT * N_WORDS_MUX_HEADER;
215  std::bitset<bitwidthMuxHeader> fullMuxHeader;
216 
217  // Assemble the header block
218  std::size_t pos = 0;
219  pos = appendBits(fullMuxHeader, markerBitset, pos);
220  pos = appendBits(fullMuxHeader, bitsBCN, pos);
221  pos = appendBits(fullMuxHeader, bitsetMuxID, pos);
222 
223  // Overflow and error bits
224  if (gblLArCells.muxInOverflow(muxKey)) fullMuxHeader.set(pos);
225  ++pos;
226  if (gblLArCells.muxInError(muxKey)) fullMuxHeader.set(pos);
227  ++pos;
228 
229  // Write header in lines of BITWIDTH_MUX_OUTPUT
230  for (std::size_t row = 0; row < N_WORDS_MUX_HEADER; ++row) {
231  for (int col = BITWIDTH_MUX_OUTPUT-1; col >= 0; --col) {
232  int bitIndex = row * BITWIDTH_MUX_OUTPUT + col;
233  out << fullMuxHeader[bitIndex];
234  }
235  out << "\n";
236  }
237 
238  // Get and loop over FEB2s to write the FEB2 block
239  const std::vector<std::string>& feb2s = gblLArCells.getOrderedFeb2sForMux(muxKey);
240  for (const auto& feb2 : feb2s) {
241 
242  auto it = feb2Bitsets.find(feb2);
243  if (it == feb2Bitsets.end()) {
244  ATH_MSG_ERROR("No bitset for FEB2 " << feb2);
245  return StatusCode::FAILURE;
246  }
247  const std::bitset<FEB2_BITSTREAM_SIZE>& feb2Bitset = it->second;
248 
249  for (std::size_t row = 0; row < FEB2_BITSTREAM_SIZE / BITWIDTH_MUX_OUTPUT; ++row) {
250  for (int col = BITWIDTH_MUX_OUTPUT-1; col >= 0; --col) {
251  int bitIndex = row * BITWIDTH_MUX_OUTPUT + col;
252  out << feb2Bitset[bitIndex];
253  }
254  out << "\n";
255  }
256  }
257 
258  // Close by writing the footer of the MUX (N_WORDS_MUX_FOOTER empty words)
259  for (std::size_t row = 0; row < N_WORDS_MUX_FOOTER; ++row) {
260  for (std::size_t col = 0; col < BITWIDTH_MUX_OUTPUT; ++col) {
261  out << '0';
262  }
263  out << "\n";
264  }
265  out << "\n";
266 
267  } // Loop over all MUX IDs
268 
269  out.close();
270  return StatusCode::SUCCESS;
271  }

Member Data Documentation

◆ BITWIDTH_2SIGMAMASK

constexpr std::size_t GlobalSim::LArCellMuxAlg::BITWIDTH_2SIGMAMASK = 128
staticconstexpr

Definition at line 33 of file LArCellMuxAlg.h.

◆ BITWIDTH_MUX_INPUT

constexpr std::size_t GlobalSim::LArCellMuxAlg::BITWIDTH_MUX_INPUT = 32
staticconstexpr

Definition at line 34 of file LArCellMuxAlg.h.

◆ BITWIDTH_MUX_OUTPUT

constexpr std::size_t GlobalSim::LArCellMuxAlg::BITWIDTH_MUX_OUTPUT = 64
staticconstexpr

Definition at line 35 of file LArCellMuxAlg.h.

◆ FEB2_BITSTREAM_SIZE

constexpr std::size_t GlobalSim::LArCellMuxAlg::FEB2_BITSTREAM_SIZE = 576
staticconstexpr

Definition at line 32 of file LArCellMuxAlg.h.

◆ 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_eventInfo

SG::ReadHandleKey<xAOD::EventInfo> GlobalSim::LArCellMuxAlg::m_eventInfo {this, "EventInfo", "EventInfo", "Key for the EventInfo container"}
private

Key for the EventInfo object.

Definition at line 60 of file LArCellMuxAlg.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_gblLArCellContainerKey

SG::ReadHandleKey<GlobalSim::GlobalLArCellContainer> GlobalSim::LArCellMuxAlg::m_gblLArCellContainerKey {this, "GlobalLArCellsKey", "GlobalLArCells", "Key for the output container of the LAr cells sent to Global"}
private

Key to the GlobalLArCellContainer.

Definition at line 63 of file LArCellMuxAlg.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_writeMuxInputBitstreamToFile

Gaudi::Property<bool> GlobalSim::LArCellMuxAlg::m_writeMuxInputBitstreamToFile {this, "WriteMuxInputBitstreamToFile", true, "Flag to enable the writing of MUX input bitstreams to file"}
private

Flag to enable writing of MUX input bitstreams (FEB2/LASP -> MUX) to file.

Definition at line 66 of file LArCellMuxAlg.h.

◆ m_writeMuxOutputBitstreamToFile

Gaudi::Property<bool> GlobalSim::LArCellMuxAlg::m_writeMuxOutputBitstreamToFile {this, "WriteMuxOutputBitstreamToFile", true, "Flag to enable the writing of MUX output bitstreams to file"}
private

Flag to enable writing ofMUX output bitstreams (MUX -> GEP) to file.

Definition at line 69 of file LArCellMuxAlg.h.

◆ N_WORDS_MUX_FOOTER

constexpr std::size_t GlobalSim::LArCellMuxAlg::N_WORDS_MUX_FOOTER = 7
staticconstexpr

Definition at line 37 of file LArCellMuxAlg.h.

◆ N_WORDS_MUX_HEADER

constexpr std::size_t GlobalSim::LArCellMuxAlg::N_WORDS_MUX_HEADER = 2
staticconstexpr

Definition at line 36 of file LArCellMuxAlg.h.


The documentation for this class was generated from the following files:
RunTileCalibRec.cells
cells
Definition: RunTileCalibRec.py:281
GlobalSim::GlobalLArCellContainer::getMaxCellsPerFeb2
std::size_t getMaxCellsPerFeb2() const
Function to get maximum number of cells per FEB2.
Definition: GlobalLArCellContainer.h:65
GlobalSim::GlobalLArCellContainer::feb2InOverflow
bool feb2InOverflow(const std::string &feb2Key) const
Check if a given FEB2 is in overflow.
Definition: GlobalLArCellContainer.cxx:130
GlobalSim::GlobalLArCellContainer::getOrderedFeb2sForMux
const std::vector< std::string > & getOrderedFeb2sForMux(const std::string &mux) const
Function to get ordered list of FEB2s for a given MUX name.
Definition: GlobalLArCellContainer.cxx:89
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
vtune_athena.format
format
Definition: vtune_athena.py:14
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
xAOD::EventInfo_v1::eventNumber
uint64_t eventNumber() const
The current event's event number.
GlobalSim::LArCellMuxAlg::BITWIDTH_MUX_INPUT
static constexpr std::size_t BITWIDTH_MUX_INPUT
Definition: LArCellMuxAlg.h:34
GlobalSim::LArCellMuxAlg::appendBits
static std::size_t appendBits(std::bitset< N > &target, const T &src, std::size_t pos)
Helper function to append a bitset or vector of bools at a specific position in another bitset.
Definition: LArCellMuxAlg.cxx:273
GlobalSim::GlobalLArCellContainer::feb2InError
bool feb2InError(const std::string &feb2Key) const
Check if a given FEB2 is in error.
Definition: GlobalLArCellContainer.cxx:137
WriteCellNoiseToCool.src
src
Definition: WriteCellNoiseToCool.py:513
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
GlobalSim::LArCellMuxAlg::m_gblLArCellContainerKey
SG::ReadHandleKey< GlobalSim::GlobalLArCellContainer > m_gblLArCellContainerKey
Key to the GlobalLArCellContainer.
Definition: LArCellMuxAlg.h:63
GlobalSim::LArCellMuxAlg::FEB2_BITSTREAM_SIZE
static constexpr std::size_t FEB2_BITSTREAM_SIZE
Definition: LArCellMuxAlg.h:32
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
skel.it
it
Definition: skel.GENtoEVGEN.py:407
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:70
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
keylayer_zslicemap.row
row
Definition: keylayer_zslicemap.py:155
GlobalSim::LArCellMuxAlg::BITWIDTH_2SIGMAMASK
static constexpr std::size_t BITWIDTH_2SIGMAMASK
Definition: LArCellMuxAlg.h:33
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
GlobalSim::GlobalLArCellContainer::getFeb2Keys
const std::unordered_set< std::string > & getFeb2Keys() const
Function to return the full list of FEB2 names.
Definition: GlobalLArCellContainer.h:47
GlobalSim::LArCellMuxAlg::N_WORDS_MUX_HEADER
static constexpr std::size_t N_WORDS_MUX_HEADER
Definition: LArCellMuxAlg.h:36
xAOD::EventInfo_v1::runNumber
uint32_t runNumber() const
The current event's run number.
GlobalSim::LArCellMuxAlg::writeMuxInputBitstream
StatusCode writeMuxInputBitstream(Feb2BitsetMap &feb2Bitsets, const xAOD::EventInfo &eventInfo, const GlobalSim::GlobalLArCellContainer &gblLArCells) const
Function that compiles the LASP to MUX bitstream and writes it to file.
Definition: LArCellMuxAlg.cxx:64
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:274
GlobalSim::LArCellMuxAlg::writeMuxOutputBitstream
StatusCode writeMuxOutputBitstream(const Feb2BitsetMap &feb2Bitsets, const xAOD::EventInfo &eventInfo, const GlobalSim::GlobalLArCellContainer &gblLArCells) const
Function that compiles the MUX to GEP bitstream and writes it to file.
Definition: LArCellMuxAlg.cxx:171
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
lumiFormat.i
int i
Definition: lumiFormat.py:85
GlobalSim::LArCellMuxAlg::m_writeMuxOutputBitstreamToFile
Gaudi::Property< bool > m_writeMuxOutputBitstreamToFile
Flag to enable writing ofMUX output bitstreams (MUX -> GEP) to file.
Definition: LArCellMuxAlg.h:69
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
GlobalSim::GlobalLArCellContainer::getCellsForFeb2
const std::vector< GlobalLArCell * > & getCellsForFeb2(const std::string &feb2) const
Function to get all GlobalLArCells for a given FEB2 name.
Definition: GlobalLArCellContainer.cxx:75
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
GlobalSim::LArCellMuxAlg::N_WORDS_MUX_FOOTER
static constexpr std::size_t N_WORDS_MUX_FOOTER
Definition: LArCellMuxAlg.h:37
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
GlobalSim::LArCellMuxAlg::Feb2BitsetMap
std::map< std::string, std::bitset< FEB2_BITSTREAM_SIZE > > Feb2BitsetMap
Definition: LArCellMuxAlg.h:40
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:76
GlobalSim::LArCellMuxAlg::BITWIDTH_MUX_OUTPUT
static constexpr std::size_t BITWIDTH_MUX_OUTPUT
Definition: LArCellMuxAlg.h:35
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
GlobalSim::GlobalLArCellContainer::getMuxForFeb2
const std::string & getMuxForFeb2(const std::string &feb2Key) const
Function to get the associated MUX name for a given FEB2.
Definition: GlobalLArCellContainer.cxx:102
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:16
GlobalSim::GlobalLArCellContainer::muxInOverflow
bool muxInOverflow(const std::string &muxKey) const
Check if a given MUX is in overflow.
Definition: GlobalLArCellContainer.cxx:144
a
TList * a
Definition: liststreamerinfos.cxx:10
GlobalSim::LArCellMuxAlg::m_writeMuxInputBitstreamToFile
Gaudi::Property< bool > m_writeMuxInputBitstreamToFile
Flag to enable writing of MUX input bitstreams (FEB2/LASP -> MUX) to file.
Definition: LArCellMuxAlg.h:66
h
GlobalSim::LArCellMuxAlg::m_eventInfo
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Key for the EventInfo object.
Definition: LArCellMuxAlg.h:60
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
copySelective.target
string target
Definition: copySelective.py:36
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:23
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
xAOD::EventInfo_v1::bcid
uint32_t bcid() const
The bunch crossing ID of the event.
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
GlobalSim::LArCellMuxAlg::assembleBitsetForFeb2
std::bitset< FEB2_BITSTREAM_SIZE > assembleBitsetForFeb2(const std::vector< GlobalSim::GlobalLArCell * > &cells, std::size_t maxCells, bool inOverflow, bool inError, uint32_t bcid) const
Function which compiles the bitset for one particular FEB2.
Definition: LArCellMuxAlg.cxx:110
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
GlobalSim::GlobalLArCellContainer::muxInError
bool muxInError(const std::string &muxKey) const
Check if a given MUX is in error.
Definition: GlobalLArCellContainer.cxx:151