Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:18

0001 #ifndef ThingsTSelector_h
0002 #define ThingsTSelector_h
0003 /** \class ThingsTSelector
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/TFWLiteSelectorBasic.h"
0013 #include "FWCore/Utilities/interface/propagate_const.h"
0014 
0015 namespace tfwliteselectortest {
0016   class ThingsTSelector : public TFWLiteSelectorBasic {
0017   public:
0018     ThingsTSelector() : h_a(nullptr), h_refA(nullptr) {}
0019     void begin(TList*&) override;
0020     void preProcessing(const TList*, TList&) override;
0021     void process(const edm::Event&) override;
0022     void postProcessing(TList&) override;
0023     void terminate(TList&) override;
0024 
0025   private:
0026     /// histograms
0027     edm::propagate_const<TH1F*> h_a;
0028     edm::propagate_const<TH1F*> h_refA;
0029 
0030     ThingsTSelector(ThingsTSelector const&);
0031     ThingsTSelector operator=(ThingsTSelector const&);
0032 
0033     ClassDefOverride(ThingsTSelector, 2)
0034   };
0035 }  // namespace tfwliteselectortest
0036 #endif