ATLAS Offline Software
Loading...
Searching...
No Matches
ISF::CollectionMerger Class Referencefinal

Athena Algorithm that merges a given set of StoreGate collections in one final collection. More...

#include <CollectionMerger.h>

Inheritance diagram for ISF::CollectionMerger:

Public Member Functions

 CollectionMerger (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor.
virtual ~CollectionMerger ()=default
 Destructor.
virtual StatusCode initialize () override final
 Athena algorithm's interface methods.
virtual StatusCode execute (const EventContext &ctx) const override final
 Athena Algorithm execute.
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
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.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
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

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

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

template<typename T>
StatusCode mergeCollections (const SG::ReadHandleKeyArray< T > &inputReadHandleKeys, const SG::WriteHandleKey< T > &outputWriteHandleKey, const EventContext &ctx) const
 Merge all hits of inputReadHandleKeys's collections into outputWriteHandleKey.
template<typename HitType_t, typename OutputType_t>
void insertCopy (const HitType_t &hit, OutputType_t &outputHandle) const
 Copy the given hit into the given output collection, container or DataHandle.
template<typename HitType_t, typename OutputType_t>
void insertCopy (HitType_t *const hit, OutputType_t &outputHandle) const
 Copy the given const pointer to a hit into the given output collection, container or DataHandle.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadHandleKeyArray< SiHitCollectionm_inputBCMHits {this, "InputBCMHits", {}, ""}
 Input collection ReadHandleKeys.
SG::ReadHandleKeyArray< SiHitCollectionm_inputBLMHits {this, "InputBLMHits", {}, ""}
SG::ReadHandleKeyArray< SiHitCollectionm_inputPixelHits {this, "InputPixelHits", {}, ""}
SG::ReadHandleKeyArray< SiHitCollectionm_inputSCTHits {this, "InputSCTHits", {}, ""}
SG::ReadHandleKeyArray< TRTUncompressedHitCollectionm_inputTRTUncompressedHits {this, "InputTRTUncompressedHits", {}, ""}
SG::ReadHandleKeyArray< SiHitCollectionm_inputITkPixelHits {this, "InputITkPixelHits", {}, ""}
SG::ReadHandleKeyArray< SiHitCollectionm_inputITkStripHits {this, "InputITkStripHits", {}, ""}
SG::ReadHandleKeyArray< SiHitCollectionm_inputPLRHits {this, "InputPLRHits", {}, ""}
SG::ReadHandleKeyArray< SiHitCollectionm_inputHGTDHits {this, "InputHGTDHits", {}, ""}
SG::ReadHandleKeyArray< LArHitContainerm_inputLArEMBHits {this, "InputLArEMBHits", {}, ""}
SG::ReadHandleKeyArray< LArHitContainerm_inputLArEMECHits {this, "InputLArEMECHits", {}, ""}
SG::ReadHandleKeyArray< LArHitContainerm_inputLArFCALHits {this, "InputLArFCALHits", {}, ""}
SG::ReadHandleKeyArray< LArHitContainerm_inputLArHECHits {this, "InputLArHECHits", {}, ""}
SG::ReadHandleKeyArray< TileHitVectorm_inputTileHits {this, "InputTileHits", {}, ""}
SG::ReadHandleKeyArray< TileHitVectorm_inputMBTSHits {this, "InputMBTSHits", {}, ""}
SG::ReadHandleKeyArray< CSCSimHitCollectionm_inputCSCHits {this, "InputCSCHits", {}, ""}
SG::ReadHandleKeyArray< MDTSimHitCollectionm_inputMDTHits {this, "InputMDTHits", {}, ""}
SG::ReadHandleKeyArray< RPCSimHitCollectionm_inputRPCHits {this, "InputRPCHits", {}, ""}
SG::ReadHandleKeyArray< TGCSimHitCollectionm_inputTGCHits {this, "InputTGCHits", {}, ""}
SG::ReadHandleKeyArray< sTGCSimHitCollectionm_inputsTGCHits {this, "InputsTGCHits", {}, ""}
SG::ReadHandleKeyArray< MMSimHitCollectionm_inputMMHits {this, "InputMMHits", {}, ""}
SG::WriteHandleKey< SiHitCollectionm_outputBCMHits {this, "OutputBCMHits", "", ""}
 Output collection WriteHandleKeys.
SG::WriteHandleKey< SiHitCollectionm_outputBLMHits {this, "OutputBLMHits", "", ""}
SG::WriteHandleKey< SiHitCollectionm_outputPixelHits {this, "OutputPixelHits", "", ""}
SG::WriteHandleKey< SiHitCollectionm_outputSCTHits {this, "OutputSCTHits", "", ""}
SG::WriteHandleKey< TRTUncompressedHitCollectionm_outputTRTUncompressedHits {this, "OutputTRTUncompressedHits", "", ""}
SG::WriteHandleKey< SiHitCollectionm_outputITkPixelHits {this, "OutputITkPixelHits", "", ""}
SG::WriteHandleKey< SiHitCollectionm_outputITkStripHits {this, "OutputITkStripHits", "", ""}
SG::WriteHandleKey< SiHitCollectionm_outputPLRHits {this, "OutputPLRHits", "", ""}
SG::WriteHandleKey< SiHitCollectionm_outputHGTDHits {this, "OutputHGTDHits", "", ""}
SG::WriteHandleKey< LArHitContainerm_outputLArEMBHits {this, "OutputLArEMBHits", "", ""}
SG::WriteHandleKey< LArHitContainerm_outputLArEMECHits {this, "OutputLArEMECHits", "", ""}
SG::WriteHandleKey< LArHitContainerm_outputLArFCALHits {this, "OutputLArFCALHits", "", ""}
SG::WriteHandleKey< LArHitContainerm_outputLArHECHits {this, "OutputLArHECHits", "", ""}
SG::WriteHandleKey< TileHitVectorm_outputTileHits {this, "OutputTileHits", "", ""}
SG::WriteHandleKey< TileHitVectorm_outputMBTSHits {this, "OutputMBTSHits", "", ""}
SG::WriteHandleKey< CSCSimHitCollectionm_outputCSCHits {this, "OutputCSCHits", "", ""}
SG::WriteHandleKey< MDTSimHitCollectionm_outputMDTHits {this, "OutputMDTHits", "", ""}
SG::WriteHandleKey< RPCSimHitCollectionm_outputRPCHits {this, "OutputRPCHits", "", ""}
SG::WriteHandleKey< TGCSimHitCollectionm_outputTGCHits {this, "OutputTGCHits", "", ""}
SG::WriteHandleKey< sTGCSimHitCollectionm_outputsTGCHits {this, "OutputsTGCHits", "", ""}
SG::WriteHandleKey< MMSimHitCollectionm_outputMMHits {this, "OutputMMHits", "", ""}
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
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

Friends

class ISFTesting::CollectionMerger_test
 Allow the test class access to all methods.

Detailed Description

Athena Algorithm that merges a given set of StoreGate collections in one final collection.

Author
Elmar.Ritsch -at- cern.ch

Definition at line 51 of file CollectionMerger.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ CollectionMerger()

ISF::CollectionMerger::CollectionMerger ( const std::string & name,
ISvcLocator * pSvcLocator )

Constructor.

Definition at line 8 of file CollectionMerger.cxx.

8 :
9 ::AthReentrantAlgorithm( name, pSvcLocator )
10{
11}

◆ ~CollectionMerger()

virtual ISF::CollectionMerger::~CollectionMerger ( )
virtualdefault

Destructor.

Member Function Documentation

◆ cardinality()

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

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ declareGaudiProperty()

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 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

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 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

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

◆ evtStore()

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.

◆ execute()

StatusCode ISF::CollectionMerger::execute ( const EventContext & ctx) const
finaloverridevirtual

Athena Algorithm execute.

Definition at line 76 of file CollectionMerger.cxx.

77{
78 ATH_MSG_VERBOSE("in execute()");
84
89
94
97
104
105 return StatusCode::SUCCESS;
106}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
SG::WriteHandleKey< SiHitCollection > m_outputBLMHits
SG::ReadHandleKeyArray< SiHitCollection > m_inputPixelHits
SG::WriteHandleKey< SiHitCollection > m_outputPixelHits
SG::ReadHandleKeyArray< SiHitCollection > m_inputITkStripHits
SG::WriteHandleKey< LArHitContainer > m_outputLArEMBHits
SG::WriteHandleKey< SiHitCollection > m_outputHGTDHits
SG::ReadHandleKeyArray< MDTSimHitCollection > m_inputMDTHits
SG::ReadHandleKeyArray< TGCSimHitCollection > m_inputTGCHits
SG::WriteHandleKey< MMSimHitCollection > m_outputMMHits
SG::ReadHandleKeyArray< LArHitContainer > m_inputLArEMECHits
SG::ReadHandleKeyArray< SiHitCollection > m_inputSCTHits
SG::ReadHandleKeyArray< SiHitCollection > m_inputBLMHits
SG::WriteHandleKey< sTGCSimHitCollection > m_outputsTGCHits
SG::ReadHandleKeyArray< MMSimHitCollection > m_inputMMHits
SG::ReadHandleKeyArray< LArHitContainer > m_inputLArEMBHits
SG::WriteHandleKey< TileHitVector > m_outputMBTSHits
SG::ReadHandleKeyArray< sTGCSimHitCollection > m_inputsTGCHits
SG::ReadHandleKeyArray< SiHitCollection > m_inputHGTDHits
SG::WriteHandleKey< LArHitContainer > m_outputLArHECHits
SG::WriteHandleKey< RPCSimHitCollection > m_outputRPCHits
SG::WriteHandleKey< MDTSimHitCollection > m_outputMDTHits
SG::WriteHandleKey< TRTUncompressedHitCollection > m_outputTRTUncompressedHits
SG::ReadHandleKeyArray< TileHitVector > m_inputTileHits
SG::ReadHandleKeyArray< TRTUncompressedHitCollection > m_inputTRTUncompressedHits
SG::ReadHandleKeyArray< LArHitContainer > m_inputLArFCALHits
StatusCode mergeCollections(const SG::ReadHandleKeyArray< T > &inputReadHandleKeys, const SG::WriteHandleKey< T > &outputWriteHandleKey, const EventContext &ctx) const
Merge all hits of inputReadHandleKeys's collections into outputWriteHandleKey.
SG::WriteHandleKey< SiHitCollection > m_outputBCMHits
Output collection WriteHandleKeys.
SG::ReadHandleKeyArray< SiHitCollection > m_inputBCMHits
Input collection ReadHandleKeys.
SG::ReadHandleKeyArray< LArHitContainer > m_inputLArHECHits
SG::WriteHandleKey< LArHitContainer > m_outputLArEMECHits
SG::ReadHandleKeyArray< SiHitCollection > m_inputPLRHits
SG::WriteHandleKey< SiHitCollection > m_outputITkPixelHits
SG::WriteHandleKey< SiHitCollection > m_outputPLRHits
SG::ReadHandleKeyArray< TileHitVector > m_inputMBTSHits
SG::ReadHandleKeyArray< RPCSimHitCollection > m_inputRPCHits
SG::WriteHandleKey< TGCSimHitCollection > m_outputTGCHits
SG::WriteHandleKey< SiHitCollection > m_outputITkStripHits
SG::ReadHandleKeyArray< SiHitCollection > m_inputITkPixelHits
SG::WriteHandleKey< CSCSimHitCollection > m_outputCSCHits
SG::WriteHandleKey< TileHitVector > m_outputTileHits
SG::ReadHandleKeyArray< CSCSimHitCollection > m_inputCSCHits
SG::WriteHandleKey< LArHitContainer > m_outputLArFCALHits
SG::WriteHandleKey< SiHitCollection > m_outputSCTHits

◆ 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 ( ) const
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 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ 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 }
virtual bool filterPassed(const EventContext &ctx) const

