![]() |
ATLAS Offline Software
|
An AlgTool class to help converting LAr raw data objects to/from ByteStream. More...
#include <LArRawDataContByteStreamTool.h>
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. | |
| virtual | ~LArRawDataContByteStreamTool () |
| Destructor. | |
| 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. | |
| StatusCode | WriteLArDigits (const LArDigitContainer *digit_cont, FEA_t &fea) const |
| Fill channels from LArDigitContainer to a FullEvent. | |
| StatusCode | WriteLArCalibDigits (const LArCalibDigitContainer *digit_cont, FEA_t &fea) const |
| Fill channels from LArCalibDigitContainer to a FullEvent. | |
| StatusCode | WriteLArRawChannels (const LArRawChannelContainer *CannelCont, FEA_t &fea) const |
| Fill channels from LArRawChannelContainer to a FullEvent. | |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Static Public Member Functions | |
| static const InterfaceID & | interfaceID () |
| AlgTool InterfaceID. | |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| 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. | |
Private Types | |
| using | RobIndex_t = std::map<eformat::SubDetectorGroup, std::vector<const uint32_t*> > |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| StatusCode | prepareRobIndex (const RawEvent *event, RobIndex_t &robIndex) const |
| Prepare ROB index before conversion. | |
| std::unique_ptr< LArRodBlockStructure > | makeRodBlockStructure () const |
| Construct a RodBlockStructure instance of the proper concrete type. | |
| template<class COLLECTION> | |
| bool | checkGainConsistency (const COLLECTION *coll) const |
| Check that all elements in a container have the same gain. | |
| const Hid2RESrcID & | getHid2RESrcID (const LArFebRodMapping &rodMapping) const |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| CxxUtils::CachedUniquePtr< Hid2RESrcID > | m_hid2re |
| Contains the mapping from channel to ROD (writing only) | |
| PublicToolHandle< LArRodDecoder > | m_decoder { this, "LArRodDecoder", "LArRodDecoder", "LArRodDecoder" } |
| unsigned | m_DSPRunMode |
| Indicates which version of DSP code should be used for writing. | |
| 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. | |
| bool | m_initializeForWriting |
| JobOption to intitialize services needed only for writing. | |
| uint16_t | m_subDetId |
| double | m_nfebsigma |
| bool | m_includeDigits |
| std::string | m_DigitContName |
| const LArOnlineID * | m_onlineHelper = nullptr |
| SG::ReadCondHandleKey< CaloNoise > | m_caloNoiseKey { this, "CaloNoiseKey", "totalNoise", "" } |
| SG::ReadCondHandleKey< LArOnOffIdMapping > | m_onOffIdMappingKey { this, "OnOffIdMappingKey", "LArOnOffIdMap", "LArOnOffIdMap" } |
| SG::ReadCondHandleKey< LArFebRodMapping > | m_febRodMappingKey { this, "FebRodMappingKey", "LArFebRodMap", "LArFebRodMap" } |
| SG::ReadCondHandleKey< CaloDetDescrManager > | m_caloMgrKey { this, "CaloDetDescrManager", "CaloDetDescrManager", "SG Key for CaloDetDescrManager in the Condition Store" } |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
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.
Definition at line 50 of file LArRawDataContByteStreamTool.h.
|
private |
Definition at line 118 of file LArRawDataContByteStreamTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| 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.
|
virtual |
|
private |
Check that all elements in a container have the same gain.
| coll | Pointer to input container (template) |
| StatusCode LArRawDataContByteStreamTool::convert | ( | const RawEvent * | re, |
| COLLECTION * | digit_cont, | ||
| CaloGain::CaloGain | gain, | ||
| ARGS &&... | args ) const |
Templated conversion class form Raw Event to a container.
| RawEvent | Full event in ByteStream format as defined in ByteStreamData/RawEvent.h |
| COLLECTION | Template for the raw data container. Can be the containers of LArRawChannel, LArDigit, LArCalibDigit, LArFebHeader or LArAccumulatedCalibDigit or LArAccumulatedDigit |
| gain | For fixed-gain mode (e.g. calibration digits), indicates which gain should be read |
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.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
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
|
overridevirtual |
Definition at line 92 of file LArRawDataContByteStreamTool.cxx.
|
private |
Definition at line 468 of file LArRawDataContByteStreamTool.cxx.
|
overridevirtual |
Definition at line 60 of file LArRawDataContByteStreamTool.cxx.
|
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.
|
static |
AlgTool InterfaceID.
Definition at line 37 of file LArRawDataContByteStreamTool.cxx.
|
private |
Construct a RodBlockStructure instance of the proper concrete type.
Definition at line 425 of file LArRawDataContByteStreamTool.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
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.
|
private |
Prepare ROB index before conversion.
Definition at line 393 of file LArRawDataContByteStreamTool.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
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 asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
| StatusCode LArRawDataContByteStreamTool::WriteLArCalibDigits | ( | const LArCalibDigitContainer * | digit_cont, |
| FEA_t & | fea ) const |
Fill channels from LArCalibDigitContainer to a FullEvent.
| digit_cont | Pointer to LArCalibDigitContainer (input) |
| fea | Pointer to FullEventAssember (output) |
Definition at line 200 of file LArRawDataContByteStreamTool.cxx.
| StatusCode LArRawDataContByteStreamTool::WriteLArDigits | ( | const LArDigitContainer * | digit_cont, |
| FEA_t & | fea ) const |
Fill channels from LArDigitContainer to a FullEvent.
| digit_cont | Pointer to LArDigitContainer (input) |
| fea | Pointer to FullEventAssember (output) |
Definition at line 100 of file LArRawDataContByteStreamTool.cxx.
| StatusCode LArRawDataContByteStreamTool::WriteLArRawChannels | ( | const LArRawChannelContainer * | CannelCont, |
| FEA_t & | fea ) const |
Fill channels from LArRawChannelContainer to a FullEvent.
| digit_cont | Pointer to LArRawChannelContainer (input) |
| fea | Pointer to FullEventAssember (output) |
Definition at line 284 of file LArRawDataContByteStreamTool.cxx.
|
private |
Definition at line 174 of file LArRawDataContByteStreamTool.h.
|
private |
Definition at line 165 of file LArRawDataContByteStreamTool.h.
|
private |
Definition at line 138 of file LArRawDataContByteStreamTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Definition at line 161 of file LArRawDataContByteStreamTool.h.
|
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.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
Definition at line 171 of file LArRawDataContByteStreamTool.h.
|
private |
Contains the mapping from channel to ROD (writing only)
Definition at line 137 of file LArRawDataContByteStreamTool.h.
|
private |
Definition at line 159 of file LArRawDataContByteStreamTool.h.
|
private |
JobOption to intitialize services needed only for writing.
Definition at line 155 of file LArRawDataContByteStreamTool.h.
|
private |
Definition at line 157 of file LArRawDataContByteStreamTool.h.
|
private |
Definition at line 163 of file LArRawDataContByteStreamTool.h.
|
private |
Definition at line 168 of file LArRawDataContByteStreamTool.h.
|
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.
|
private |
Definition at line 156 of file LArRawDataContByteStreamTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.