CMS 3D CMS Logo

TSelectorAnalyzer.h
Go to the documentation of this file.
1 #ifndef ParallelAnalysis_TSelectorAnalyzer_h
2 #define ParallelAnalysis_TSelectorAnalyzer_h
4 #include "TList.h"
5 
6 template<typename Algo>
8 public:
10  list_(), algo_( nullptr, list_ ) {
11  }
12  void analyze( const edm::Event & evt, const edm::EventSetup & ) override {
13  algo_.process( evt );
14  }
15  void endJob() override {
16  algo_.postProcess( list_ );
17  algo_.terminate( list_ );
18  }
19 private:
20  TList list_;
22 };
23 
24 #endif
#define nullptr
void analyze(const edm::Event &evt, const edm::EventSetup &) override
TSelectorAnalyzer(const edm::ParameterSet &cfg)
void endJob() override
Definition: fakeMenu.h:6