Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:08

0001 #ifndef _ConfRecoBuilder_H_
0002 #define _ConfRecoBuilder_H_
0003 
0004 #include "RecoVertex/ConfigurableVertexReco/interface/VertexRecoManager.h"
0005 
0006 /*! @class ConfRecoBuilder
0007  *  template class that registers an AbstractConfReconstructor
0008  */
0009 
0010 template <class O>
0011 class ConfRecoBuilder {
0012 public:
0013   ConfRecoBuilder<O>(const std::string& name, const std::string& description) {
0014     VertexRecoManager::Instance().registerReconstructor(
0015         name, []() -> AbstractConfReconstructor* { return new O(); }, description);
0016   }
0017 };
0018 
0019 #endif  // _ConfRecoBuilder_H_