Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:38

0001 #ifndef __L1Trigger_L1THGCal_HGCalAlgoWrapperBaseT_h__
0002 #define __L1Trigger_L1THGCal_HGCalAlgoWrapperBaseT_h__
0003 
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include <string>
0006 
0007 template <typename InputCollection, typename OutputCollection, typename Tparam>
0008 class HGCalAlgoWrapperBaseT {
0009 public:
0010   HGCalAlgoWrapperBaseT(const edm::ParameterSet& conf) : name_(conf.getParameter<std::string>("AlgoName")) {}
0011 
0012   virtual ~HGCalAlgoWrapperBaseT() {}
0013 
0014   virtual void configure(const Tparam& parameters) = 0;
0015   virtual void process(const InputCollection& inputCollection, OutputCollection& outputCollection) const = 0;
0016 
0017   const std::string& name() const { return name_; }
0018 
0019 private:
0020   const std::string name_;
0021 };
0022 
0023 #endif