◆ initialize()

StatusCode ISF::CollectionMerger::initialize ( )
finaloverridevirtual

Athena algorithm's interface methods.

Athena Algorithm initialize.

Definition at line 15 of file CollectionMerger.cxx.

16{
17 ATH_MSG_VERBOSE("In initialize");
18 ATH_CHECK( m_inputBCMHits.initialize() );
19 ATH_CHECK( m_inputBLMHits.initialize() );
20 ATH_CHECK( m_inputPixelHits.initialize() );
21 ATH_CHECK( m_inputSCTHits.initialize() );
23
24 ATH_CHECK( m_inputITkPixelHits.initialize() );
25 ATH_CHECK( m_inputITkStripHits.initialize() );
26 ATH_CHECK( m_inputPLRHits.initialize() );
27 ATH_CHECK( m_inputHGTDHits.initialize() );
28
29 ATH_CHECK( m_inputLArEMBHits.initialize() );
30 ATH_CHECK( m_inputLArEMECHits.initialize() );
31 ATH_CHECK( m_inputLArFCALHits.initialize() );
32 ATH_CHECK( m_inputLArHECHits.initialize() );
33
34 ATH_CHECK( m_inputTileHits.initialize() );
35 ATH_CHECK( m_inputMBTSHits.initialize() );
36
37 ATH_CHECK( m_inputCSCHits.initialize() );
38 ATH_CHECK( m_inputMDTHits.initialize() );
39 ATH_CHECK( m_inputRPCHits.initialize() );
40 ATH_CHECK( m_inputTGCHits.initialize() );
41 ATH_CHECK( m_inputsTGCHits.initialize() );
42 ATH_CHECK( m_inputMMHits.initialize() );
43
44
45 ATH_CHECK( m_outputBCMHits.initialize(!m_inputBCMHits.empty()) );
46 ATH_CHECK( m_outputBLMHits.initialize(!m_inputBLMHits.empty()) );
47 ATH_CHECK( m_outputPixelHits.initialize(!m_inputPixelHits.empty()) );
48 ATH_CHECK( m_outputSCTHits.initialize(!m_inputSCTHits.empty()) );
50
53 ATH_CHECK( m_outputPLRHits.initialize(!m_inputPLRHits.empty()) );
54 ATH_CHECK( m_outputHGTDHits.initialize(!m_inputHGTDHits.empty()) );
55
56 ATH_CHECK( m_outputLArEMBHits.initialize(!m_inputLArEMBHits.empty()) );
57 ATH_CHECK( m_outputLArEMECHits.initialize(!m_inputLArEMECHits.empty()) );
58 ATH_CHECK( m_outputLArFCALHits.initialize(!m_inputLArFCALHits.empty()) );
59 ATH_CHECK( m_outputLArHECHits.initialize(!m_inputLArHECHits.empty()) );
60
61 ATH_CHECK( m_outputTileHits.initialize(!m_inputTileHits.empty()) );
62 ATH_CHECK( m_outputMBTSHits.initialize(!m_inputMBTSHits.empty()) );
63
64 ATH_CHECK( m_outputCSCHits.initialize(!m_inputCSCHits.empty()) );
65 ATH_CHECK( m_outputMDTHits.initialize(!m_inputMDTHits.empty()) );
66 ATH_CHECK( m_outputRPCHits.initialize(!m_inputRPCHits.empty()) );
67 ATH_CHECK( m_outputTGCHits.initialize(!m_inputTGCHits.empty()) );
68 ATH_CHECK( m_outputsTGCHits.initialize(!m_inputsTGCHits.empty()) );
69 ATH_CHECK( m_outputMMHits.initialize(!m_inputMMHits.empty()) );
70
71 return StatusCode::SUCCESS;
72}

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

