ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerSuperClusters.h
Revision: 1.10.2.2
Committed: Fri Jun 21 05:04:03 2013 UTC (11 years, 10 months ago) by paus
Content type: text/plain
Branch: Mit_025c_branch
CVS Tags: Mit_025c_branch2
Changes since 1.10.2.1: +5 -1 lines
Log Message:
Backport 3 fine tuning.

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 paus 1.10.2.2 // $Id: FillerSuperClusters.h,v 1.10.2.1 2012/05/15 23:31:20 paus Exp $
3 sixie 1.1 //
4     // FillerSuperClusters
5     //
6 paus 1.10.2.1 // Implementation of a filler to fill EDM super clusters into our mithep::SuperCluster data
7     // structure.
8 sixie 1.1 //
9 paus 1.10.2.1 // Authors: C.Paus, J.Bendavid, 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 loizides 1.6 #include "MitAna/DataTree/interface/SuperClusterCol.h"
16     #include "MitProd/TreeFiller/interface/AssociationMaps.h"
17 sixie 1.1 #include "MitProd/TreeFiller/interface/BaseFiller.h"
18    
19 paus 1.10.2.1 class CaloGeometry;
20     class CaloSubdetectorTopology;
21     class EcalRecHit;
22    
23 sixie 1.1 namespace mithep
24     {
25     class FillerSuperClusters : public BaseFiller
26     {
27     public:
28     FillerSuperClusters(const edm::ParameterSet &cfg, const char *name, bool active=1);
29     ~FillerSuperClusters();
30    
31 paus 1.10.2.1 void BookDataBlock(TreeWriter &tws);
32     void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
33     const mithep::SuperClusterMap *GetSuperClusterMap() const { return superClusterMap_; }
34    
35     protected:
36     std::vector<float> getESHits(double X, double Y, double Z,
37     std::map<DetId, EcalRecHit> rechits_map,
38     const CaloGeometry& geometry,
39     CaloSubdetectorTopology *topology_p, int row);
40     std::vector<float> getESShape(std::vector<float> ESHits0);
41 sixie 1.1
42     private:
43 paus 1.10.2.1 std::string edmName_; //edm name of collection
44     std::string mitName_; //mit name of collection
45     std::string basicClusterMapName_; //name of imp. map wrt basic clus
46     std::string psClusterMapName_; //name of imp. map wrt ps clus
47 paus 1.10.2.2 std::string psXClusterMapName_; //name of imp. map wrt ps x clus
48     std::string psYClusterMapName_; //name of imp. map wrt ps y clus
49 paus 1.10.2.1 std::string caloTowerDetIdMapName_; //name of imp. map wrt caloTowerDetId
50     std::string superClusterMapName_; //name of exported map
51     std::string superClusterIdMapName_; //name of exported id map
52     std::string caloTowerName_; //name of calotower collection
53     const mithep::BasicClusterMap *basicClusterMap_; //map wrt basic clusters
54     const mithep::PsClusterMap *psClusterMap_; //map wrt preshower clusters
55 paus 1.10.2.2 const mithep::PsClusterMap *psXClusterMap_; //map wrt preshower x clusters
56     const mithep::PsClusterMap *psYClusterMap_; //map wrt preshower y clusters
57 bendavid 1.10 const mithep::CaloTowerDetIdMap *caloTowerDetIdMap_; //map wrt calo tower det id's
58 paus 1.10.2.1 mithep::SuperClusterArr *superClusters_; //array of super clusters
59     mithep::SuperClusterMap *superClusterMap_; //map wrt super clusters
60     mithep::SuperClusterIdMap *superClusterIdMap_; //map of DetIds to superclusters
61 sixie 1.1 };
62     }
63     #endif