ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerSuperClusters.h
Revision: 1.4
Committed: Sun Mar 15 11:20:40 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2
Changes since 1.3: +12 -13 lines
Log Message:
Introduced BranchTable plus general cleanup.

File Contents

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