◆ insertCopy() [1/2]

template<typename HitType_t, typename OutputType_t>
void ISF::CollectionMerger::insertCopy ( const HitType_t & hit,
OutputType_t & outputHandle ) const
inlineprivate

Copy the given hit into the given output collection, container or DataHandle.

Definition at line 173 of file CollectionMerger.h.

174 {
175 static_assert(!std::is_pointer<HitType_t>::value,
176 "The hit provided to ISF::CollectionMerger::insertCopy(..) must not be a pointer!");
177 outputHandle->Emplace( hit );
178}

◆ insertCopy() [2/2]

template<typename HitType_t, typename OutputType_t>
void ISF::CollectionMerger::insertCopy ( HitType_t *const hit,
OutputType_t & outputHandle ) const
inlineprivate

Copy the given const pointer to a hit into the given output collection, container or DataHandle.

Definition at line 183 of file CollectionMerger.h.

184 {
185 auto&& hitCopy = std::make_unique<std::remove_const_t<HitType_t> >(*hit);
186 outputHandle->push_back( hitCopy.release() );
187}

◆ isClonable()

◆ mergeCollections()

template<typename T>
StatusCode ISF::CollectionMerger::mergeCollections ( const SG::ReadHandleKeyArray< T > & inputReadHandleKeys,
const SG::WriteHandleKey< T > & outputWriteHandleKey,
const EventContext & ctx ) const
inlineprivate

