1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
pharris |
1.17.2.2 |
// $Id: FillerPhotons.h,v 1.17.2.1 2012/05/15 23:31:20 paus Exp $
|
3 |
bendavid |
1.1 |
//
|
4 |
|
|
// FillerPhotons
|
5 |
|
|
//
|
6 |
paus |
1.17.2.1 |
// Implementation of a filler to fill photons into our data structure, including converted photons.
|
7 |
bendavid |
1.1 |
//
|
8 |
paus |
1.17.2.1 |
// 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 |
pharris |
1.17.2.2 |
|
18 |
bendavid |
1.16 |
#include "HiggsAnalysis/HiggsToGammaGamma/interface/EGEnergyCorrector.h"
|
19 |
bendavid |
1.1 |
|
20 |
paus |
1.17.2.1 |
// patching 4x
|
21 |
|
|
#include "RecoEgamma/EgammaElectronAlgos/interface/ElectronHcalHelper.h"
|
22 |
|
|
|
23 |
bendavid |
1.1 |
namespace mithep
|
24 |
|
|
{
|
25 |
|
|
class FillerPhotons : public BaseFiller
|
26 |
|
|
{
|
27 |
|
|
public:
|
28 |
loizides |
1.9 |
FillerPhotons(const edm::ParameterSet &cfg, const char *name, bool active=1);
|
29 |
bendavid |
1.1 |
~FillerPhotons();
|
30 |
|
|
|
31 |
paus |
1.17.2.1 |
void BookDataBlock(TreeWriter &tws);
|
32 |
|
|
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
|
33 |
|
|
|
34 |
|
|
private:
|
35 |
|
|
std::string edmName_; //edm name of photon collection
|
36 |
|
|
std::string mitName_; //mit name of photon collection
|
37 |
|
|
std::string conversionMapName_; //name of imported map wrt conv electrons
|
38 |
|
|
std::string oneLegConversionMapName_; //name of imported map wrt conv electrons
|
39 |
|
|
std::string barrelSuperClusterMapName_; //name of imp. map wrt barrel sclus
|
40 |
|
|
std::string endcapSuperClusterMapName_; //name of imp. map wrt endcap sclus
|
41 |
|
|
std::string pfSuperClusterMapName_; //name of imp. map wrt pflow sclus
|
42 |
|
|
std::string pfClusterMapName_; //name of imp. map wrt pflow clus
|
43 |
|
|
std::string pfCandMapName_; //name of imp. map wrt pfcandidates
|
44 |
|
|
std::string phIDCutBasedTightName_; //name of tight cut phID algo
|
45 |
|
|
std::string phIDCutBasedLooseName_; //name of loose cut phID algo
|
46 |
pharris |
1.17.2.2 |
bool useHcalTowers_; //use calo Towers to get the hcal info
|
47 |
paus |
1.17.2.1 |
mithep::PhotonArr *photons_; //array of Photons
|
48 |
|
|
const mithep::ConversionDecayMap *conversionMap_; //imported map wrt conversion electrons
|
49 |
|
|
const mithep::ConversionDecayMap *oneLegConversionMap_; //imported map wrt conversion electrons
|
50 |
|
|
const mithep::SuperClusterMap *barrelSuperClusterMap_; //map wrt barrel super clusters
|
51 |
|
|
const mithep::SuperClusterMap *endcapSuperClusterMap_; //map wrt endcap super clusters
|
52 |
|
|
const mithep::SuperClusterMap *pfSuperClusterMap_; //map wrt pflow super clusters
|
53 |
|
|
const mithep::BasicClusterMap *pfClusterMap_; //map wrt pflow basic clusters
|
54 |
|
|
const mithep::PFCandidateMap *pfCandMap_; //map wrt pflow candidates
|
55 |
pharris |
1.17.2.2 |
EGEnergyCorrector ecorr_;
|
56 |
|
|
|
57 |
paus |
1.17.2.1 |
// patching 4x
|
58 |
|
|
ElectronHcalHelper::Configuration hcalCfg_;
|
59 |
|
|
ElectronHcalHelper *hcalHelper_;
|
60 |
pharris |
1.17.2.2 |
|
61 |
|
|
};
|
62 |
bendavid |
1.1 |
}
|
63 |
|
|
#endif
|