diff --git a/PhysicsAnalysis/ElectronPhotonID/PhotonVertexSelection/PhotonVertexSelection/PhotonVertexSelectionDict.h b/PhysicsAnalysis/ElectronPhotonID/PhotonVertexSelection/PhotonVertexSelection/PhotonVertexSelectionDict.h index d1a6f70d9eedd12f1e8cf87a793e1f42f623ea65..724d15ec58dd3af29f238e091bdbd4d402e51771 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