Merge all hits of inputReadHandleKeys's collections into outputWriteHandleKey.

Definition at line 145 of file CollectionMerger.h.

147 {
148 // skip if not input collection
149 if ( inputReadHandleKeys.empty() ) {
150 return StatusCode::SUCCESS;
151 }
152 // TODO: is there a way to conveniently get the total number of hits in all inputReadHandleKeys
153 // and reserve the corresponding size in the outputHandle
154 ATH_MSG_VERBOSE("Create new output container "<<outputWriteHandleKey.fullKey());
155 SG::WriteHandle<T> outputHandle{outputWriteHandleKey, ctx};
156 ATH_CHECK( outputHandle.record(std::make_unique<T>()) );
157
158 for ( const auto& collKey: inputReadHandleKeys ) {
159 ATH_MSG_VERBOSE("Read-in collection "<<collKey.fullKey());
160 SG::ReadHandle<T> inputHandle{collKey, ctx};
161
162 for ( const auto& hit: *inputHandle ) {
163 this->insertCopy(hit, outputHandle);
164 }
165 }
166
167 return StatusCode::SUCCESS;
168}
void insertCopy(const HitType_t &hit, OutputType_t &outputHandle) const
Copy the given hit into the given output collection, container or DataHandle.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ 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();
384 }
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)

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

