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/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::tree_
TTree * tree_
Definition:
NTupler.h:30
funct::false
false
Definition:
Factorize.h:29
Event.h
NTupler::~NTupler
virtual ~NTupler()
Definition:
NTupler.h:23
ProducesCollector.h
Frameworkfwd.h
NTupler
Definition:
NTupler.h:20
ParameterSet.h
NTupler::registerleaves
virtual unsigned int registerleaves(edm::ProducesCollector)=0
iEvent
int iEvent
Definition:
GenABIO.cc:224
edmplugin::PluginFactory
Definition:
PluginFactory.h:35
EDFilter.h
NTupler::NTupler
NTupler()
Definition:
NTupler.h:22
EDProducer.h
PluginFactory.h
NTupler::fill
virtual void fill(edm::Event &iEvent)=0
edm::ProducesCollector
Definition:
ProducesCollector.h:45
NTupler::useTFileService_
bool useTFileService_
Definition:
NTupler.h:29
edm::Event
Definition:
Event.h:73
NTuplerFactory
edmplugin::PluginFactory< NTupler *(const edm::ParameterSet &)> NTuplerFactory
Definition:
NTupler.h:36
Generated for CMSSW Reference Manual by
1.8.14