CMS 3D CMS Logo

tselector.h

Go to the documentation of this file.
00001 #ifndef skelsubsys_tselname_tselname_h
00002 #define tselname_h
00003 // -*- C++ -*-
00004 //
00005 // Package:    tselname
00006 // Class:      tselname
00007 // 
00015 //
00016 // Original Author:  John Doe
00017 //         Created:  day-mon-xx
00018 // RCS(Id)
00019 //
00020 //
00021 #include <TH1.h>
00022 #include "FWCore/TFWLiteSelector/interface/TFWLiteSelector.h"
00023 
00024 //A worker processes the events.  When using PROOF there is one Worker per PROOF CPU Node.
00025 struct tselnameWorker {
00026   tselnameWorker(const TList*, TList&);
00027   ~tselnameWorker();
00028   void process( const edm::Event& iEvent );
00029   void postProcess(TList&);
00030   //Place histograms, etc that you want to fill here
00031   //TH1F* h_a;
00032 @example_track  TH1F* h_pt;
00033 };
00034 
00035 //Only one Selector is made per job. It gets all the results from each worker.
00036 class tselname : public TFWLiteSelector<tselnameWorker> {
00037 public :
00038   tselname();
00039   ~tselname();
00040   void begin(TList*&);
00041   void terminate(TList&);
00042     
00043 private:
00044     
00045   tselname(tselname const&);
00046   tselname operator=(tselname const&);
00047 };
00048 #endif

Generated on Tue Jun 9 17:36:40 2009 for CMSSW by  doxygen 1.5.4