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  virtual ~TFWLiteSelector() {}
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  virtual void preProcessing(const TList*in, TList& out) {
76  worker_ = std::make_shared<TWorker>(in,out);
77  }
78  virtual void process(const edm::Event& iEvent) {
79  worker_->process(iEvent);
80  }
81  virtual void postProcessing(TList& out) {
82  worker_->postProcess(out);
83  }
84 
85  // ---------- member data --------------------------------
87  ClassDef(TFWLiteSelector,2)
88 };
89 
90 #endif
virtual void preProcessing(const TList *in, TList &out)
int iEvent
Definition: GenABIO.cc:230
virtual void postProcessing(TList &out)
virtual void process(const edm::Event &iEvent)
edm::propagate_const< std::shared_ptr< TWorker > > worker_
const TFWLiteSelector & operator=(const TFWLiteSelector &)
virtual ~TFWLiteSelector()