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__();
39  void begin(TList*&);
40  void terminate(TList&);
41 
42 private:
43 
44  __class__(__class__ const&);
45  __class__ operator=(__class__ const&);
46 
47  ClassDef(__class__,2)
48 };
49 #endif
void process(const edm::Event &iEvent)
Definition: TSelector.cc:58
example_streamclass __class__
~__class__()
example_track TH1F * h_pt
Definition: TSelector.h:31
int iEvent
Definition: GenABIO.cc:230
void postProcess(TList &)
Definition: TSelector.cc:83
#define begin
Definition: vmac.h:32
__class__Worker(const TList *, TList &)
Definition: TSelector.cc:46