◆ setFilterPassed()

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

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

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

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()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_WARNING(x)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ 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) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

◆ ISFTesting::CollectionMerger_test

friend class ISFTesting::CollectionMerger_test
friend

Allow the test class access to all methods.

Definition at line 54 of file CollectionMerger.h.

Member Data Documentation

◆ 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_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_inputBCMHits

SG::ReadHandleKeyArray<SiHitCollection> ISF::CollectionMerger::m_inputBCMHits {this, "InputBCMHits", {}, ""}
private

Input collection ReadHandleKeys.

Definition at line 84 of file CollectionMerger.h.

84{this, "InputBCMHits", {}, ""};

◆ m_inputBLMHits

SG::ReadHandleKeyArray<SiHitCollection> ISF::CollectionMerger::m_inputBLMHits {this, "InputBLMHits", {}, ""}
private

Definition at line 85 of file CollectionMerger.h.

85{this, "InputBLMHits", {}, ""};

◆ m_inputCSCHits

SG::ReadHandleKeyArray<CSCSimHitCollection> ISF::CollectionMerger::m_inputCSCHits {this, "InputCSCHits", {}, ""}
private

Definition at line 103 of file CollectionMerger.h.

103{this, "InputCSCHits", {}, ""};

◆ m_inputHGTDHits

