CMS 3D CMS Logo

TSelector.h
Go to the documentation of this file.
1 #ifndef __subsys_____pkgname_____class___h
2 #define __subsys_____pkgname_____class___h
3 // -*- C++ -*-
4 //
5 // Package: __subsys__/__pkgname__
6 // Class: __class__
7 //
15 //
16 // Original Author: __author__
17 // Created: __date__
18 //
19 //
20 #include <TH1.h>
22 
23 //A worker processes the events. When using PROOF there is one Worker per PROOF CPU Node.
25  __class__Worker(const TList*, TList&);
27  void process(const edm::Event& iEvent);
28  void postProcess(TList&);
29  //Place histograms, etc that you want to fill here
30  //TH1F* h_a;
31 @example_track TH1F* h_pt;
32 };
33 
34 //Only one Selector is made per job. It gets all the results from each worker.
35 class __class__ : public TFWLiteSelector<__class__Worker> {
36 public:
37  __class__();
38  ~__class__() override;
39  void begin(TList*&) override;
40  void terminate(TList&) override;
41 
42 private:
43  __class__(__class__ const&);
45 
46  ClassDef(__class__, 2)
47 };
48 #endif
void process(const edm::Event &iEvent)
Definition: TSelector.cc:56
example_track TH1F * h_pt
Definition: TSelector.h:31
__class__()
Definition: Skeleton.cc:29
int iEvent
Definition: GenABIO.cc:224
void begin(TList *&) override
Definition: TSelector.cc:86
const __class__ & operator=(const __class__ &rhs)
void postProcess(TList &)
Definition: TSelector.cc:76
virtual ~__class__()
void terminate(TList &) override
Definition: TSelector.cc:90
__class__Worker(const TList *, TList &)
Definition: TSelector.cc:46