ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerPhotons.h
Revision: 1.22
Committed: Mon Jul 1 20:18:00 2013 UTC (11 years, 10 months ago) by paus
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_032, Mit_031, HEAD
Changes since 1.21: +18 -2 lines
Error occurred while calculating annotation data.
Log Message:
Mono adjustments: Halo tag, ECAL timing, Cosmic muons.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: FillerPhotons.h,v 1.21 2012/07/25 03:08:42 paus Exp $
3 //
4 // FillerPhotons
5 //
6 // Implementation of a filler to fill photons into our data structure, including converted photons.
7 //
8 // Authors: C.Paus, J.Bendavid
9 //--------------------------------------------------------------------------------------------------
10
11 #ifndef MITPROD_TREEFILLER_FILLERPHOTONS_H
12 #define MITPROD_TREEFILLER_FILLERPHOTONS_H
13
14 #include "MitAna/DataTree/interface/PhotonFwd.h"
15 #include "MitProd/TreeFiller/interface/AssociationMaps.h"
16 #include "MitProd/TreeFiller/interface/BaseFiller.h"
17 #include "RecoEgamma/EgammaTools/interface/EGEnergyCorrector.h"
18 #include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h"
19 #include "Geometry/CaloGeometry/interface/CaloGeometry.h"
20
21 namespace mithep
22 {
23 class FillerPhotons : public BaseFiller
24 {
25 public:
26 FillerPhotons(const edm::ParameterSet &cfg, const char *name, bool active=1);
27 ~FillerPhotons();
28
29 void BookDataBlock(TreeWriter &tws);
30 void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
31
32 protected:
33 void HERecHitMatcher(const reco::Photon* pho, int zSide,
34 double deltaPhiMin, double rhoMin,
35 double rhoMax, double rhEnMin,
36 ThreeVector &matchRhPos,
37 double &matchedRhEnergy,
38 double &matchedRhTime,
39 const HBHERecHitCollection *hbHeRecHitCol,
40 const CaloGeometry *caloGeom);
41
42 private:
43 std::string edmName_; //edm name: photon collection
44 std::string mitName_; //mit name: photon collection
45 std::string conversionMapName_; //name: imp. map wrt conv. elecs
46 std::string oneLegConversionMapName_; //name: imp. map wrt conv. elecs
47 std::string barrelSuperClusterMapName_; //name: imp. map wrt barrel sclus
48 std::string endcapSuperClusterMapName_; //name: imp. map wrt endcap sclus
49 std::string pfSuperClusterMapName_; //name: imp. map wrt pflow sclus
50 std::string pfClusterMapName_; //name: imp. map wrt pflow clus
51 std::string pfCandMapName_; //name: imp. map wrt pfcandidates
52 std::string photonMapName_; //name: exported photon map
53 std::string phIDCutBasedTightName_; //name: tight cut phID algo
54 std::string phIDCutBasedLooseName_; //name: loose cut phID algo
55 std::string EBRecHitsEdmName_; //name: input edm ECAL EB rec hits collection
56 std::string EERecHitsEdmName_; //name: input edm ECAL EE rec hits collection
57 std::string PFCandsEdmName_; //name: input edm pfCandidates
58 edm::InputTag HBHERecHitsEdmName_; //name: input edm HCAL HE rec hits collection
59 mithep::PhotonMap *photonMap_; //exported photon map
60 mithep::PhotonArr *photons_; //array of Photons
61 const mithep::ConversionDecayMap *conversionMap_; //imp. map wrt conver. electrons
62 const mithep::ConversionDecayMap *oneLegConversionMap_; //imp. map wrt conver. electrons
63 const mithep::SuperClusterMap *barrelSuperClusterMap_; //map wrt barrel super clusters
64 const mithep::SuperClusterMap *endcapSuperClusterMap_; //map wrt endcap super clusters
65 const mithep::SuperClusterMap *pfSuperClusterMap_; //map wrt pflow super clusters
66 const mithep::BasicClusterMap *pfClusterMap_; //map wrt pflow basic clusters
67 const mithep::PFCandidateMap *pfCandMap_; //map wrt pflow candidates
68 EGEnergyCorrector ecorr_;
69 };
70 }
71 #endif