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 public:
60  ~TFWLiteSelector() override {}
61 
62  // ---------- const member functions ---------------------
63 
64  // ---------- static member functions --------------------
65 
66  // ---------- member functions ---------------------------
67 
68 private:
69  TFWLiteSelector(const TFWLiteSelector&); // stop default
70 
71  const TFWLiteSelector& operator=(const TFWLiteSelector&); // stop default
72 
73  void preProcessing(const TList* in, TList& out) override { worker_ = std::make_shared<TWorker>(in, out); }
74  void process(const edm::Event& iEvent) override { worker_->process(iEvent); }
75  void postProcessing(TList& out) override { worker_->postProcess(out); }
76 
77  // ---------- member data --------------------------------
79  ClassDefOverride(TFWLiteSelector, 2)
80 };
81 
82 #endif
void process(const edm::Event &iEvent) override
void preProcessing(const TList *in, TList &out) override
int iEvent
Definition: GenABIO.cc:224
~TFWLiteSelector() override
edm::propagate_const< std::shared_ptr< TWorker > > worker_
const TFWLiteSelector & operator=(const TFWLiteSelector &)
void postProcessing(TList &out) override