From 01f0b8abeb6889b14b38d7147046dc35e6143f63 Mon Sep 17 00:00:00 2001 From: Nils Krumnack <krumnack@iastate.edu> Date: Wed, 23 Sep 2020 10:23:01 -0500 Subject: [PATCH] readd and fix instantiation of setProperty --- .../PhotonVertexSelectionDict.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/PhysicsAnalysis/ElectronPhotonID/PhotonVertexSelection/PhotonVertexSelection/PhotonVertexSelectionDict.h b/PhysicsAnalysis/ElectronPhotonID/PhotonVertexSelection/PhotonVertexSelection/PhotonVertexSelectionDict.h index d1a6f70d9ee..724d15ec58d 100644 --- a/PhysicsAnalysis/ElectronPhotonID/PhotonVertexSelection/PhotonVertexSelection/PhotonVertexSelectionDict.h +++ b/PhysicsAnalysis/ElectronPhotonID/PhotonVertexSelection/PhotonVertexSelection/PhotonVertexSelectionDict.h @@ -23,4 +23,20 @@ namespace { }; } +#ifdef XAOD_STANDALONE + +// Helper macro for declaring the setProperty functions to the dictionary: +#define SETPROPERTY_INSTAN( TYPE ) \ + template StatusCode asg::AsgComponent::setProperty< TYPE >( const std::string&, \ + const TYPE& ) + +// Declare all possible setProperty template instantiations to Reflex: +SETPROPERTY_INSTAN( ToolHandle<CP::IPhotonPointingTool > ); + +// Make the compiler forget about this macro now... +#undef SETPROPERTY_INSTAN + +#endif // XAOD_STANDALONE + + #endif // PhotonVertexSelection_PhotonVertexSelectionDict_H -- GitLab