|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #ifndef JETINTERFACE_IJETPROVIDER_H
7 #define JETINTERFACE_IJETPROVIDER_H
40 virtual std::pair<std::unique_ptr<xAOD::JetContainer>,std::unique_ptr<SG::IAuxStore> >
getJets()
const = 0;
82 std::unique_ptr<xAOD::JetContainer>
jets(
nullptr);
83 std::unique_ptr<SG::IAuxStore> auxCont(
nullptr);
85 if(
jets.get()==
nullptr || auxCont.get()==
nullptr) {
return StatusCode::FAILURE;}
88 std::unique_ptr<CONCRETEAUX> auxCont_derived(
static_cast<CONCRETEAUX*
>(auxCont.release()));
91 return jetHandle.
record(std::move(
jets), std::move(auxCont_derived));
virtual ~IJetProvider()
Destructor.
virtual StatusCode initWithOutput(const SG::WriteHandleKey< xAOD::JetContainer > &)
Method to allow the client to pass in a WriteHandle during initialisation, in case this is needed for...
Property holding a SG store/key/clid from which a WriteHandle is made.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode getAndRecordJets(SG::WriteHandle< xAOD::JetContainer > &jetHandle) const
Method to allow the client to pass in a WriteHandle for the container and aux container to be recorde...
virtual std::pair< std::unique_ptr< xAOD::JetContainer >, std::unique_ptr< SG::IAuxStore > > getJets() const =0
Method to build the collection and return it to the caller.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
Concrete class that implements the recording of jets & aux container to StoreGate via an externally p...
virtual StatusCode getAndRecordJets(SG::WriteHandle< xAOD::JetContainer > &jetHandle) const =0
Method to allow the client to pass in a WriteHandle for the container and aux container to be recorde...