Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
PhysicsTools
UtilAlgos
interface
NTupler.h
Go to the documentation of this file.
1
#ifndef NTupler_H
2
#define NTupler_H
3
4
5
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
6
#include "
FWCore/Framework/interface/EDProducer.h
"
7
#include "
FWCore/Framework/interface/EDFilter.h
"
8
#include "
FWCore/Framework/interface/ProducerBase.h
"
9
10
#include "
FWCore/Framework/interface/Event.h
"
11
#include "TTree.h"
12
13
/*
14
* Description:
15
* placeholder for common ntuplizer tools
16
*
17
*/
18
19
//base generic class
20
21
class
NTupler
{
22
public
:
23
NTupler
() :
useTFileService_
(
false
){}
24
virtual
~NTupler
(){}
25
26
virtual
unsigned
int
registerleaves
(
edm::ProducerBase
*
producer
) =0;
27
virtual
void
fill
(
edm::Event
&
iEvent
)=0;
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
reco_calib_source_client_cfg.producer
tuple producer
Definition:
reco_calib_source_client_cfg.py:66
NTupler::tree_
TTree * tree_
Definition:
NTupler.h:30
funct::false
false
Definition:
Factorize.h:34
Event.h
NTupler::~NTupler
virtual ~NTupler()
Definition:
NTupler.h:24
Frameworkfwd.h
NTupler
Definition:
NTupler.h:21
ProducerBase.h
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:243
edmplugin::PluginFactory
Definition:
PluginFactory.h:31
EDFilter.h
NTupler::NTupler
NTupler()
Definition:
NTupler.h:23
NTupler::registerleaves
virtual unsigned int registerleaves(edm::ProducerBase *producer)=0
NTuplerFactory
edmplugin::PluginFactory< NTupler *(const edm::ParameterSet &) > NTuplerFactory
Definition:
NTupler.h:36
EDProducer.h
PluginFactory.h
edm::ProducerBase
Definition:
ProducerBase.h:18
NTupler::fill
virtual void fill(edm::Event &iEvent)=0
NTupler::useTFileService_
bool useTFileService_
Definition:
NTupler.h:29
edm::Event
Definition:
Event.h:50
Generated for CMSSW Reference Manual by
1.8.5