CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Attributes
pfEGHelpers::HeavyObjectCache Class Reference

#include <PFEGammaHeavyObjectCache.h>

Public Member Functions

 HeavyObjectCache (const edm::ParameterSet &)
 

Public Attributes

std::unique_ptr< const GBRForestgbrEle_
 
std::unique_ptr< const GBRForestgbrSingleLeg_
 

Private Attributes

float chi2
 
float chi2_gsf
 
float chi2_kf
 
float del_phi
 
float DEtaGsfEcalClust
 
float dPtOverPt_gsf
 
float DPtOverPt_gsf
 
float EGsfPoutMode
 
float EoverPt
 
float Eta_gsf
 
float EtotBremPinPoutMode
 
float EtotPinMode
 
float firstBrem
 
float HOverHE
 
float HoverPt
 
float lateBrem
 
float lnPt_gsf
 
float nhit_kf
 
float nlayers
 
float nlost
 
float SigmaEtaEta
 
float STIP
 
float track_pt
 

Detailed Description

Definition at line 9 of file PFEGammaHeavyObjectCache.h.

Constructor & Destructor Documentation

pfEGHelpers::HeavyObjectCache::HeavyObjectCache ( const edm::ParameterSet conf)

Definition at line 7 of file PFEGammaHeavyObjectCache.cc.

References chi2, chi2_gsf, chi2_kf, del_phi, DEtaGsfEcalClust, DPtOverPt_gsf, dPtOverPt_gsf, EGsfPoutMode, EoverPt, Eta_gsf, EtotBremPinPoutMode, EtotPinMode, firstBrem, edm::FileInPath::fullPath(), gbrEle_, gbrSingleLeg_, edm::ParameterSet::getParameter(), HOverHE, HoverPt, lateBrem, lnPt_gsf, nhit_kf, nlayers, nlost, SigmaEtaEta, STIP, groupFilesInBlocks::temp, and track_pt.

7  {
8  {
9  const edm::FileInPath& wfile = conf.getParameter<edm::FileInPath>("pf_electronID_mvaWeightFile");
10  // Set the tmva reader for electrons
11  TMVA::Reader tmvaReaderEle_("!Color:Silent");
12  tmvaReaderEle_.AddVariable("lnPt_gsf",&lnPt_gsf);
13  tmvaReaderEle_.AddVariable("Eta_gsf",&Eta_gsf);
14  tmvaReaderEle_.AddVariable("dPtOverPt_gsf",&dPtOverPt_gsf);
15  tmvaReaderEle_.AddVariable("DPtOverPt_gsf",&DPtOverPt_gsf);
16  //tmvaReaderEle_.AddVariable("nhit_gsf",&nhit_gsf);
17  tmvaReaderEle_.AddVariable("chi2_gsf",&chi2_gsf);
18  //tmvaReaderEle_.AddVariable("DPtOverPt_kf",&DPtOverPt_kf);
19  tmvaReaderEle_.AddVariable("nhit_kf",&nhit_kf);
20  tmvaReaderEle_.AddVariable("chi2_kf",&chi2_kf);
21  tmvaReaderEle_.AddVariable("EtotPinMode",&EtotPinMode);
22  tmvaReaderEle_.AddVariable("EGsfPoutMode",&EGsfPoutMode);
23  tmvaReaderEle_.AddVariable("EtotBremPinPoutMode",&EtotBremPinPoutMode);
24  tmvaReaderEle_.AddVariable("DEtaGsfEcalClust",&DEtaGsfEcalClust);
25  tmvaReaderEle_.AddVariable("SigmaEtaEta",&SigmaEtaEta);
26  tmvaReaderEle_.AddVariable("HOverHE",&HOverHE);
27  // tmvaReaderEle_.AddVariable("HOverPin",&HOverPin);
28  tmvaReaderEle_.AddVariable("lateBrem",&lateBrem);
29  tmvaReaderEle_.AddVariable("firstBrem",&firstBrem);
30  std::unique_ptr<TMVA::IMethod> temp( tmvaReaderEle_.BookMVA("BDT", wfile.fullPath().c_str()) );
31  gbrEle_.reset( new GBRForest( dynamic_cast<TMVA::MethodBDT*>( tmvaReaderEle_.FindMVA("BDT") ) ) );
32  }
33  {
34  const edm::FileInPath& wfile = conf.getParameter<edm::FileInPath>("pf_convID_mvaWeightFile");
35  //Book MVA (single leg)
36  TMVA::Reader tmvaReader_("!Color:Silent");
37  tmvaReader_.AddVariable("del_phi",&del_phi);
38  tmvaReader_.AddVariable("nlayers", &nlayers);
39  tmvaReader_.AddVariable("chi2",&chi2);
40  tmvaReader_.AddVariable("EoverPt",&EoverPt);
41  tmvaReader_.AddVariable("HoverPt",&HoverPt);
42  tmvaReader_.AddVariable("track_pt", &track_pt);
43  tmvaReader_.AddVariable("STIP",&STIP);
44  tmvaReader_.AddVariable("nlost", &nlost);
45  std::unique_ptr<TMVA::IMethod> temp( tmvaReader_.BookMVA("BDT", wfile.fullPath().c_str()) );
46  gbrSingleLeg_.reset( new GBRForest( dynamic_cast<TMVA::MethodBDT*>( tmvaReader_.FindMVA("BDT") ) ) );
47  }
48  }
T getParameter(std::string const &) const
std::unique_ptr< const GBRForest > gbrEle_
std::unique_ptr< const GBRForest > gbrSingleLeg_
std::string fullPath() const
Definition: FileInPath.cc:184

Member Data Documentation

float pfEGHelpers::HeavyObjectCache::chi2
private

Definition at line 21 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::chi2_gsf
private

Definition at line 16 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::chi2_kf
private

Definition at line 17 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::del_phi
private

Definition at line 21 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::DEtaGsfEcalClust
private

Definition at line 17 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::dPtOverPt_gsf
private

Definition at line 16 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::DPtOverPt_gsf
private

Definition at line 16 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::EGsfPoutMode
private

Definition at line 17 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::EoverPt
private

Definition at line 21 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::Eta_gsf
private

Definition at line 16 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::EtotBremPinPoutMode
private

Definition at line 17 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::EtotPinMode
private

Definition at line 17 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::firstBrem
private

Definition at line 18 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

std::unique_ptr<const GBRForest> pfEGHelpers::HeavyObjectCache::gbrEle_

Definition at line 12 of file PFEGammaHeavyObjectCache.h.

Referenced by PFEGammaAlgo::calculate_ele_mva(), and HeavyObjectCache().

std::unique_ptr<const GBRForest> pfEGHelpers::HeavyObjectCache::gbrSingleLeg_
float pfEGHelpers::HeavyObjectCache::HOverHE
private

Definition at line 18 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::HoverPt
private

Definition at line 21 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::lateBrem
private

Definition at line 18 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::lnPt_gsf
private

Definition at line 16 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::nhit_kf
private

Definition at line 16 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::nlayers
private

Definition at line 20 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::nlost
private

Definition at line 20 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::SigmaEtaEta
private

Definition at line 18 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::STIP
private

Definition at line 21 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().

float pfEGHelpers::HeavyObjectCache::track_pt
private

Definition at line 21 of file PFEGammaHeavyObjectCache.h.

Referenced by HeavyObjectCache().