CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
NTupler.h
Go to the documentation of this file.
1 #ifndef NTupler_H
2 #define NTupler_H
3 
4 
9 
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:
24  virtual ~NTupler(){}
25 
26  virtual unsigned int registerleaves(edm::ProducerBase * producer) =0;
27  virtual void fill(edm::Event& iEvent)=0;
28  protected:
30  TTree * tree_;
31 };
32 
35 
37 
38 #endif
TTree * tree_
Definition: NTupler.h:30
virtual ~NTupler()
Definition: NTupler.h:24
int iEvent
Definition: GenABIO.cc:243
NTupler()
Definition: NTupler.h:23
virtual unsigned int registerleaves(edm::ProducerBase *producer)=0
edmplugin::PluginFactory< NTupler *(const edm::ParameterSet &) > NTuplerFactory
Definition: NTupler.h:36
virtual void fill(edm::Event &iEvent)=0
volatile std::atomic< bool > shutdown_flag false
bool useTFileService_
Definition: NTupler.h:29