26 template<
typename Type> StatusCode AsgShallowCopyAlg ::
29 const Type *input =
nullptr;
33 [[maybe_unused]]
Type *output =
nullptr;
38 return StatusCode::SUCCESS;
43 StatusCode AsgShallowCopyAlg ::
103 ANA_MSG_ERROR (
"unknown type contained in AsgShallowCopyAlg, please extend it");
104 return StatusCode::FAILURE;
113 AsgShallowCopyAlg (
const std::string&
name,
114 ISvcLocator* pSvcLocator)
121 StatusCode AsgShallowCopyAlg ::
131#ifndef XAOD_STANDALONE
134 std::function<void(
const DataObjID&, Gaudi::DataHandle::Mode)> addAlgDependency = [
this] (
const DataObjID& id, Gaudi::DataHandle::Mode mode) {
135 this->addDependency(
id, mode);
144 return StatusCode::SUCCESS;
149 StatusCode AsgShallowCopyAlg ::
156 return StatusCode::SUCCESS;
uint32_t CLID
The Class ID type.
ServiceHandle< StoreGateSvc > & evtStore()
StatusCode(AsgShallowCopyAlg::* m_function)(const CP::SystematicSet &sys)
SysWriteHandle< xAOD::IParticleContainer > m_outputHandle
the output view container we produce
StatusCode executeTemplate(const CP::SystematicSet &sys)
the templated version of execute for a single systematic
Gaudi::Property< std::vector< std::string > > m_declareDecorations
an (optional) list of decorations to copy
SysListHandle m_systematicsList
the systematics list we run
SysReadHandle< xAOD::IParticleContainer > m_inputHandle
the input collection we run on
Class to wrap a set of SystematicVariations.
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
CLID getClidForDependency(const std::string &typeName, const std::string &decoName, bool decoWrite)
StatusCode addSysDependency(MsgStream &msg, const ISystematicsSvc &svc, const std::function< void(const DataObjID &, Gaudi::DataHandle::Mode)> &addAlgDependency, const CLID clid, const std::string &name, Gaudi::DataHandle::Mode mode, const std::string &decoName, bool decoWrite)
Select isolated Photons, Electrons and Muons.
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
ElectronContainer_v1 ElectronContainer
Definition of the current "electron container version".
DiTauJetContainer_v1 DiTauJetContainer
Definition of the current DiTauJet container version.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".
TauJetContainer_v3 TauJetContainer
Definition of the current "taujet container version".
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
a helper class to create shallow copies and register them in the event store