CMS 3D CMS Logo

NTupler.h
Go to the documentation of this file.
1 #ifndef NTupler_H
2 #define NTupler_H
3 
6 
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:
21  virtual ~NTupler() {}
22 
23  virtual unsigned int registerleaves(edm::ProducesCollector) = 0;
24  virtual void fill(edm::Event& iEvent) = 0;
25 
26 protected:
28  TTree* tree_;
29 };
30 
33 
35 
36 #endif
TTree * tree_
Definition: NTupler.h:28
virtual ~NTupler()
Definition: NTupler.h:21
virtual unsigned int registerleaves(edm::ProducesCollector)=0
int iEvent
Definition: GenABIO.cc:224
NTupler()
Definition: NTupler.h:20
virtual void fill(edm::Event &iEvent)=0
bool useTFileService_
Definition: NTupler.h:27
edmplugin::PluginFactory< NTupler *(const edm::ParameterSet &)> NTuplerFactory
Definition: NTupler.h:34