SG::ReadHandleKeyArray<SiHitCollection> ISF::CollectionMerger::m_inputHGTDHits {this, "InputHGTDHits", {}, ""}
private

Definition at line 93 of file CollectionMerger.h.

93{this, "InputHGTDHits", {}, ""};

◆ m_inputITkPixelHits

SG::ReadHandleKeyArray<SiHitCollection> ISF::CollectionMerger::m_inputITkPixelHits {this, "InputITkPixelHits", {}, ""}
private

Definition at line 90 of file CollectionMerger.h.

90{this, "InputITkPixelHits", {}, ""};

◆ m_inputITkStripHits

SG::ReadHandleKeyArray<SiHitCollection> ISF::CollectionMerger::m_inputITkStripHits {this, "InputITkStripHits", {}, ""}
private

Definition at line 91 of file CollectionMerger.h.

91{this, "InputITkStripHits", {}, ""};

◆ m_inputLArEMBHits

SG::ReadHandleKeyArray<LArHitContainer> ISF::CollectionMerger::m_inputLArEMBHits {this, "InputLArEMBHits", {}, ""}
private

Definition at line 95 of file CollectionMerger.h.

95{this, "InputLArEMBHits", {}, ""};

◆ m_inputLArEMECHits

SG::ReadHandleKeyArray<LArHitContainer> ISF::CollectionMerger::m_inputLArEMECHits {this, "InputLArEMECHits", {}, ""}
private

Definition at line 96 of file CollectionMerger.h.

96{this, "InputLArEMECHits", {}, ""};

◆ m_inputLArFCALHits

SG::ReadHandleKeyArray<LArHitContainer> ISF::CollectionMerger::m_inputLArFCALHits {this, "InputLArFCALHits", {}, ""}
private

Definition at line 97 of file CollectionMerger.h.

97{this, "InputLArFCALHits", {}, ""};

◆ m_inputLArHECHits

SG::ReadHandleKeyArray<LArHitContainer> ISF::CollectionMerger::m_inputLArHECHits {this, "InputLArHECHits", {}, ""}
private

Definition at line 98 of file CollectionMerger.h.

98{this, "InputLArHECHits", {}, ""};

◆ m_inputMBTSHits

SG::ReadHandleKeyArray<TileHitVector> ISF::CollectionMerger::m_inputMBTSHits {this, "InputMBTSHits", {}, ""}
private

Definition at line 101 of file CollectionMerger.h.

101{this, "InputMBTSHits", {}, ""};

◆ m_inputMDTHits

SG::ReadHandleKeyArray<MDTSimHitCollection> ISF::CollectionMerger::m_inputMDTHits {this, "InputMDTHits", {}, ""}
private

Definition at line 104 of file CollectionMerger.h.

104{this, "InputMDTHits", {}, ""};

◆ m_inputMMHits

SG::ReadHandleKeyArray<MMSimHitCollection> ISF::CollectionMerger::m_inputMMHits {this, "InputMMHits", {}, ""}
private

Definition at line 108 of file CollectionMerger.h.

108{this, "InputMMHits", {}, ""};

◆ m_inputPixelHits

SG::ReadHandleKeyArray<SiHitCollection> ISF::CollectionMerger::m_inputPixelHits {this, "InputPixelHits", {}, ""}
private

Definition at line 86 of file CollectionMerger.h.

86{this, "InputPixelHits", {}, ""};

◆ m_inputPLRHits

SG::ReadHandleKeyArray<SiHitCollection> ISF::CollectionMerger::m_inputPLRHits {this, "InputPLRHits", {}, ""}
private

Definition at line 92 of file CollectionMerger.h.

92{this, "InputPLRHits", {}, ""};

◆ m_inputRPCHits

SG::ReadHandleKeyArray<RPCSimHitCollection> ISF::CollectionMerger::m_inputRPCHits {this, "InputRPCHits", {}, ""}
private

Definition at line 105 of file CollectionMerger.h.

105{this, "InputRPCHits", {}, ""};

◆ m_inputSCTHits

