CMS 3D CMS Logo

TFWLiteSelectorBasic.h
Go to the documentation of this file.
1 #ifndef FWCore_TFWLiteSelector_TFWLiteSelectorBasic_h
2 #define FWCore_TFWLiteSelector_TFWLiteSelectorBasic_h
3 // -*- C++ -*-
4 //
5 // Package: TFWLiteSelector
6 // Class : TFWLiteSelectorBasic
7 //
17 //
18 // Original Author: Chris Jones
19 // Created: Tue Jun 27 16:37:27 EDT 2006
20 //
21 
22 // system include files
23 #include <memory>
24 #include "TSelector.h"
25 
26 // user include files
28 
29 // forward declarations
30 class TFile;
31 class TList;
32 class TTree;
33 
34 namespace edm {
35  class Event;
36 
37  namespace root {
39  }
40 }
41 
42 class TFWLiteSelectorBasic : public TSelector
43 {
44 
45  public:
47  ~TFWLiteSelectorBasic() override;
48 
49  // ---------- const member functions ---------------------
50 
51  // ---------- static member functions --------------------
52 
53  // ---------- member functions ---------------------------
59  virtual void begin(TList*& in) = 0;
60 
66  virtual void preProcessing(const TList* in, TList& out) = 0;
67 
71  virtual void process(const edm::Event& event) = 0;
72 
77  virtual void postProcessing(TList& out) =0;
78 
82  virtual void terminate(TList& out) = 0;
83 
84  private:
85  TFWLiteSelectorBasic(const TFWLiteSelectorBasic&); // stop default
86 
87  const TFWLiteSelectorBasic& operator=(const TFWLiteSelectorBasic&); // stop default
88 
89  void Begin(TTree *) override ;
90  void SlaveBegin(TTree *) override;
91  void Init(TTree*) override;
92  Bool_t Notify() override ;
93  Bool_t Process(Long64_t /*entry*/) override ;
94  void SlaveTerminate() override;
95  void Terminate() override;
96  Int_t Version() const override { return 1; }
97 
98  void setupNewFile(TFile&);
99  // ---------- member data --------------------------------
102 
103  ClassDefOverride(TFWLiteSelectorBasic,2)
104 };
105 
106 
107 #endif
Int_t Version() const override
edm::propagate_const< std::shared_ptr< edm::root::TFWLiteSelectorMembers > > m_
#define begin
Definition: vmac.h:32
HLT enums.
Definition: event.py:1