1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
paus |
1.22 |
// $Id: FillerPhotons.h,v 1.21 2012/07/25 03:08:42 paus Exp $
|
3 |
bendavid |
1.1 |
//
|
4 |
|
|
// FillerPhotons
|
5 |
|
|
//
|
6 |
paus |
1.20 |
// Implementation of a filler to fill photons into our data structure, including converted photons.
|
7 |
bendavid |
1.1 |
//
|
8 |
paus |
1.20 |
// Authors: C.Paus, J.Bendavid
|
9 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
|
11 |
loizides |
1.6 |
#ifndef MITPROD_TREEFILLER_FILLERPHOTONS_H
|
12 |
|
|
#define MITPROD_TREEFILLER_FILLERPHOTONS_H
|
13 |
bendavid |
1.1 |
|
14 |
loizides |
1.12 |
#include "MitAna/DataTree/interface/PhotonFwd.h"
|
15 |
|
|
#include "MitProd/TreeFiller/interface/AssociationMaps.h"
|
16 |
bendavid |
1.1 |
#include "MitProd/TreeFiller/interface/BaseFiller.h"
|
17 |
paus |
1.18 |
#include "RecoEgamma/EgammaTools/interface/EGEnergyCorrector.h"
|
18 |
paus |
1.22 |
#include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h"
|
19 |
|
|
#include "Geometry/CaloGeometry/interface/CaloGeometry.h"
|
20 |
bendavid |
1.1 |
|
21 |
|
|
namespace mithep
|
22 |
|
|
{
|
23 |
|
|
class FillerPhotons : public BaseFiller
|
24 |
|
|
{
|
25 |
|
|
public:
|
26 |
loizides |
1.9 |
FillerPhotons(const edm::ParameterSet &cfg, const char *name, bool active=1);
|
27 |
bendavid |
1.1 |
~FillerPhotons();
|
28 |
|
|
|
29 |
paus |
1.20 |
void BookDataBlock(TreeWriter &tws);
|
30 |
|
|
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
31 |
paus |
1.22 |
|
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 |
paus |
1.20 |
private:
|
43 |
paus |
1.21 |
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 |
paus |
1.22 |
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 |
paus |
1.21 |
mithep::PhotonMap *photonMap_; //exported photon map
|
60 |
paus |
1.20 |
mithep::PhotonArr *photons_; //array of Photons
|
61 |
paus |
1.21 |
const mithep::ConversionDecayMap *conversionMap_; //imp. map wrt conver. electrons
|
62 |
|
|
const mithep::ConversionDecayMap *oneLegConversionMap_; //imp. map wrt conver. electrons
|
63 |
paus |
1.20 |
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 |
bendavid |
1.1 |
};
|
70 |
|
|
}
|
71 |
|
|
#endif
|