SG::ReadHandleKeyArray<SiHitCollection> ISF::CollectionMerger::m_inputSCTHits {this, "InputSCTHits", {}, ""}
private

Definition at line 87 of file CollectionMerger.h.

87{this, "InputSCTHits", {}, ""};

◆ m_inputsTGCHits

SG::ReadHandleKeyArray<sTGCSimHitCollection> ISF::CollectionMerger::m_inputsTGCHits {this, "InputsTGCHits", {}, ""}
private

Definition at line 107 of file CollectionMerger.h.

107{this, "InputsTGCHits", {}, ""};

◆ m_inputTGCHits

SG::ReadHandleKeyArray<TGCSimHitCollection> ISF::CollectionMerger::m_inputTGCHits {this, "InputTGCHits", {}, ""}
private

Definition at line 106 of file CollectionMerger.h.

106{this, "InputTGCHits", {}, ""};

◆ m_inputTileHits

SG::ReadHandleKeyArray<TileHitVector> ISF::CollectionMerger::m_inputTileHits {this, "InputTileHits", {}, ""}
private

Definition at line 100 of file CollectionMerger.h.

100{this, "InputTileHits", {}, ""};

◆ m_inputTRTUncompressedHits

SG::ReadHandleKeyArray<TRTUncompressedHitCollection> ISF::CollectionMerger::m_inputTRTUncompressedHits {this, "InputTRTUncompressedHits", {}, ""}
private

Definition at line 88 of file CollectionMerger.h.

88{this, "InputTRTUncompressedHits", {}, ""};

◆ m_outputBCMHits

SG::WriteHandleKey<SiHitCollection> ISF::CollectionMerger::m_outputBCMHits {this, "OutputBCMHits", "", ""}
private

Output collection WriteHandleKeys.

Definition at line 111 of file CollectionMerger.h.

111{this, "OutputBCMHits", "", ""};

◆ m_outputBLMHits

SG::WriteHandleKey<SiHitCollection> ISF::CollectionMerger::m_outputBLMHits {this, "OutputBLMHits", "", ""}
private

Definition at line 112 of file CollectionMerger.h.

112{this, "OutputBLMHits", "", ""};

◆ m_outputCSCHits

SG::WriteHandleKey<CSCSimHitCollection> ISF::CollectionMerger::m_outputCSCHits {this, "OutputCSCHits", "", ""}
private

Definition at line 130 of file CollectionMerger.h.

130{this, "OutputCSCHits", "", ""};

◆ m_outputHGTDHits

SG::WriteHandleKey<SiHitCollection> ISF::CollectionMerger::m_outputHGTDHits {this, "OutputHGTDHits", "", ""}
private

Definition at line 120 of file CollectionMerger.h.

120{this, "OutputHGTDHits", "", ""};

◆ m_outputITkPixelHits

SG::WriteHandleKey<SiHitCollection> ISF::CollectionMerger::m_outputITkPixelHits {this, "OutputITkPixelHits", "", ""}
private

Definition at line 117 of file CollectionMerger.h.

117{this, "OutputITkPixelHits", "", ""};

◆ m_outputITkStripHits

SG::WriteHandleKey<SiHitCollection> ISF::CollectionMerger::m_outputITkStripHits {this, "OutputITkStripHits", "", ""}
private

Definition at line 118 of file CollectionMerger.h.

118{this, "OutputITkStripHits", "", ""};

◆ m_outputLArEMBHits

SG::WriteHandleKey<LArHitContainer> ISF::CollectionMerger::m_outputLArEMBHits {this, "OutputLArEMBHits", "", ""}
private

Definition at line 122 of file CollectionMerger.h.

122{this, "OutputLArEMBHits", "", ""};

◆ m_outputLArEMECHits

SG::WriteHandleKey<LArHitContainer> ISF::CollectionMerger::m_outputLArEMECHits {this, "OutputLArEMECHits", "", ""}
private

Definition at line 123 of file CollectionMerger.h.

123{this, "OutputLArEMECHits", "", ""};

