Main Page
Namespaces
Classes
Package Documentation
PhysicsTools
ParallelAnalysis
interface
TSelectorAnalyzer.h
Go to the documentation of this file.
1
#ifndef ParallelAnalysis_TSelectorAnalyzer_h
2
#define ParallelAnalysis_TSelectorAnalyzer_h
3
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
4
#include "TList.h"
5
6
template
<
typename
Algo>
7
class
TSelectorAnalyzer
:
public
edm::EDAnalyzer
{
8
public
:
9
TSelectorAnalyzer
(
const
edm::ParameterSet
&
cfg
) :
list_
(),
algo_
(
nullptr
,
list_
) {}
10
void
analyze
(
const
edm::Event
& evt,
const
edm::EventSetup
&)
override
{
algo_
.process(evt); }
11
void
endJob
()
override
{
12
algo_
.postProcess(
list_
);
13
algo_
.terminate(
list_
);
14
}
15
16
private
:
17
TList
list_
;
18
Algo
algo_
;
19
};
20
21
#endif
TSelectorAnalyzer::list_
TList list_
Definition:
TSelectorAnalyzer.h:17
TSelectorAnalyzer
Definition:
TSelectorAnalyzer.h:7
nullptr
#define nullptr
Definition:
GCC11Compatibility.h:37
TSelectorAnalyzer::analyze
void analyze(const edm::Event &evt, const edm::EventSetup &) override
Definition:
TSelectorAnalyzer.h:10
TSelectorAnalyzer::TSelectorAnalyzer
TSelectorAnalyzer(const edm::ParameterSet &cfg)
Definition:
TSelectorAnalyzer.h:9
TSelectorAnalyzer::endJob
void endJob() override
Definition:
TSelectorAnalyzer.h:11
edm::EventSetup
Definition:
EventSetup.h:57
looper.cfg
cfg
Definition:
looper.py:297
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
EDAnalyzer.h
TSelectorAnalyzer::algo_
Algo algo_
Definition:
TSelectorAnalyzer.h:18
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:72
Algo
Definition:
fakeMenu.h:6
Generated for CMSSW Reference Manual by
1.8.11