--- UserCode/MitProd/TreeFiller/interface/FillMitTree.h 2008/07/01 21:11:47 1.6 +++ UserCode/MitProd/TreeFiller/interface/FillMitTree.h 2009/03/15 11:20:40 1.10 @@ -1,5 +1,5 @@ //-------------------------------------------------------------------------------------------------- -// $Id: FillMitTree.h,v 1.6 2008/07/01 21:11:47 loizides Exp $ +// $Id: FillMitTree.h,v 1.10 2009/03/15 11:20:40 loizides Exp $ // // FillMitTree // @@ -11,17 +11,20 @@ // 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" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Framework/interface/Frameworkfwd.h" -#include "MitProd/TreeFiller/interface/BaseFiller.h" +#include "MitProd/ObjectService/interface/ObjectService.h" namespace mithep { + class BaseFiller; + class BranchTable; + class FillMitTree : public edm::EDAnalyzer { public: @@ -31,12 +34,17 @@ namespace mithep void analyze (const edm::Event &e, const edm::EventSetup &es); void beginJob(const edm::EventSetup &es); void endJob(); - + + static ObjectService *os() { return os_; } + protected: + 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 + static ObjectService *os_; //object service (set in beginJob) }; } #endif