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

An AlgTool class to help converting LAr raw data objects to/from ByteStream. More...

#include <LArRawDataContByteStreamTool.h>

Inheritance diagram for LArRawDataContByteStreamTool:
Collaboration diagram for LArRawDataContByteStreamTool:

Public Types

using FEA_t = FullEventAssembler< RodRobIdMap >
 

Public Member Functions

 LArRawDataContByteStreamTool (const std::string &type, const std::string &name, const IInterface *parent)
 Constructor Standard AlgTool constructor. More...
 
virtual ~LArRawDataContByteStreamTool ()
 Destructor. More...
 
virtual StatusCode initialize () override
 
virtual StatusCode finalize () override
 
template<class COLLECTION , typename ... ARGS>
StatusCode convert (const RawEvent *re, COLLECTION *digit_cont, CaloGain::CaloGain gain, ARGS &&... args) const
 Templated conversion class form Raw Event to a container. More...
 
StatusCode WriteLArDigits (const LArDigitContainer *digit_cont, FEA_t &fea) const
 Fill channels from LArDigitContainer to a FullEvent. More...
 
StatusCode WriteLArCalibDigits (const LArCalibDigitContainer *digit_cont, FEA_t &fea) const
 Fill channels from LArCalibDigitContainer to a FullEvent. More...
 
StatusCode WriteLArRawChannels (const LArRawChannelContainer *CannelCont, FEA_t &fea) const
 Fill channels from LArRawChannelContainer to a FullEvent. More...
 
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 sysInitialize () override
 Perform system initialization for an algorithm. 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 > &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 Member Functions

static const InterfaceID & interfaceID ()
 AlgTool InterfaceID. More...
 

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

using RobIndex_t = std::map< eformat::SubDetectorGroup, std::vector< const uint32_t * > >
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode prepareRobIndex (const RawEvent *event, RobIndex_t &robIndex) const
 Prepare ROB index before conversion. More...
 
std::unique_ptr< LArRodBlockStructuremakeRodBlockStructure () const
 Construct a RodBlockStructure instance of the proper concrete type. More...
 
template<class COLLECTION >
bool checkGainConsistency (const COLLECTION *coll) const
 Check that all elements in a container have the same gain. More...
 
const Hid2RESrcIDgetHid2RESrcID (const LArFebRodMapping &rodMapping) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

CxxUtils::CachedUniquePtr< Hid2RESrcIDm_hid2re
 Contains the mapping from channel to ROD (writing only) More...
 
PublicToolHandle< LArRodDecoderm_decoder { this, "LArRodDecoder", "LArRodDecoder", "LArRodDecoder" }
 
unsigned m_DSPRunMode
 Indicates which version of DSP code should be used for writing. More...
 
unsigned short m_RodBlockVersion
 Minor ROD block version This is equivalent to the lower 16 bits of the version word in the ROD block header. More...
 
bool m_initializeForWriting
 JobOption to intitialize services needed only for writing. More...
 
uint16_t m_subDetId
 
double m_nfebsigma
 
bool m_includeDigits
 
std::string m_DigitContName
 
const LArOnlineIDm_onlineHelper = nullptr
 
SG::ReadCondHandleKey< CaloNoisem_caloNoiseKey { this, "CaloNoiseKey", "totalNoise", "" }
 
SG::ReadCondHandleKey< LArOnOffIdMappingm_onOffIdMappingKey { this, "OnOffIdMappingKey", "LArOnOffIdMap", "LArOnOffIdMap" }
 
SG::ReadCondHandleKey< LArFebRodMappingm_febRodMappingKey { this, "FebRodMappingKey", "LArFebRodMap", "LArFebRodMap" }
 
SG::ReadCondHandleKey< CaloDetDescrManagerm_caloMgrKey { this, "CaloDetDescrManager", "CaloDetDescrManager", "SG Key for CaloDetDescrManager in the Condition Store" }
 
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

An AlgTool class to help converting LAr raw data objects to/from ByteStream.

This tool is used for reading as well as writing. It's main prupose is to find all LAr-Fragment in the full byte-stream event

Definition at line 48 of file LArRawDataContByteStreamTool.h.

Member Typedef Documentation

◆ FEA_t

Definition at line 50 of file LArRawDataContByteStreamTool.h.

◆ RobIndex_t

using LArRawDataContByteStreamTool::RobIndex_t = std::map<eformat::SubDetectorGroup, std::vector<const uint32_t*> >
private

Definition at line 118 of file LArRawDataContByteStreamTool.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ LArRawDataContByteStreamTool()

