|
ATLAS Offline Software
|
#include <TriggerEDMDeserialiserAlg.h>
|
| TriggerEDMDeserialiserAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~TriggerEDMDeserialiserAlg () override=default |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute (const EventContext &context) const override |
|
virtual StatusCode | finalize () override |
|
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 > &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 |
|
|
void | add_bs_streamerinfos () |
|
StatusCode | deserialise (const Payload *dataptr) const |
| Performs actual deserialisation loop. More...
|
|
StatusCode | deserialiseDynAux (const std::string &transientTypeName, const std::string &persistentTypeName, const std::string &decorationName, void *obj, WritableAuxStore *currentAuxStore, SG::AuxVectorBase *interface) const |
| Handle decoration. More...
|
|
StatusCode | checkSanity (const std::string &transientTypeName, bool isxAODInterfaceContainer, bool isxAODAuxContainer, bool isDecoration, bool isTPContainer) const |
| Checker for data integrity, one and only one of the passed booleans can be true, else FAILURE is returned and relevant diagnostics printed. More...
|
|
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...
|
|
from the HLTResultMT Each serialised collection is a chunk of words with the content as described below. The [] == one word, the [...] more words. Format is as follows: [fragment size in words][CLID][size of serialised collection name][...serialised collection name ...][data payload in bytes][....data payload...] It follows from the TrigEDMSerialiserTool implementation.
Definition at line 28 of file TriggerEDMDeserialiserAlg.h.
◆ Payload
◆ PayloadIterator
◆ StoreGateSvc_t
◆ TriggerEDMDeserialiserAlg()
TriggerEDMDeserialiserAlg::TriggerEDMDeserialiserAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~TriggerEDMDeserialiserAlg()
virtual TriggerEDMDeserialiserAlg::~TriggerEDMDeserialiserAlg |
( |
| ) |
|
|
overridevirtualdefault |
◆ add_bs_streamerinfos()
void TriggerEDMDeserialiserAlg::add_bs_streamerinfos |
( |
| ) |
|
|
private |
Definition at line 500 of file TriggerEDMDeserialiserAlg.cxx.
501 std::lock_guard<std::mutex> lock(
s_mutex);
503 if (s_streamerInfoList) {
507 std::string extStreamerInfos =
"bs-streamerinfos.root";
510 TFile extFile(extFilePath.c_str());
512 s_streamerInfoList = std::unique_ptr<TList>(extFile.GetStreamerInfoList());
513 for(
const auto&& infObj: *s_streamerInfoList) {
514 TString t_name=infObj->GetName();
515 if (t_name.BeginsWith(
"listOfRules")){
520 TStreamerInfo*
inf =
dynamic_cast<TStreamerInfo*
>(infObj);
522 TClass *
cl =
inf->GetClass();
525 " checksum: " << std::hex <<
inf->GetCheckSum() << std::dec );
◆ cardinality()
unsigned int AthReentrantAlgorithm::cardinality |
( |
| ) |
const |
|
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 55 of file AthReentrantAlgorithm.cxx.
◆ checkSanity()
StatusCode TriggerEDMDeserialiserAlg::checkSanity |
( |
const std::string & |
transientTypeName, |
|
|
bool |
isxAODInterfaceContainer, |
|
|
bool |
isxAODAuxContainer, |
|
|
bool |
isDecoration, |
|
|
bool |
isTPContainer |
|
) |
| const |
|
private |
Checker for data integrity, one and only one of the passed booleans can be true, else FAILURE is returned and relevant diagnostics printed.
Definition at line 474 of file TriggerEDMDeserialiserAlg.cxx.
475 ATH_MSG_DEBUG(
"Recognised type " << transientTypeName <<
" as: "
476 << (isxAODInterfaceContainer ?
"xAOD Interface Container":
"" )
477 << (isxAODAuxContainer ?
"xAOD Aux Container ":
"" )
478 << ( isDecoration ?
"xAOD Decoration" :
"")
479 << ( isTPContainer ?
"T/P Container " :
"") );
481 const std::vector<bool> typeOfContainer( { isxAODInterfaceContainer, isxAODAuxContainer, isDecoration, isTPContainer } );
482 const size_t count =
std::count( typeOfContainer.begin(), typeOfContainer.end(),
true );
484 ATH_MSG_ERROR(
"Could not recognise the kind of container " << transientTypeName );
485 return StatusCode::FAILURE;
488 ATH_MSG_ERROR(
"Ambiguous container kind deduced from the transient type name " << transientTypeName );
490 << (isxAODInterfaceContainer ?
"xAOD Interface Context":
"" )
491 << (isxAODAuxContainer ?
" xAOD Aux Container ":
"" )
492 << ( isDecoration ?
"xAOD Decoration" :
"")
493 << ( isTPContainer ?
"T/P Container " :
"") );
494 return StatusCode::FAILURE;
496 return StatusCode::SUCCESS;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [6/6]
◆ deserialise()
StatusCode TriggerEDMDeserialiserAlg::deserialise |
( |
const Payload * |
dataptr | ) |
const |
|
private |
Performs actual deserialisation loop.
Definition at line 266 of file TriggerEDMDeserialiserAlg.cxx.
269 std::unique_ptr<char[]>
buff = std::make_unique<char[]>(buffSize);
272 auto resize = [&buffSize, &
buff](
const size_t neededSize ) ->
void {
273 if ( neededSize > buffSize ) {
274 buffSize = neededSize;
275 buff = std::make_unique<char[]>(buffSize);
284 WritableAuxStore* currentAuxStore =
nullptr;
289 std::string previousKey;
290 while (
start != dataptr->end() ) {
293 std::string transientTypeName, transientTypeInfoName;
299 std::string persistentTypeName{
descr[0] };
311 " type: "<< transientTypeName <<
" (" << transientTypeInfoName <<
")" <<
312 " persistent type: " << persistentTypeName <<
" key: " <<
key <<
" size: " << bsize );
327 CxxUtils::FPControl fpcontrol;
328 if (persistentTypeName ==
"xAOD::BTaggingTrigAuxContainer_v1") {
329 fpcontrol.holdExceptions();
332 size_t usedBytes{ bsize };
333 void*
obj{
nullptr };
340 ATH_MSG_DEBUG(
"Deserialised object of ptr: " <<
obj <<
" which used: " << usedBytes <<
341 " bytes from available: " << bsize );
342 if (
obj ==
nullptr ) {
343 ATH_MSG_ERROR(
"Deserialisation of object of CLID " << clid <<
" and transientTypeName " <<
344 transientTypeName <<
" # " <<
key <<
" failed" );
345 return StatusCode::FAILURE;
347 const bool isxAODInterfaceContainer = (transientTypeName.rfind(
"xAOD", 0) != std::string::npos and
348 transientTypeName.find(
"Aux") == std::string::npos and
349 transientTypeName.find(
"ElementLink") == std::string::npos);
350 const bool isxAODAuxContainer = (transientTypeName.rfind(
"xAOD", 0) != std::string::npos and
351 transientTypeName.find(
"Aux") != std::string::npos);
352 const bool isxAODDecoration = transientTypeName.find(
"vector") != std::string::npos;
353 const bool isTPContainer = persistentTypeName.find(
"_p") != std::string::npos;
354 const bool isVersionChange = versionChange(persistentTypeName, transientTypeInfoName);
357 isxAODAuxContainer, isxAODDecoration, isTPContainer ) );
359 if ( isTPContainer or isVersionChange ) {
360 if ( isVersionChange )
ATH_MSG_DEBUG(
"Version change detected from " << persistentTypeName <<
" to "
361 << transientTypeInfoName <<
". Will invoke PT converter." );
363 std::string decodedTransientName;
374 if ( isxAODInterfaceContainer or isxAODAuxContainer or isTPContainer ) {
379 if ( proxyPtr ==
nullptr ) {
383 if ( isxAODInterfaceContainer ) {
387 if (xAODInterfaceContainer!=
nullptr &&
388 xAODInterfaceContainer->
trackIndices() && currentAuxStore==
nullptr) {
389 ATH_MSG_DEBUG(
"Container with key " << previousKey <<
" is missing its Aux store");
392 currentAuxStore =
nullptr;
397 xAODInterfaceContainer =
402 }
else if (isxAODAuxContainer) {
405 ATH_CHECK( currentAuxStore ==
nullptr and xAODInterfaceContainer !=
nullptr );
411 xAODInterfaceContainer->
setStore(auxHolder);
412 currentAuxStore =
new WritableAuxStore();
415 currentAuxStore =
nullptr;
416 xAODInterfaceContainer =
nullptr;
419 }
else if ( isxAODDecoration ) {
420 if(
m_skipDuplicates and (currentAuxStore ==
nullptr || xAODInterfaceContainer ==
nullptr)) {
421 ATH_MSG_DEBUG(
"Decoration " <<
key <<
" encountered with no active container. Assume this was already handled.");
423 ATH_CHECK( currentAuxStore !=
nullptr and xAODInterfaceContainer !=
nullptr );
425 currentAuxStore, xAODInterfaceContainer ) );
430 return StatusCode::SUCCESS;
◆ deserialiseDynAux()
StatusCode TriggerEDMDeserialiserAlg::deserialiseDynAux |
( |
const std::string & |
transientTypeName, |
|
|
const std::string & |
persistentTypeName, |
|
|
const std::string & |
decorationName, |
|
|
void * |
obj, |
|
|
WritableAuxStore * |
currentAuxStore, |
|
|
SG::AuxVectorBase * |
interface |
|
) |
| const |
|
private |
Handle decoration.
Definition at line 435 of file TriggerEDMDeserialiserAlg.cxx.
437 const bool isPacked = persistentTypeName.find(
"SG::PackedContainer") != std::string::npos;
441 if (
id != SG::null_auxid ) {
442 std::string regTypeName = stripStdVec(
registry.getVecTypeName(
id) );
443 if ( regTypeName != stripStdVec(transientTypeName) and transientTypeName.find(
"ElementLink") == std::string::npos )
447 if ( regTypeName != stripStdVec(tname.getTypeName()) ) {
448 ATH_MSG_INFO(
"Schema evolution required for decoration \"" << decorationName <<
"\" from " << transientTypeName <<
" to " <<
registry.getVecTypeName(
id ) <<
" not handled yet");
449 return StatusCode::SUCCESS;
453 std::string elementTypeName;
454 const std::type_info* elt_tinfo = getElementType( transientTypeName, elementTypeName );
456 ATH_MSG_DEBUG(
"Dynamic decoration: \"" << decorationName <<
"\" of type " << transientTypeName <<
" will create a dynamic ID, stored type" << elementTypeName );
457 id =
SG::getDynamicAuxID ( *elt_tinfo, decorationName, elementTypeName, transientTypeName,
false, SG::null_auxid );
459 ATH_MSG_DEBUG(
"Unstreaming decoration \"" << decorationName <<
"\" of type " << transientTypeName <<
" aux ID " <<
id <<
" class " << persistentTypeName <<
" packed " << isPacked );
460 std::unique_ptr<SG::IAuxTypeVector>
vec(
registry.makeVectorFromData (
id,
obj,
nullptr, isPacked,
true) );
462 ATH_MSG_DEBUG(
"Size for \"" << decorationName <<
"\" " <<
vec->size() <<
" interface " << interfaceContainer->size_v() );
463 ATH_CHECK(
vec->size() == interfaceContainer->size_v() );
464 if (
vec->size() != 0 ) {
466 currentAuxStore->addVector(std::move(
vec),
false);
469 accessor.getDataArray( *interfaceContainer );
471 return StatusCode::SUCCESS;
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode TriggerEDMDeserialiserAlg::execute |
( |
const EventContext & |
context | ) |
const |
|
overridevirtual |
Definition at line 243 of file TriggerEDMDeserialiserAlg.cxx.
246 if ( not resultHandle.isValid() ) {
248 return StatusCode::FAILURE;
252 const Payload* dataptr =
nullptr;
253 if ( resultHandle->getSerialisedData(
m_moduleID, dataptr ).isFailure() ) {
256 return StatusCode::SUCCESS;
259 return StatusCode::FAILURE;
263 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
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 & AthReentrantAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 79 of file AthReentrantAlgorithm.cxx.
86 return Algorithm::extraOutputDeps();
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ finalize()
StatusCode TriggerEDMDeserialiserAlg::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode TriggerEDMDeserialiserAlg::initialize |
( |
| ) |
|
|
overridevirtual |
◆ inputHandles()
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 AthReentrantAlgorithm::isClonable |
( |
| ) |
const |
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, InDet::SiSPGNNTrackMaker, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, ITkStripCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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()
◆ renounceArray()
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ sysExecute()
StatusCode AthReentrantAlgorithm::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 67 of file AthReentrantAlgorithm.cxx.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ sysInitialize()
StatusCode AthReentrantAlgorithm::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 96 of file AthReentrantAlgorithm.cxx.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ tester
◆ ATLAS_THREAD_SAFE
std::unique_ptr<TList> s_streamerInfoList TriggerEDMDeserialiserAlg::ATLAS_THREAD_SAFE |
|
static |
◆ CLIDOffset
constexpr size_t TriggerEDMDeserialiserAlg::CLIDOffset = 1 |
|
staticconstexpr |
◆ m_clidSvc
Initial value:{ this, "ClassIDSvc", "ClassIDSvc",
"Service to translate CLID to class name" }
Definition at line 65 of file TriggerEDMDeserialiserAlg.h.
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects |
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 153 of file AthReentrantAlgorithm.h.
◆ m_initialSerialisationBufferSize
Gaudi::Property<int> TriggerEDMDeserialiserAlg::m_initialSerialisationBufferSize |
|
private |
Initial value:{ this, "InitialSerialisationBufferSize", 1024*1024,
"Initial serialisation buffer size in bytes, can be set large to avoid reallocations in every event" }
Definition at line 58 of file TriggerEDMDeserialiserAlg.h.
◆ m_moduleID
Gaudi::Property<int> TriggerEDMDeserialiserAlg::m_moduleID |
|
private |
Initial value:{ this, "ModuleID", 0,
"Module ID of HLT result ROB, default 0 is the main HLT result, others are for TLA, calibration etc." }
Definition at line 56 of file TriggerEDMDeserialiserAlg.h.
◆ m_permitMissingModule
Gaudi::Property<bool> TriggerEDMDeserialiserAlg::m_permitMissingModule |
|
private |
Initial value:{ this, "PermitMissingModule", false,
"Silently ignore absent HLT results (when handling multiple HLT results)" }
Definition at line 62 of file TriggerEDMDeserialiserAlg.h.
◆ m_prefix
Gaudi::Property<std::string> TriggerEDMDeserialiserAlg::m_prefix |
|
private |
Initial value:{ this, "Prefix", "",
"Set for testing to avoid clash with the input collections" }
Definition at line 54 of file TriggerEDMDeserialiserAlg.h.
◆ m_resultKey
◆ m_serializerSvc
Initial value:{ this, "Serializer", "AthenaRootSerializeSvc",
"Service that translates persistent to transient representation" }
Definition at line 68 of file TriggerEDMDeserialiserAlg.h.
◆ m_skipDuplicates
Gaudi::Property<bool> TriggerEDMDeserialiserAlg::m_skipDuplicates |
|
private |
Initial value:{ this, "SkipDuplicateRecords", false,
"Silently ignore collections that ware already in StoreGate (when handling multiple HLT results)" }
Definition at line 60 of file TriggerEDMDeserialiserAlg.h.
◆ m_tpTool
Initial value:{ this, "TPTool", "TrigSerTPTool/TrigSerTPTool",
"Tool to do Transient/Persistent conversion (Old EDM)"}
Definition at line 71 of file TriggerEDMDeserialiserAlg.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ NameLengthOffset
constexpr size_t TriggerEDMDeserialiserAlg::NameLengthOffset = 2 |
|
staticconstexpr |
◆ NameOffset
constexpr size_t TriggerEDMDeserialiserAlg::NameOffset = 3 |
|
staticconstexpr |
◆ s_mutex
std::mutex TriggerEDMDeserialiserAlg::s_mutex |
|
static |
The documentation for this class was generated from the following files:
static std::mutex s_mutex
static TScopeAdapter ByNameNoQuiet(const std::string &name, Bool_t load=kTRUE)
Allows to insert void* returned from serialisation into the store.
ToolHandle< TrigSerTPTool > m_tpTool
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
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)
virtual void * object() override
Helper class to provide const generic access to aux data.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
TDA::PayloadIterator toNextFragment(TDA::PayloadIterator start)
Returns starting point of the next fragment, can be == end()
void setStore(SG::IAuxStore *store)
Set the store associated with this object.
std::vector< size_t > vec
Gaudi::Property< std::string > m_prefix
const std::string & key() const
Return the StoreGate ID for the referenced object.
std::vector< std::string > collectionDescription(TDA::PayloadIterator start)
String description of the collection stored in the next fragment, returns persistent type name and th...
void * cast(void *p, CLID clid) const
Cast to a base pointer.
Manage index tracking and synchronization of auxiliary data.
Gaudi::Property< int > m_initialSerialisationBufferSize
int fragmentCount(uint32_t data, int id)
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Property< int > m_moduleID
Handle mappings between names and auxid_t.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
ServiceHandle< IAthenaSerializeSvc > m_serializerSvc
Payload::const_iterator PayloadIterator
typename vecDetail::vec_typedef< T, N >::type vec
Define a nice alias for the vectorized type.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
size_t auxid_t
Identifier for a particular aux data item.
void add_bs_streamerinfos()
AthReentrantAlgorithm()
Default constructor:
SG::auxid_t getDynamicAuxID(const std::type_info &ti, const std::string &name, const std::string &elementTypeName, const std::string &branch_type_name, bool standalone, SG::auxid_t linked_auxid)
Find the auxid for a dynamic branch.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
std::vector< uint32_t > Payload
::StatusCode StatusCode
StatusCode definition for legacy code.
Default, invalid implementation of ClassID_traits.
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
StatusCode deserialiseDynAux(const std::string &transientTypeName, const std::string &persistentTypeName, const std::string &decorationName, void *obj, WritableAuxStore *currentAuxStore, SG::AuxVectorBase *interface) const
Handle decoration.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
uint32_t CLID
The Class ID type.
void toBuffer(TDA::PayloadIterator start, char *buffer)
Copies fragment to the buffer, no size checking, use dataSize to do so.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
StatusCode deserialise(const Payload *dataptr) const
Performs actual deserialisation loop.
CLID collectionCLID(TDA::PayloadIterator start)
CLID of the collection stored in the next fragment.
size_t dataSize(TDA::PayloadIterator start)
Size in bytes of the buffer that is needed to decode next fragment data content.
Run a MT piece of code with an alternate root error handler.
virtual StatusCode sysInitialize() override
Override sysInitialize.
ServiceHandle< IClassIDSvc > m_clidSvc
const AccessorWrapper< T > * accessor(xAOD::JetAttribute::AttributeID id)
Returns an attribute accessor corresponding to an AttributeID.
Gaudi::Property< bool > m_permitMissingModule
Interface for non-const operations on an auxiliary store.
#define ATH_MSG_WARNING(x)
void Destruct(void *place) const
The non-template portion of the BaseInfo implementation.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
SG::ReadHandleKey< HLT::HLTResultMT > m_resultKey
StatusCode checkSanity(const std::string &transientTypeName, bool isxAODInterfaceContainer, bool isxAODAuxContainer, bool isDecoration, bool isTPContainer) const
Checker for data integrity, one and only one of the passed booleans can be true, else FAILURE is retu...
Smart pointer to manage DataObject reference counts.
Gaudi::Property< bool > m_skipDuplicates
Bool_t IsComplete() const
Interface for objects taking part in direct ROOT I/O.
bool trackIndices() const
Return true if index tracking is enabled for this container.
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>