CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFEGammaProducer.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_PFEGammaProducer_PFEGammaProducer_h_
2 #define RecoParticleFlow_PFEGammaProducer_PFEGammaProducer_h_
3 
4 // system include files
5 #include <string>
6 
7 // user include files
11 
12 // useful?
14 
16 
27 
30 
31 #include <memory>
32 
34 
39 class GBRForest;
40 
52  public:
53  explicit PFEGammaProducer(const edm::ParameterSet&);
55 
56  virtual void produce(edm::Event&, const edm::EventSetup&) override;
57  virtual void beginRun(const edm::Run &, const edm::EventSetup &) override;
58 
59  private:
60 
62 
65 
67 
68 
72 
73  //Use of HO clusters and links in PF Reconstruction
74 
76  bool verbose_;
77 
78  // Use photon regression
90  // what about e/g electrons ?
92 
93  // Use vertices for Neutral particles ?
95 
96  // Take PF cluster calibrations from Global Tag ?
98 
99  std::shared_ptr<PFSCEnergyCalibration> thePFSCEnergyCalibration_;
100 
103  std::vector<double> setchi2Values_;
104  double mvaEleCut_;
117  unsigned int nTrackIsoForEgammaSC_;
118 
120 
121  std::auto_ptr< reco::PFCandidateCollection > egCandidates_;
122  std::auto_ptr<reco::PFCandidateEGammaExtraCollection> egExtra_;
123  std::auto_ptr<reco::ConversionCollection> singleLegConv_;
124  std::auto_ptr< reco::SuperClusterCollection > sClusters_;
125 
127 
128 
129  // Name of the calibration functions to read from the database
130  // std::vector<std::string> fToRead;
131 
133  std::unique_ptr<PFEGammaAlgo> pfeg_;
134 
137 
138 };
139 
142 
143 #endif
void createSingleLegConversions(reco::PFCandidateEGammaExtraCollection &extras, reco::ConversionCollection &oneLegConversions, const edm::RefProd< reco::ConversionCollection > &convProd)
const GBRForest * ReaderRes_
const GBRForest * ReaderGCEndCapHighr9_
double sumPtTrackIsoForEgammaSC_endcap_
edm::EDGetTokenT< reco::VertexCollection > vertices_
bool applyCrackCorrectionsElectrons_
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
double coneEcalIsoForEgammaSC_
const GBRForest * ReaderEcalRes_
double coneTrackIsoForEgammaSC_
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
double sumEtEcalIsoForEgammaSC_endcap_
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
Definition: ConversionFwd.h:9
const GBRForest * ReaderGCEndCapLowr9_
std::string mvaWeightFileEleID_
Variables for PFEGamma.
void setPFVertexParameters(bool useVertex, const reco::VertexCollection *primaryVertices)
std::vector< reco::PFCandidateEGammaExtra > PFCandidateEGammaExtraCollection
collection of PFCandidateEGammaExtras
reco::Vertex primaryVertex_
std::auto_ptr< reco::PFCandidateEGammaExtraCollection > egExtra_
std::string ebeeClustersCollection_
std::string esClustersCollection_
void setPFEGParameters(PFEGammaAlgo::PFEGConfigInfo &)
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
double sumPtTrackIsoForEgammaSC_barrel_
std::auto_ptr< reco::PFCandidateCollection > egCandidates_
bool verbose_
verbose ?
edm::EDGetTokenT< reco::PFCluster::EEtoPSAssociation > eetopsSrc_
std::vector< double > setchi2Values_
const GBRForest * ReaderLC_
unsigned int nTrackIsoForEgammaSC_
const GBRForest * ReaderLCEE_
std::unique_ptr< PFEGammaAlgo > pfeg_
the unfiltered electron collection
const GBRForest * ReaderGC_
edm::EDGetTokenT< reco::PFBlockCollection > inputTagBlocks_
const GBRForest * ReaderLCEB_
const GBRForest * ReaderGCBarrel_
std::shared_ptr< PFSCEnergyCalibration > thePFSCEnergyCalibration_
PFEGammaProducer(const edm::ParameterSet &)
Producer for particle flow reconstructed particles (PFCandidates)
double sumEtEcalIsoForEgammaSC_barrel_
virtual void produce(edm::Event &, const edm::EventSetup &) override
std::auto_ptr< reco::ConversionCollection > singleLegConv_
Definition: Run.h:41
std::auto_ptr< reco::SuperClusterCollection > sClusters_