CMS 3D CMS Logo

NTupler.h
Go to the documentation of this file.
1 #ifndef NTupler_H
2 #define NTupler_H
3 
8 
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:
23  virtual ~NTupler() {}
24 
25  virtual unsigned int registerleaves(edm::ProducesCollector) = 0;
26  virtual void fill(edm::Event& iEvent) = 0;
27 
28 protected:
30  TTree* tree_;
31 };
32 
35 
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