PhysicsTools
UtilAlgos
interface
NTupler.h
Go to the documentation of this file.
1
#ifndef NTupler_H
2
#define NTupler_H
3
4
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
5
#include "
FWCore/Framework/interface/EDProducer.h
"
6
#include "
FWCore/Framework/interface/EDFilter.h
"
7
#include "
FWCore/Framework/interface/ProducesCollector.h
"
8
9
#include "
FWCore/Framework/interface/Event.h
"
10
#include "TTree.h"
11
12
/*
13
* Description:
14
* placeholder for common ntuplizer tools
15
*
16
*/
17
18
//base generic class
19
20
class
NTupler
{
21
public
:
22
NTupler
() :
useTFileService_
(
false
) {}
23
virtual
~NTupler
() {}
24
25
virtual
unsigned
int
registerleaves
(
edm::ProducesCollector
) = 0;
26
virtual
void
fill
(
edm::Event
&
iEvent
) = 0;
27
28
protected
:
29
bool
useTFileService_
;
30
TTree*
tree_
;
31
};
32
33
#include "
FWCore/PluginManager/interface/PluginFactory.h
"
34
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
35
36
typedef
edmplugin::PluginFactory
<
NTupler
*(
const
edm::ParameterSet
&)>
NTuplerFactory
;
37
38
#endif
NTupler::NTupler
NTupler()
Definition:
NTupler.h:22
PluginFactory.h
funct::false
false
Definition:
Factorize.h:29
NTupler::~NTupler
virtual ~NTupler()
Definition:
NTupler.h:23
EDProducer.h
EDFilter.h
ProducesCollector.h
NTupler::registerleaves
virtual unsigned int registerleaves(edm::ProducesCollector)=0
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
edmplugin::PluginFactory
Definition:
PluginFactory.h:34
NTupler
Definition:
NTupler.h:20
iEvent
int iEvent
Definition:
GenABIO.cc:224
NTupler::tree_
TTree * tree_
Definition:
NTupler.h:30
NTupler::useTFileService_
bool useTFileService_
Definition:
NTupler.h:29
edm::ProducesCollector
Definition:
ProducesCollector.h:43
Frameworkfwd.h
ParameterSet.h
edm::Event
Definition:
Event.h:73
NTupler::fill
virtual void fill(edm::Event &iEvent)=0
Generated for CMSSW Reference Manual by
1.8.16