1 |
sixie |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
bendavid |
1.3 |
// $Id: FillerSuperClusters.h,v 1.2 2008/09/10 03:30:23 loizides Exp $
|
3 |
sixie |
1.1 |
//
|
4 |
|
|
// FillerSuperClusters
|
5 |
|
|
//
|
6 |
|
|
// Imlementation of a filler to fill EDM super clusters into our mithep::SuperCluster data structure.
|
7 |
|
|
//
|
8 |
|
|
// Authors: Si Xie
|
9 |
|
|
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
|
11 |
loizides |
1.2 |
#ifndef MITPROD_TREEFILLER_FILLERSUPERCLUSTERS_H
|
12 |
|
|
#define MITPROD_TREEFILLER_FILLERSUPERCLUSTERS_H
|
13 |
sixie |
1.1 |
|
14 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
15 |
|
|
#include "MitAna/DataUtil/interface/TreeWriter.h"
|
16 |
|
|
#include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
|
17 |
|
|
#include "MitAna/DataTree/interface/Collections.h"
|
18 |
|
|
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
19 |
|
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
20 |
|
|
|
21 |
|
|
namespace mithep
|
22 |
|
|
{
|
23 |
|
|
class FillerSuperClusters : public BaseFiller
|
24 |
|
|
{
|
25 |
|
|
public:
|
26 |
|
|
FillerSuperClusters(const edm::ParameterSet &cfg, const char *name, bool active=1);
|
27 |
|
|
~FillerSuperClusters();
|
28 |
|
|
|
29 |
|
|
void BookDataBlock(TreeWriter &tws);
|
30 |
|
|
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
31 |
|
|
|
32 |
|
|
const mithep::SuperClusterMap *GetSuperClusterMap() const { return superClusterMap_; }
|
33 |
|
|
|
34 |
|
|
private:
|
35 |
loizides |
1.2 |
std::string edmName_;
|
36 |
|
|
std::string mitName_;
|
37 |
|
|
std::string basicClusterMapName_; //name of imp. map wrt basic clusters
|
38 |
|
|
std::string superClusterMapName_; //name of exported map
|
39 |
bendavid |
1.3 |
std::string superClusterIdMapName_; //name of exported id map
|
40 |
loizides |
1.2 |
const mithep::BasicClusterMap *basicClusterMap_; //map wrt basic clusters
|
41 |
|
|
mithep::SuperClusterArr *superClusters_; //array of super clusters
|
42 |
|
|
mithep::SuperClusterMap *superClusterMap_; //map wrt super clusters
|
43 |
bendavid |
1.3 |
mithep::SuperClusterIdMap *superClusterIdMap_; //map of DetIds to superclusters
|
44 |
sixie |
1.1 |
};
|
45 |
|
|
}
|
46 |
|
|
#endif
|
47 |
loizides |
1.2 |
|