Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-14 00:04:41

0001 #ifndef __subsys_____pkgname_____class___h
0002 #define __subsys_____pkgname_____class___h
0003 // -*- C++ -*-
0004 //
0005 // Package:    __subsys__/__pkgname__
0006 // Class:      __class__
0007 //
0008 /**\class __class__ __class__.h __subsys__/__pkgname__/plugins/__class__.h
0009 
0010 Description: [one line class summary]
0011 
0012 Implementation:
0013 [Notes on implementation]
0014 */
0015 //
0016 // Original Author:  __author__
0017 //         Created:  __date__
0018 //
0019 //
0020 #include <TH1.h>
0021 #include "FWCore/TFWLiteSelector/interface/TFWLiteSelector.h"
0022 
0023 //A worker processes the events.  When using PROOF there is one Worker per PROOF CPU Node.
0024 struct __class__Worker {
0025   __class__Worker(const TList*, TList&);
0026   ~__class__Worker();
0027   void process(const edm::Event& iEvent);
0028   void postProcess(TList&);
0029   //Place histograms, etc that you want to fill here
0030   //TH1F* h_a;
0031 @example_track  TH1F* h_pt;
0032 };
0033 
0034 //Only one Selector is made per job. It gets all the results from each worker.
0035 class __class__ : public TFWLiteSelector<__class__Worker> {
0036 public:
0037   __class__();
0038   ~__class__() override;
0039   void begin(TList*&) override;
0040   void terminate(TList&) override;
0041 
0042 private:
0043   __class__(__class__ const&);
0044   __class__ operator=(__class__ const&);
0045 
0046   ClassDef(__class__, 2)
0047 };
0048 #endif