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