Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:11

0001 #ifndef ThingsTSelector2_h
0002 #define ThingsTSelector2_h
0003 /** \class ThingsTSelector2
0004  *
0005  * Simple interactive analysis example based on TSelector
0006  * accessing EDM data
0007  *
0008  * \author Luca Lista, INFN
0009  *
0010  */
0011 #include "TH1.h"
0012 #include "FWCore/TFWLiteSelector/interface/TFWLiteSelector.h"
0013 
0014 namespace tfwliteselectortest {
0015   struct ThingsWorker {
0016     ThingsWorker(const TList*, TList&);
0017     void process(const edm::Event& iEvent);
0018     void postProcess(TList&);
0019     edm::propagate_const<TH1F*> h_a;
0020     edm::propagate_const<TH1F*> h_refA;
0021   };
0022 
0023   class ThingsTSelector2 : public TFWLiteSelector<ThingsWorker> {
0024   public:
0025     ThingsTSelector2() {}
0026     void begin(TList*&) override;
0027     void terminate(TList&) override;
0028 
0029   private:
0030     ThingsTSelector2(ThingsTSelector2 const&);
0031     ThingsTSelector2 operator=(ThingsTSelector2 const&);
0032 
0033     ClassDefOverride(ThingsTSelector2, 2)
0034   };
0035 }  // namespace tfwliteselectortest
0036 #endif