--- UserCode/MitProd/TreeFiller/interface/FillMitTree.h 2008/07/30 16:39:57 1.7 +++ UserCode/MitProd/TreeFiller/interface/FillMitTree.h 2009/03/22 10:00:45 1.12 @@ -1,5 +1,5 @@ //-------------------------------------------------------------------------------------------------- -// $Id: FillMitTree.h,v 1.7 2008/07/30 16:39:57 loizides Exp $ +// $Id: FillMitTree.h,v 1.12 2009/03/22 10:00:45 loizides Exp $ // // FillMitTree // @@ -11,8 +11,8 @@ // Authors: C.Paus //-------------------------------------------------------------------------------------------------- -#ifndef TREEFILLER_FILLMITTREE_H -#define TREEFILLER_FILLMITTREE_H +#ifndef MITPROD_TREEFILLER_FILLMITTREE_H +#define MITPROD_TREEFILLER_FILLMITTREE_H #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" @@ -22,7 +22,9 @@ namespace mithep { + class BranchTable; class BaseFiller; + class TreeWriter; class FillMitTree : public edm::EDAnalyzer { @@ -30,17 +32,21 @@ namespace mithep FillMitTree(const edm::ParameterSet &cfg); ~FillMitTree(); - void analyze (const edm::Event &e, const edm::EventSetup &es); - void beginJob(const edm::EventSetup &es); - void endJob(); + void analyze (const edm::Event &e, const edm::EventSetup &es); + void beginJob(const edm::EventSetup &es); + void endJob(); - static ObjectService *os() { return os_; } + static ObjectService *os() { return os_; } protected: - bool configure(const edm::ParameterSet &cfg); + bool addActiveFiller(BaseFiller *bf); + bool configure(const edm::ParameterSet &cfg); std::vector fillers_; //list of active fillers bool defactive_; //default activity flag for fillers + BranchTable *brtable_; //branch dependency table + int acfnumber_; //keep track of active file number + TreeWriter *tws_; //pointer to tree writer static ObjectService *os_; //object service (set in beginJob) }; }