src
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/ProducesCollector.h
"
6
7
#include "
FWCore/Framework/interface/Event.h
"
8
#include "TTree.h"
9
10
/*
11
* Description:
12
* placeholder for common ntuplizer tools
13
*
14
*/
15
16
//base generic class
17
18
class
NTupler
{
19
public
:
20
NTupler
() :
useTFileService_
(
false
) {}
21
virtual
~NTupler
() {}
22
23
virtual
unsigned
int
registerleaves
(
edm::ProducesCollector
) = 0;
24
virtual
void
fill
(
edm::Event
&
iEvent
) = 0;
25
26
protected
:
27
bool
useTFileService_
;
28
TTree*
tree_
;
29
};
30
31
#include "
FWCore/PluginManager/interface/PluginFactory.h
"
32
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
33
34
typedef
edmplugin::PluginFactory<NTupler*(const edm::ParameterSet&)>
NTuplerFactory
;
35
36
#endif
NTupler::tree_
TTree * tree_
Definition:
NTupler.h:28
funct::false
false
Definition:
Factorize.h:29
Event.h
NTupler::~NTupler
virtual ~NTupler()
Definition:
NTupler.h:21
ProducesCollector.h
Frameworkfwd.h
NTupler
Definition:
NTupler.h:18
ParameterSet.h
NTupler::registerleaves
virtual unsigned int registerleaves(edm::ProducesCollector)=0
iEvent
int iEvent
Definition:
GenABIO.cc:224
edmplugin::PluginFactory
Definition:
PluginFactory.h:35
NTupler::NTupler
NTupler()
Definition:
NTupler.h:20
PluginFactory.h
NTupler::fill
virtual void fill(edm::Event &iEvent)=0
edm::ProducesCollector
Definition:
ProducesCollector.h:45
NTupler::useTFileService_
bool useTFileService_
Definition:
NTupler.h:27
edm::Event
Definition:
Event.h:73
NTuplerFactory
edmplugin::PluginFactory< NTupler *(const edm::ParameterSet &)> NTuplerFactory
Definition:
NTupler.h:34
Generated for CMSSW Reference Manual by
1.8.14