ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/BaseFiller.h
Revision: 1.1
Committed: Wed Jun 18 13:23:22 2008 UTC (16 years, 10 months ago) by paus
Content type: text/plain
Branch: MAIN
Log Message:
Basic structure of Filling framework.

File Contents

# User Rev Content
1 paus 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: $
3     //
4     // BaseFiller
5     //
6     // Base class to define the interface for a filler.
7     //
8     // Authors: C.Paus
9     //--------------------------------------------------------------------------------------------------
10     #ifndef TREEFILLER_BASEFILLER_H
11     #define TREEFILLER_BASEFILLER_H
12    
13     #include "FWCore/Framework/interface/Event.h"
14     #include "FWCore/ParameterSet/interface/ParameterSet.h"
15     #include "FWCore/Framework/interface/Frameworkfwd.h"
16     #include "MitAna/DataUtil/interface/TreeWriter.h"
17    
18     namespace mithep
19     {
20     class BaseFiller
21     {
22     public:
23     BaseFiller(const edm::ParameterSet&);
24     virtual ~BaseFiller() {}
25    
26     virtual void BookDataBlock(TreeWriter *tws) = 0;
27     virtual void FillDataBlock(const edm::Event&, const edm::EventSetup&) = 0;
28     virtual void ResolveLinks (const edm::Event&, const edm::EventSetup&) {}
29    
30     protected:
31     const edm::ParameterSet *config_;
32     std::string edmName_;
33     std::string mitName_;
34     };
35     }
36     #endif