LArRawDataContByteStreamTool::LArRawDataContByteStreamTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Constructor Standard AlgTool constructor.

Definition at line 42 of file LArRawDataContByteStreamTool.cxx.

45 { declareInterface< LArRawDataContByteStreamTool >( this );
46  declareProperty("DSPRunMode",m_DSPRunMode=4);
47  declareProperty("RodBlockVersion",m_RodBlockVersion=0);
48  declareProperty("FebNoiseCut",m_nfebsigma=2);
49  declareProperty("InitializeForWriting",m_initializeForWriting=false);
50  declareProperty("SubDetectorId",m_subDetId=0);
51  declareProperty("IncludeDigits",m_includeDigits=false);
52  declareProperty("DigitsContainer",m_DigitContName="LArDigitContainer_MC_Thinned");
53 }

◆ ~LArRawDataContByteStreamTool()

LArRawDataContByteStreamTool::~LArRawDataContByteStreamTool ( )
virtual

Destructor.

Definition at line 55 of file LArRawDataContByteStreamTool.cxx.

55  {
56 }

Member Function Documentation

◆ checkGainConsistency()

template<class COLLECTION >
bool LArRawDataContByteStreamTool::checkGainConsistency ( const COLLECTION *  coll) const
private

Check that all elements in a container have the same gain.

Parameters
collPointer to input container (template)
Returns
false if an incosistency is detected

◆ convert()

template<class COLLECTION , typename ... ARGS>
StatusCode LArRawDataContByteStreamTool::convert ( const RawEvent re,
COLLECTION *  digit_cont,
CaloGain::CaloGain  gain,
ARGS &&...  args 
) const

Templated conversion class form Raw Event to a container.

Parameters
RawEventFull event in ByteStream format as defined in ByteStreamData/RawEvent.h
COLLECTIONTemplate for the raw data container. Can be the containers of LArRawChannel, LArDigit, LArCalibDigit, LArFebHeader or LArAccumulatedCalibDigit or LArAccumulatedDigit
gainFor fixed-gain mode (e.g. calibration digits), indicates which gain should be read
Returns
Gaudi StatusCode