◆ m_outputLArFCALHits

SG::WriteHandleKey<LArHitContainer> ISF::CollectionMerger::m_outputLArFCALHits {this, "OutputLArFCALHits", "", ""}
private

Definition at line 124 of file CollectionMerger.h.

124{this, "OutputLArFCALHits", "", ""};

◆ m_outputLArHECHits

SG::WriteHandleKey<LArHitContainer> ISF::CollectionMerger::m_outputLArHECHits {this, "OutputLArHECHits", "", ""}
private

Definition at line 125 of file CollectionMerger.h.

125{this, "OutputLArHECHits", "", ""};

◆ m_outputMBTSHits

SG::WriteHandleKey<TileHitVector> ISF::CollectionMerger::m_outputMBTSHits {this, "OutputMBTSHits", "", ""}
private

Definition at line 128 of file CollectionMerger.h.

128{this, "OutputMBTSHits", "", ""};

◆ m_outputMDTHits

SG::WriteHandleKey<MDTSimHitCollection> ISF::CollectionMerger::m_outputMDTHits {this, "OutputMDTHits", "", ""}
private

Definition at line 131 of file CollectionMerger.h.

131{this, "OutputMDTHits", "", ""};

◆ m_outputMMHits

SG::WriteHandleKey<MMSimHitCollection> ISF::CollectionMerger::m_outputMMHits {this, "OutputMMHits", "", ""}
private

Definition at line 135 of file CollectionMerger.h.

135{this, "OutputMMHits", "", ""};

◆ m_outputPixelHits

SG::WriteHandleKey<SiHitCollection> ISF::CollectionMerger::m_outputPixelHits {this, "OutputPixelHits", "", ""}
private

Definition at line 113 of file CollectionMerger.h.

113{this, "OutputPixelHits", "", ""};

◆ m_outputPLRHits

SG::WriteHandleKey<SiHitCollection> ISF::CollectionMerger::m_outputPLRHits {this, "OutputPLRHits", "", ""}
private

Definition at line 119 of file CollectionMerger.h.

119{this, "OutputPLRHits", "", ""};

◆ m_outputRPCHits

SG::WriteHandleKey<RPCSimHitCollection> ISF::CollectionMerger::m_outputRPCHits {this, "OutputRPCHits", "", ""}
private

Definition at line 132 of file CollectionMerger.h.

132{this, "OutputRPCHits", "", ""};

◆ m_outputSCTHits

SG::WriteHandleKey<SiHitCollection> ISF::CollectionMerger::m_outputSCTHits {this, "OutputSCTHits", "", ""}
private

Definition at line 114 of file CollectionMerger.h.

114{this, "OutputSCTHits", "", ""};

◆ m_outputsTGCHits

SG::WriteHandleKey<sTGCSimHitCollection> ISF::CollectionMerger::m_outputsTGCHits {this, "OutputsTGCHits", "", ""}
private

Definition at line 134 of file CollectionMerger.h.

134{this, "OutputsTGCHits", "", ""};

◆ m_outputTGCHits

SG::WriteHandleKey<TGCSimHitCollection> ISF::CollectionMerger::m_outputTGCHits {this, "OutputTGCHits", "", ""}
private

Definition at line 133 of file CollectionMerger.h.

133{this, "OutputTGCHits", "", ""};

◆ m_outputTileHits

SG::WriteHandleKey<TileHitVector> ISF::CollectionMerger::m_outputTileHits {this, "OutputTileHits", "", ""}
private

Definition at line 127 of file CollectionMerger.h.

127{this, "OutputTileHits", "", ""};

◆ m_outputTRTUncompressedHits

SG::WriteHandleKey<TRTUncompressedHitCollection> ISF::CollectionMerger::m_outputTRTUncompressedHits {this, "OutputTRTUncompressedHits", "", ""}
private

Definition at line 115 of file CollectionMerger.h.

115{this, "OutputTRTUncompressedHits", "", ""};

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


The documentation for this class was generated from the following files: