CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
TTree * tree_
Definition: NTupler.h:30
virtual ~NTupler()
Definition: NTupler.h:23
virtual unsigned int registerleaves(edm::ProducesCollector)=0
int iEvent
Definition: GenABIO.cc:224
NTupler()
Definition: NTupler.h:22
virtual void fill(edm::Event &iEvent)=0
bool useTFileService_
Definition: NTupler.h:29
edmplugin::PluginFactory< NTupler *(const edm::ParameterSet &)> NTuplerFactory
Definition: NTupler.h:36