Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13000 from matteosan1/mustacheRegression_800
- Loading branch information
Showing
8 changed files
with
472 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
RecoEgamma/EgammaTools/interface/SCEnergyCorrectorSemiParm.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
//-------------------------------------------------------------------------------------------------- | ||
// $Id $ | ||
// | ||
// SCEnergyCorrectorSemiParm | ||
// | ||
// Helper Class for applying regression-based energy corrections with optimized BDT implementation | ||
// | ||
// Authors: J.Bendavid | ||
//-------------------------------------------------------------------------------------------------- | ||
|
||
#ifndef EGAMMATOOLS_SCEnergyCorrectorSemiParm_H | ||
#define EGAMMATOOLS_SCEnergyCorrectorSemiParm_H | ||
|
||
#include "FWCore/Framework/interface/EventSetup.h" | ||
|
||
#include "DataFormats/VertexReco/interface/VertexFwd.h" | ||
#include "CondFormats/EgammaObjects/interface/GBRForestD.h" | ||
#include "DataFormats/EcalRecHit/interface/EcalRecHit.h" | ||
#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h" | ||
#include "Geometry/CaloEventSetup/interface/CaloTopologyRecord.h" | ||
#include "Geometry/CaloTopology/interface/CaloTopology.h" | ||
#include "Geometry/Records/interface/CaloGeometryRecord.h" | ||
#include "Geometry/CaloGeometry/interface/CaloGeometry.h" | ||
#include "FWCore/Framework/interface/ConsumesCollector.h" | ||
#include "DataFormats/EgammaReco/interface/SuperCluster.h" | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/ESHandle.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
||
class SCEnergyCorrectorSemiParm { | ||
public: | ||
SCEnergyCorrectorSemiParm(); | ||
~SCEnergyCorrectorSemiParm(); | ||
|
||
void setTokens(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc); | ||
|
||
void modifyObject(reco::SuperCluster &sc); | ||
|
||
void setEventSetup(const edm::EventSetup &es); | ||
void setEvent(const edm::Event &e); | ||
|
||
protected: | ||
const GBRForestD *foresteb_; | ||
const GBRForestD *forestee_; | ||
const GBRForestD *forestsigmaeb_; | ||
const GBRForestD *forestsigmaee_; | ||
|
||
edm::ESHandle<CaloTopology> calotopo_; | ||
edm::ESHandle<CaloGeometry> calogeom_; | ||
const CaloTopologyRecord* topo_record_; | ||
const CaloGeometryRecord* geom_record_; | ||
|
||
edm::EDGetTokenT<EcalRecHitCollection> tokenEBRecHits_; | ||
edm::EDGetTokenT<EcalRecHitCollection> tokenEERecHits_; | ||
edm::EDGetTokenT<reco::VertexCollection> tokenVertices_; | ||
|
||
edm::Handle<reco::VertexCollection> vertices_; | ||
edm::Handle<EcalRecHitCollection> rechitsEB_; | ||
edm::Handle<EcalRecHitCollection> rechitsEE_; | ||
|
||
edm::InputTag ecalHitsEBInputTag_; | ||
edm::InputTag ecalHitsEEInputTag_; | ||
edm::InputTag vertexInputTag_; | ||
|
||
std::string regressionKeyEB_; | ||
std::string uncertaintyKeyEB_; | ||
std::string regressionKeyEE_; | ||
std::string uncertaintyKeyEE_; | ||
|
||
private: | ||
bool isHLT_; | ||
int nHitsAboveThreshold_; | ||
float etThreshold_; | ||
}; | ||
#endif |
Oops, something went wrong.