Iterates though all levels of the Atlas ByteStream format (aka eformat) to get all ROD fragments belonging to LAr. Methods from LArRodDecoder are used to deal with the individual ROD fragments.

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  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< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  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< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  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< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::declareProperty ( Gaudi::Property< T > &  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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::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

◆ finalize()

StatusCode LArRawDataContByteStreamTool::finalize ( )
overridevirtual

Definition at line 92 of file LArRawDataContByteStreamTool.cxx.

93 {
95  return StatusCode::SUCCESS;
96 }

◆ getHid2RESrcID()

const Hid2RESrcID & LArRawDataContByteStreamTool::getHid2RESrcID ( const LArFebRodMapping rodMapping) const
private

Definition at line 468 of file LArRawDataContByteStreamTool.cxx.

469 {
470  if (!m_hid2re) {
471  auto hid2re = std::make_unique<Hid2RESrcID>();
472  if (hid2re->initialize (rodMapping).isFailure()) {
473  std::abort();
474  }
475  m_hid2re.set (std::move (hid2re));
476  }
477  return *m_hid2re.get();
478 }

◆ initialize()

StatusCode LArRawDataContByteStreamTool::initialize ( )
overridevirtual

Definition at line 60 of file LArRawDataContByteStreamTool.cxx.

61 {
63  ATH_MSG_DEBUG ( "Initializing LArRawDataContByteStream" );
64 
65  ATH_CHECK( m_decoder.retrieve() );
66 
68  if (m_DSPRunMode == 0) {
69  // Obsolete mode
70  ATH_MSG_ERROR ( "LArRodBlockStructure type 0 is obsolete and can't be used any more." );
71  return StatusCode::FAILURE;
72  }
73 
74  ATH_CHECK( detStore()->retrieve (m_onlineHelper, "LArOnlineID") );
75 
76  ATH_MSG_INFO ( "Initialization done for reading and writing" );
77  }
78  else {
79  ATH_MSG_INFO ( "Initialization done for reading only" );
80  }
81 
86 
87  return StatusCode::SUCCESS;
88 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::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.

◆ interfaceID()

const InterfaceID & LArRawDataContByteStreamTool::interfaceID ( )
static

AlgTool InterfaceID.

Definition at line 37 of file LArRawDataContByteStreamTool.cxx.

38 { return IID_ILArRawDataContByteStreamTool; }

◆ makeRodBlockStructure()

std::unique_ptr< LArRodBlockStructure > LArRawDataContByteStreamTool::makeRodBlockStructure ( ) const
private

Construct a RodBlockStructure instance of the proper concrete type.

Definition at line 425 of file LArRawDataContByteStreamTool.cxx.

426 {
427  switch(m_DSPRunMode) {
428  case 0: // Obsolete; shouldn't get here.
429  std::abort();
430 
431  case 2: //Transparent mode, DSP just copies FEB-data
432  ATH_MSG_DEBUG ( "Set Rod Block Type to LArRodBlockTransparent (#2)" );
433  return std::make_unique<LArRodBlockTransparentV0<LArRodBlockHeaderTransparentV0> >();
434  break;
435 
436  case 7: //Calibration mode
437  ATH_MSG_DEBUG ( "Set Rod Block Type to LArRodBlockCalibration (#7)" );
438  return std::make_unique<LArRodBlockCalibrationV0<LArRodBlockHeaderCalibrationV0> >();
439  break;
440 
441  case 4: //Physics assembly mode
442  if ( m_RodBlockVersion == 10 ){
443  ATH_MSG_DEBUG ( "Set Rod Block Type to LArRodBlockPhysics (#5)" );
444  return std::make_unique<LArRodBlockPhysicsV5>();
445  }
446  else if ( m_RodBlockVersion == 12 ){
447  ATH_MSG_DEBUG ( "Set Rod Block Type to LArRodBlockPhysics (#6)" );
448  return std::make_unique<LArRodBlockPhysicsV6>();
449  }
450  else {
451  ATH_MSG_DEBUG ( "Set Rod Block Type to LArRodBlockPhysics (#4)" );
452  return std::make_unique<LArRodBlockPhysicsV0>();
453  }
454  break;
455 
456  case 5: //Physics assembly mode
457  ATH_MSG_DEBUG ( "Set Rod Block Type to LArRodBlockPhysics (#5)" );
458  return std::make_unique<LArRodBlockPhysicsV3>();
459 
460  default:
461  ATH_MSG_WARNING ( "DSP runmode " << m_DSPRunMode << " is unknown. Using physics assembly mode (#4) by default" );
462  return std::make_unique<LArRodBlockPhysicsV0>();
463  }
464 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::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< AlgTool >::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< AlgTool > >::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.

◆ prepareRobIndex()

StatusCode LArRawDataContByteStreamTool::prepareRobIndex ( const RawEvent event,
RobIndex_t robIndex 
) const
private

Prepare ROB index before conversion.

Definition at line 393 of file LArRawDataContByteStreamTool.cxx.

395 {
396  // This `optimization' leads to disaster if there ever happen to be
397  // two adjacent events with identical L1 IDs --- in that case,
398  // we'd be using the dangling ROB pointers from the last event.
399  // We should generally come through here only once per event anyway.
400  ATH_MSG_DEBUG( "Converting event (from ByteStream)" );
401 
402  if (!re) {
403  ATH_MSG_ERROR ( "RawEvent passed to 'convert'-function is a null pointer!" );
404  return StatusCode::FAILURE;
405  }
406 
407  if (!m_decoder->check_valid (re, msg())) return StatusCode::FAILURE;
408 
409  ATH_MSG_VERBOSE ( "Full Event:" );
410  ATH_MSG_VERBOSE ( MSG::hex << "Full source ID: " << re->source_id() << MSG::dec );
411  ATH_MSG_VERBOSE ("Fragment size in words: " << re->fragment_size_word() );
412 
413  // Need to clear up or it will accumulate
414  robIndex.clear();
415  eformat::helper::build_toc(*re, robIndex );
416  if ( robIndex.empty() ) { // This is a problem
417  return StatusCode::FAILURE;
418  }
419  return StatusCode::SUCCESS;
420 }

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

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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  }

◆ WriteLArCalibDigits()

StatusCode LArRawDataContByteStreamTool::WriteLArCalibDigits ( const LArCalibDigitContainer digit_cont,
FEA_t fea 
) const

Fill channels from LArCalibDigitContainer to a FullEvent.

Parameters
digit_contPointer to LArCalibDigitContainer (input)
feaPointer to FullEventAssember (output)
Returns
Gaudi StatusCode

Definition at line 200 of file LArRawDataContByteStreamTool.cxx.

202 {
203  if (!m_initializeForWriting) {
204  ATH_MSG_ERROR ( "Tool not setup for writing! Use property "
205  << name()<<".InitializeForWriting" );
206  return StatusCode::FAILURE;
207  }
208  ATH_MSG_DEBUG ( "Writing LArCalibDigitContainer to ByteStream" );
209  if (!digitCont) {
210  ATH_MSG_DEBUG ( "Null pointer passed to WriteLArCalibDigit routine!" );
211  return StatusCode::FAILURE;
212  }
213 
214  std::unique_ptr<LArRodBlockStructure> blstruct = makeRodBlockStructure();
215 
216  if (!blstruct->canSetCalibration()|| !blstruct->canSetRawDataFixed()) {
217  ATH_MSG_DEBUG ( "This instance of LArRodBlockStructure can't hold LArCalibDigits!" );
218  return StatusCode::FAILURE;
219  }
220  //prepareWriting();
221  fea.setRodMinorVersion(m_RodBlockVersion);
222  fea.setDetEvtType(m_DSPRunMode);
223  ATH_MSG_DEBUG ( "Setting Detector Event Type to " << m_DSPRunMode
224  << "and Minor Version Number to " << m_RodBlockVersion );
225  FEA_t::RODDATA* theROD;
226  LArCalibDigitContainer::const_iterator it_b=digitCont->begin();
227  LArCalibDigitContainer::const_iterator it_e=digitCont->end();
228  if (it_b==it_e) {
229  ATH_MSG_WARNING ( "Attempt to persistify a empty LArDigitContainer to ByteStream" );
230  return StatusCode::SUCCESS;
231  }
232  if (!checkGainConsistency(digitCont)) {
233  ATH_MSG_ERROR ( "Inconsistent gain in LArCalibDigitContainer" );
234  return StatusCode::FAILURE;
235  }
236 
237  const EventContext& ctx = Gaudi::Hive::currentContext();
241  const Hid2RESrcID& hid2re = getHid2RESrcID (**febRodMapping);
242 
243  std::map<uint32_t, LArRodEncoder> mapEncoder;
244 
245  auto getEncoder = [&] (uint32_t reid) -> LArRodEncoder&
246  { return mapEncoder.try_emplace (reid,
248  **caloMgr,
249  **onOffMapping,
250  blstruct.get()).first->second; };
251 
252  unsigned n=0;
253  int fixgain=(*it_b)->gain();
254 
255  // Sorting Channels by ROD
256  for(; it_b!=it_e; ++it_b){
257  const LArCalibDigit* digit = *it_b;
258  HWIdentifier chid = digit->hardwareID() ;
259  uint32_t reid = hid2re.getRodID( **febRodMapping, chid );
260  getEncoder(reid).add (digit, fixgain);
261  n++;
262  }
263 
264  ATH_MSG_VERBOSE(" number of channels in the LArCalibDigitContainer for gain "
265  << fixgain << ": "<<n );
266 
268 
269  // Now loop over map and fill all ROD Data Blocks
270  std::map<uint32_t,LArRodEncoder>::iterator it =mapEncoder.begin();
271  std::map<uint32_t,LArRodEncoder>::iterator it_end=mapEncoder.end();
272  // LArRodEncoder has collected all the channels, now can fill the
273  // ROD block data.
274  for(; it!=it_end;++it) {
275  theROD = fea.getRodData( (*it).first );
276  ((*it).second).fillROD( *theROD,msg(), **noise, m_nfebsigma ) ;
277  }
278  ATH_MSG_DEBUG ( "Filled " << mapEncoder.size() << " Rod Blocks" );
279  return StatusCode::SUCCESS;
280 }

◆ WriteLArDigits()

StatusCode LArRawDataContByteStreamTool::WriteLArDigits ( const LArDigitContainer digit_cont,
FEA_t fea 
) const

Fill channels from LArDigitContainer to a FullEvent.

Parameters
digit_contPointer to LArDigitContainer (input)
feaPointer to FullEventAssember (output)
Returns
Gaudi StatusCode

Definition at line 100 of file LArRawDataContByteStreamTool.cxx.

102 {
103  if (!m_initializeForWriting) {
104  ATH_MSG_ERROR ( "Tool not setup for writing! Use property "
105  << name()<<".InitializeForWriting" );
106  return StatusCode::FAILURE;
107  }
108  ATH_MSG_DEBUG ( "Writing LArDigitContainer to ByteStream" );
109  if (!digitCont) {
110  ATH_MSG_ERROR ( "Null pointer passed to WriteLArDigit routine!" );
111  return StatusCode::FAILURE;
112  }
113 
114  std::unique_ptr<LArRodBlockStructure> blstruct = makeRodBlockStructure();
115 
116  if (!blstruct->canSetRawData() && !blstruct->canSetRawDataFixed()) {
117  ATH_MSG_DEBUG ( "This instance of LArRodBlockStructure can't hold LArDigits!" );
118  return StatusCode::FAILURE;
119  }
120  //prepareWriting();
121  fea.setRodMinorVersion(m_RodBlockVersion);
122  fea.setDetEvtType(m_DSPRunMode);
123  ATH_MSG_DEBUG ( "Setting Detector Event Type to " << m_DSPRunMode
124  << " and Minor Version Number to " << m_RodBlockVersion );
125  FEA_t::RODDATA* theROD;
126  LArDigitContainer::const_iterator it_b=digitCont->begin();
127  LArDigitContainer::const_iterator it_e=digitCont->end();
128  if (it_b==it_e) {
129  ATH_MSG_WARNING ( "Attempt to persistify an empty LArDigitContainer to ByteStream" );
130  return StatusCode::SUCCESS;
131  }
132 
133  const EventContext& ctx = Gaudi::Hive::currentContext();
137  const Hid2RESrcID& hid2re = getHid2RESrcID (**febRodMapping);
138 
139  std::map<uint32_t, LArRodEncoder> mapEncoder;
140 
141  auto getEncoder = [&] (uint32_t reid) -> LArRodEncoder&
142  { return mapEncoder.try_emplace (reid,
144  **caloMgr,
145  **onOffMapping,
146  blstruct.get()).first->second; };
147 
148  unsigned n=0;
149  if (blstruct->canSetRawDataFixed() && checkGainConsistency(digitCont))
150  {//Set fixed gain raw data
151  int fixgain=(*it_b)->gain();
152  ATH_MSG_DEBUG(" number of Digits in LArDigitContainer for gain " << fixgain << ": "
153  << digitCont->size() );
154  // Sorting Channels by ROD
155  for(; it_b!=it_e; ++it_b){
156  const LArDigit* digit = *it_b;
157  HWIdentifier chid = digit->hardwareID() ;
158  uint32_t reid = hid2re.getRodID( **febRodMapping, chid );
159  getEncoder(reid).add (digit, fixgain);
160  n++;
161  }
162  ATH_MSG_VERBOSE(" number of channels in the LArDigitContainer for gain "
163  << fixgain << ": "<<n );
164  } // end if
165  else
166  if (blstruct->canSetRawData()) { //Set free gain raw data
167  ATH_MSG_DEBUG(" number of channels in LArDigit container: "<< digitCont->size() );
168 
169  // Sorting Channels by ROD
170  for(; it_b!=it_e; ++it_b){
171  const LArDigit* digit = *it_b;
172  HWIdentifier chid = digit->hardwareID() ;
173  uint32_t reid = hid2re.getRodID( **febRodMapping, chid );
174  getEncoder(reid).add (digit);
175  n++;
176  }
177  ATH_MSG_VERBOSE(" number of channels added to framgent: "<<n );
178  }// end else-if(can set Raw data)
179 
181 
182  // Now loop over map and fill all ROD Data Blocks
183  std::map<uint32_t,LArRodEncoder>::iterator it =mapEncoder.begin();
184  std::map<uint32_t,LArRodEncoder>::iterator it_end=mapEncoder.end();
185  // LArRodEncoder has collected all the channels, now can fill the
186  // ROD block data.
187  for(; it!=it_end;++it) {
188  theROD = fea.getRodData( (*it).first );
189  ((*it).second).fillROD(*theROD,msg(), **noise, m_nfebsigma ) ;
190  }
191  ATH_MSG_DEBUG ( "Filled " << mapEncoder.size() << " Rod Blocks" );
192  // Finally, fill full event
193  //fea.fill(re,log);
194  return StatusCode::SUCCESS;
195 }

◆ WriteLArRawChannels()

StatusCode LArRawDataContByteStreamTool::WriteLArRawChannels ( const LArRawChannelContainer CannelCont,
FEA_t fea 
) const

Fill channels from LArRawChannelContainer to a FullEvent.

Parameters
digit_contPointer to LArRawChannelContainer (input)
feaPointer to FullEventAssember (output)
Returns
Gaudi StatusCode

Definition at line 284 of file LArRawDataContByteStreamTool.cxx.

286 {
287  if (!m_initializeForWriting) {
288  ATH_MSG_ERROR ( "Tool not setup for writing! Use property "
289  << name()<<".InitializeForWriting" );
290  return StatusCode::FAILURE;
291  }
292  if (!channelCont) {
293  ATH_MSG_DEBUG ( "Null pointer passed to WriteLArCalibDigit routine!" );
294  return StatusCode::FAILURE;
295  }
296 
297  std::unique_ptr<LArRodBlockStructure> blstruct = makeRodBlockStructure();
298 
299  if (!blstruct->canSetEnergy()) {
300  ATH_MSG_DEBUG ( "This instance of LArRodBlockStructure can't hold LArRawChannels!" );
301  return StatusCode::FAILURE;
302  }
303  FEA_t::RODDATA* theROD;
304  fea.setRodMinorVersion(m_RodBlockVersion);
305  fea.setDetEvtType(m_DSPRunMode);
306  ATH_MSG_DEBUG ( "Setting Detector Event Type to " << m_DSPRunMode
307  << "and Minor Version Number to " << m_RodBlockVersion );
308  LArRawChannelContainer::const_iterator it = channelCont->begin();
309  LArRawChannelContainer::const_iterator it_e= channelCont->end();
310  if ( it==it_e) {
311  ATH_MSG_WARNING ( "Attempt to persistify a empty LArDigitContainer to ByteStream" );
312  return StatusCode::SUCCESS;
313  }
314 
315  const EventContext& ctx = Gaudi::Hive::currentContext();
319  const Hid2RESrcID& hid2re = getHid2RESrcID (**febRodMapping);
320 
321  std::map<uint32_t, LArRodEncoder> mapEncoder;
322 
323  auto getEncoder = [&] (uint32_t reid) -> LArRodEncoder&
324  { return mapEncoder.try_emplace (reid,
326  **caloMgr,
327  **onOffMapping,
328  blstruct.get()).first->second; };
329 
330  //LArRodEncoder* Encoder = NULL;
331  //uint32_t last_reid(0x0);
332  //unsigned n=0; //For debug only
333  ATH_MSG_DEBUG(" number of LArRawChannel container "<< channelCont->size() );
334  for(; it!=it_e; ++it){
335  const LArRawChannel& rawChan = *it;
336  HWIdentifier chid = rawChan.channelID() ;
337  uint32_t reid = hid2re.getRodID( **febRodMapping, chid );
338 
339 /*
340  if ( reid != last_reid ) {
341  last_reid = reid;
342  // The guy does not exist
343  // This will create it
344  getEncoder(reid).add(&rawChan);
345  // This will get its address
346  Encoder = &(mapEncoder[reid]);
347  } else Encoder->add(&rawChan) ; // Encoder already there
348 */
349  getEncoder(reid).add (&rawChan);
350  }
351  // I may want to also include the digits
352  if ( m_includeDigits ) {
353  const LArDigitContainer* digitCont = nullptr;
354  if ( evtStore()->retrieve(digitCont,m_DigitContName).isFailure() ){
355  ATH_MSG_ERROR ( "Digits required but not really found" );
356  } else {
357  if ( blstruct->canIncludeRawData() ){
358  LArDigitContainer::const_iterator it_b=digitCont->begin();
359  LArDigitContainer::const_iterator it_e=digitCont->end();
360  if (it_b==it_e) {
361  ATH_MSG_WARNING ( "Attempt to persistify a empty LArDigitContainer to ByteStream" );
362  }
363  for(; it_b!=it_e; ++it_b){
364  const LArDigit* digit = *it_b;
365  HWIdentifier chid = digit->hardwareID() ;
366  uint32_t reid = hid2re.getRodID( **febRodMapping, chid );
367  // Lets use anygain for the moment
368  getEncoder(reid).add (digit);
369  }
370  } // End of check whether format allows to include RawData
371  } // Finish checking for Digit container in SG
372  } // End of check for digits inclusion
373 
375 
376  // Now loop over map and fill all ROD Data Blocks
377  std::map<uint32_t,LArRodEncoder>::iterator it_m =mapEncoder.begin();
378  std::map<uint32_t,LArRodEncoder>::iterator it_m_e=mapEncoder.end();
379  // LArRodEncoder has collected all the channels, now can fill the
380  // ROD block data.
381  for(; it_m!=it_m_e;++it_m) {
382  theROD = fea.getRodData( (*it_m).first );
383  ((*it_m).second).fillROD( *theROD,msg(), **noise, m_nfebsigma ) ;
384  // delete ((*it_m).second);
385  // ((*it_m).second)=NULL;
386  }
387  ATH_MSG_DEBUG ( "Filled " << mapEncoder.size() << " Rod Blocks" );
388  return StatusCode::SUCCESS;
389 }

Member Data Documentation

◆ m_caloMgrKey

SG::ReadCondHandleKey<CaloDetDescrManager> LArRawDataContByteStreamTool::m_caloMgrKey { this, "CaloDetDescrManager", "CaloDetDescrManager", "SG Key for CaloDetDescrManager in the Condition Store" }
private

Definition at line 174 of file LArRawDataContByteStreamTool.h.

◆ m_caloNoiseKey

SG::ReadCondHandleKey<CaloNoise> LArRawDataContByteStreamTool::m_caloNoiseKey { this, "CaloNoiseKey", "totalNoise", "" }
private

Definition at line 165 of file LArRawDataContByteStreamTool.h.

◆ m_decoder

PublicToolHandle<LArRodDecoder> LArRawDataContByteStreamTool::m_decoder { this, "LArRodDecoder", "LArRodDecoder", "LArRodDecoder" }
private

Definition at line 138 of file LArRawDataContByteStreamTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_DigitContName

std::string LArRawDataContByteStreamTool::m_DigitContName
private

Definition at line 161 of file LArRawDataContByteStreamTool.h.

◆ m_DSPRunMode

unsigned LArRawDataContByteStreamTool::m_DSPRunMode
private

Indicates which version of DSP code should be used for writing.

This is equivalent to the DetectorEventType word in the ROD block header. Only for writing.

Definition at line 145 of file LArRawDataContByteStreamTool.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_febRodMappingKey

SG::ReadCondHandleKey<LArFebRodMapping> LArRawDataContByteStreamTool::m_febRodMappingKey { this, "FebRodMappingKey", "LArFebRodMap", "LArFebRodMap" }
private

Definition at line 171 of file LArRawDataContByteStreamTool.h.

◆ m_hid2re

CxxUtils::CachedUniquePtr<Hid2RESrcID> LArRawDataContByteStreamTool::m_hid2re
private

Contains the mapping from channel to ROD (writing only)

Definition at line 137 of file LArRawDataContByteStreamTool.h.

◆ m_includeDigits

bool LArRawDataContByteStreamTool::m_includeDigits
private

Definition at line 159 of file LArRawDataContByteStreamTool.h.

◆ m_initializeForWriting

bool LArRawDataContByteStreamTool::m_initializeForWriting
private

JobOption to intitialize services needed only for writing.

Definition at line 155 of file LArRawDataContByteStreamTool.h.

◆ m_nfebsigma

double LArRawDataContByteStreamTool::m_nfebsigma
private

Definition at line 157 of file LArRawDataContByteStreamTool.h.

◆ m_onlineHelper

const LArOnlineID* LArRawDataContByteStreamTool::m_onlineHelper = nullptr
private

Definition at line 163 of file LArRawDataContByteStreamTool.h.

◆ m_onOffIdMappingKey

SG::ReadCondHandleKey<LArOnOffIdMapping> LArRawDataContByteStreamTool::m_onOffIdMappingKey { this, "OnOffIdMappingKey", "LArOnOffIdMap", "LArOnOffIdMap" }
private

Definition at line 168 of file LArRawDataContByteStreamTool.h.

◆ m_RodBlockVersion

unsigned short LArRawDataContByteStreamTool::m_RodBlockVersion
private

Minor ROD block version This is equivalent to the lower 16 bits of the version word in the ROD block header.

Only for writing.

Definition at line 151 of file LArRawDataContByteStreamTool.h.

◆ m_subDetId

uint16_t LArRawDataContByteStreamTool::m_subDetId
private

Definition at line 156 of file LArRawDataContByteStreamTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:50
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
LArRawDataContByteStreamTool::m_includeDigits
bool m_includeDigits
Definition: LArRawDataContByteStreamTool.h:159
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
LArRawChannel::channelID
HWIdentifier channelID() const
Definition: LArRawChannel.h:158
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
LArRawDataContByteStreamTool::m_decoder
PublicToolHandle< LArRodDecoder > m_decoder
Definition: LArRawDataContByteStreamTool.h:139
initialize
void initialize()
Definition: run_EoverP.cxx:894
Hid2RESrcID::getRodID
uint32_t getRodID(const LArFebRodMapping &rodMapping, const HWIdentifier &hid) const
make a ROD SrcID for a HWIdentifier
Definition: Hid2RESrcID.cxx:88
LArRawDataContByteStreamTool::m_DSPRunMode
unsigned m_DSPRunMode
Indicates which version of DSP code should be used for writing.
Definition: LArRawDataContByteStreamTool.h:145
skel.it
it
Definition: skel.GENtoEVGEN.py:396
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
checkRpcDigits.digit
digit
Definition: checkRpcDigits.py:186
HWIdentifier
Definition: HWIdentifier.h:13
LArRodBlockStructure::canSetRawData
virtual bool canSetRawData()
Definition: LArRodBlockStructure.h:97
AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
LArRawDataContByteStreamTool::getHid2RESrcID
const Hid2RESrcID & getHid2RESrcID(const LArFebRodMapping &rodMapping) const
Definition: LArRawDataContByteStreamTool.cxx:468
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
LArRawDataContByteStreamTool::checkGainConsistency
bool checkGainConsistency(const COLLECTION *coll) const
Check that all elements in a container have the same gain.
LArRawDataContByteStreamTool::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition: LArRawDataContByteStreamTool.h:163
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
LArRawDataContByteStreamTool::m_initializeForWriting
bool m_initializeForWriting
JobOption to intitialize services needed only for writing.
Definition: LArRawDataContByteStreamTool.h:155
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
LArRodBlockStructure::canIncludeRawData
virtual bool canIncludeRawData()
Definition: LArRodBlockStructure.h:101
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
LArDigit
Liquid Argon digit base class.
Definition: LArDigit.h:25
LArRawChannel
Liquid Argon ROD output object base class.
Definition: LArRawChannel.h:40
LArRawDataContByteStreamTool::m_febRodMappingKey
SG::ReadCondHandleKey< LArFebRodMapping > m_febRodMappingKey
Definition: LArRawDataContByteStreamTool.h:172
beamspotman.n
n
Definition: beamspotman.py:731
LArRawDataContByteStreamTool::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: LArRawDataContByteStreamTool.h:175
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
LArRodBlockStructure::canSetRawDataFixed
virtual bool canSetRawDataFixed()
Definition: LArRodBlockStructure.h:98
LArRodBlockStructure::canSetCalibration
virtual bool canSetCalibration()
Definition: LArRodBlockStructure.h:99
LArRawDataContByteStreamTool::m_subDetId
uint16_t m_subDetId
Definition: LArRawDataContByteStreamTool.h:156
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
LArRawDataContByteStreamTool::m_caloNoiseKey
SG::ReadCondHandleKey< CaloNoise > m_caloNoiseKey
Definition: LArRawDataContByteStreamTool.h:166
Hid2RESrcID
Definition: Hid2RESrcID.h:38
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
LArRawDataContByteStreamTool::makeRodBlockStructure
std::unique_ptr< LArRodBlockStructure > makeRodBlockStructure() const
Construct a RodBlockStructure instance of the proper concrete type.
Definition: LArRawDataContByteStreamTool.cxx:425
LArRawDataContByteStreamTool::m_nfebsigma
double m_nfebsigma
Definition: LArRawDataContByteStreamTool.h:157
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArCalibDigit
Base class for LArDigits taken during calibration runs.
Definition: LArCalibDigit.h:29
LArRawDataContByteStreamTool::m_onOffIdMappingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_onOffIdMappingKey
Definition: LArRawDataContByteStreamTool.h:169
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
LArRodBlockStructure::canSetEnergy
virtual bool canSetEnergy()
Definition: LArRodBlockStructure.h:96
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
LArRawDataContByteStreamTool::m_hid2re
CxxUtils::CachedUniquePtr< Hid2RESrcID > m_hid2re
Contains the mapping from channel to ROD (writing only)
Definition: LArRawDataContByteStreamTool.h:137
a
TList * a
Definition: liststreamerinfos.cxx:10
h
LArRodEncoder
This class provides conversion from LArRawChannel and LArDigit to ROD format.
Definition: LArRodEncoder.h:55
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
DeMoScan.first
bool first
Definition: DeMoScan.py:536
re
const boost::regex re(r_e)
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
LArDigitContainer
Container class for LArDigit.
Definition: LArDigitContainer.h:24
LArRawDataContByteStreamTool::m_RodBlockVersion
unsigned short m_RodBlockVersion
Minor ROD block version This is equivalent to the lower 16 bits of the version word in the ROD block ...
Definition: LArRawDataContByteStreamTool.h:151
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
FullEventAssembler::RODDATA
std::vector< uint32_t > RODDATA
ROD data as a vector of unsigned int.
Definition: FullEventAssembler.h:54
LArRawDataContByteStreamTool::m_DigitContName
std::string m_DigitContName
Definition: LArRawDataContByteStreamTool.h:161
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
WriteCellNoiseToCool.noise
noise
Definition: WriteCellNoiseToCool.py:380
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
fitman.k
k
Definition: fitman.py:528