1 |
sixie |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.5 |
// $Id: FillerCaloTowers.h,v 1.4 2009/03/15 11:20:40 loizides Exp $
|
3 |
sixie |
1.1 |
//
|
4 |
loizides |
1.4 |
// FillerCaloTowers
|
5 |
sixie |
1.1 |
//
|
6 |
loizides |
1.4 |
// Implementation of a filler to fill EDM CaloTowers into our mithep::CaloTower data structure.
|
7 |
sixie |
1.1 |
//
|
8 |
loizides |
1.3 |
// Authors: S.Xie
|
9 |
sixie |
1.1 |
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
|
11 |
loizides |
1.3 |
#ifndef MITPROD_TREEFILLER_FILLERCALOTOWERS_H
|
12 |
|
|
#define MITPROD_TREEFILLER_FILLERCALOTOWERS_H
|
13 |
sixie |
1.1 |
|
14 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
15 |
|
|
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
16 |
|
|
#include "MitAna/DataTree/interface/Collections.h"
|
17 |
|
|
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
18 |
|
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
19 |
|
|
|
20 |
|
|
namespace mithep
|
21 |
|
|
{
|
22 |
|
|
class FillerCaloTowers : public BaseFiller
|
23 |
|
|
{
|
24 |
|
|
public:
|
25 |
|
|
FillerCaloTowers(const edm::ParameterSet &cfg, const char *name, bool active=1);
|
26 |
|
|
~FillerCaloTowers();
|
27 |
|
|
|
28 |
loizides |
1.3 |
void BookDataBlock(TreeWriter &tws);
|
29 |
|
|
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
30 |
sixie |
1.1 |
|
31 |
|
|
private:
|
32 |
loizides |
1.3 |
std::string edmName_; //edm name of CaloTowers
|
33 |
loizides |
1.5 |
std::string mitName_; //name of CaloTowers
|
34 |
loizides |
1.3 |
std::string caloTowerMapName_; //name of export map
|
35 |
|
|
mithep::CaloTowerArr *caloTowers_; //array of CaloTowers
|
36 |
|
|
mithep::CaloTowerMap *caloTowerMap_; //map wrt CaloTowers
|
37 |
sixie |
1.1 |
};
|
38 |
|
|
}
|
39 |
|
|
#endif
|