CMS 3D CMS Logo

TFWLiteSelector.h
Go to the documentation of this file.
1 #ifndef FWCore_TFWLiteSelector_TFWLiteSelector_h
2 #define FWCore_TFWLiteSelector_TFWLiteSelector_h
3 // -*- C++ -*-
4 //
5 // Package: TFWLiteSelector
6 // Class : TFWLiteSelector
7 //
40 //
41 // Original Author: Chris Jones
42 // Created: Fri Jun 30 21:04:46 CDT 2006
43 //
44 
45 // system include files
46 #include <memory>
47 
48 class TList;
49 
50 // user include files
51 
54 
55 // forward declarations
56 template <class TWorker>
58 {
59 
60  public:
62  ~TFWLiteSelector() override {}
63 
64  // ---------- const member functions ---------------------
65 
66  // ---------- static member functions --------------------
67 
68  // ---------- member functions ---------------------------
69 
70  private:
71  TFWLiteSelector(const TFWLiteSelector&); // stop default
72 
73  const TFWLiteSelector& operator=(const TFWLiteSelector&); // stop default
74 
75  void preProcessing(const TList*in, TList& out) override {
76  worker_ = std::make_shared<TWorker>(in,out);
77  }
78  void process(const edm::Event& iEvent) override {
79  worker_->process(iEvent);
80  }
81  void postProcessing(TList& out) override {
82  worker_->postProcess(out);
83  }
84 
85  // ---------- member data --------------------------------
87  ClassDefOverride(TFWLiteSelector,2)
88 };
89 
90 #endif
void process(const edm::Event &iEvent) override
void preProcessing(const TList *in, TList &out) override
int iEvent
Definition: GenABIO.cc:230
~TFWLiteSelector() override
edm::propagate_const< std::shared_ptr< TWorker > > worker_
const TFWLiteSelector & operator=(const TFWLiteSelector &)
void postProcessing(TList &out) override