#include <MVAJetPuId.h>
Public Types | |
typedef std::map< std::string, std::pair< float *, float > > | variables_list_t |
enum | version_t { USER =-1, CATEv0 =0 } |
Public Member Functions | |
int | computeCutIDflag (float betaStarClassic, float dR2Mean, float nvtx, float jetPt, float jetEta) |
int | computeIDflag (float mva, float jetPt, float jetEta) |
int | computeIDflag (float mva, int ptId, int etaId) |
PileupJetIdentifier | computeIdVariables (const reco::Jet *jet, float jec, const reco::Vertex *, const reco::VertexCollection &, double rho, bool calculateMva=false) |
PileupJetIdentifier | computeMva () |
std::string | dumpVariables () const |
std::pair< int, int > | getJetIdKey (float jetPt, float jetEta) |
const variables_list_t & | getVariables () const |
const std::string | method () const |
MVAJetPuId (int version=CATEv0, const std::string &tmvaWeight="", const std::string &tmvaMethod="", Float_t impactParTkThreshod_=1., const std::vector< std::string > &tmvaVariables=std::vector< std::string >()) | |
MVAJetPuId (const edm::ParameterSet &ps) | |
void | set (const PileupJetIdentifier &) |
~MVAJetPuId () | |
Protected Member Functions | |
void | bookReader () |
void | initVariables () |
void | resetVariables () |
void | runMva () |
void | setup () |
Protected Attributes | |
Float_t | betaStarCut_ [NWPs][NEtas][NPts] |
bool | cutBased_ |
Float_t | impactParTkThreshod_ |
PileupJetIdentifier | internalId_ |
Float_t | mvacut_ [NWPs][NEtas][NPts] |
TMVA::Reader * | reader_ |
Float_t | rmsCut_ [NWPs][NEtas][NPts] |
std::string | tmvaMethod_ |
std::map< std::string, std::string > | tmvaNames_ |
std::vector< std::string > | tmvaSpectators_ |
std::vector< std::string > | tmvaVariables_ |
std::string | tmvaWeights_ |
variables_list_t | variables_ |
Int_t | version_ |
Static Private Attributes | |
static int | NEtas = 4 |
static int | NPts = 4 |
static int | NWPs = 3 |
Definition at line 17 of file MVAJetPuId.h.
typedef std::map<std::string,std::pair<float *,float> > MVAJetPuId::variables_list_t |
Definition at line 42 of file MVAJetPuId.h.
Enumerator | |
---|---|
USER | |
CATEv0 |
Definition at line 25 of file MVAJetPuId.h.
MVAJetPuId::MVAJetPuId | ( | int | version = CATEv0 , |
const std::string & | tmvaWeight = "" , |
||
const std::string & | tmvaMethod = "" , |
||
Float_t | impactParTkThreshod_ = 1. , |
||
const std::vector< std::string > & | tmvaVariables = std::vector<std::string>() |
||
) |
Definition at line 51 of file MVAJetPuId.cc.
MVAJetPuId::MVAJetPuId | ( | const edm::ParameterSet & | ps | ) |
Definition at line 17 of file MVAJetPuId.cc.
MVAJetPuId::~MVAJetPuId | ( | ) |
Definition at line 114 of file MVAJetPuId.cc.
|
protected |
Definition at line 140 of file MVAJetPuId.cc.
int MVAJetPuId::computeCutIDflag | ( | float | betaStarClassic, |
float | dR2Mean, | ||
float | nvtx, | ||
float | jetPt, | ||
float | jetEta | ||
) |
int MVAJetPuId::computeIDflag | ( | float | mva, |
float | jetPt, | ||
float | jetEta | ||
) |
Definition at line 189 of file MVAJetPuId.cc.
int MVAJetPuId::computeIDflag | ( | float | mva, |
int | ptId, | ||
int | etaId | ||
) |
Definition at line 195 of file MVAJetPuId.cc.
PileupJetIdentifier MVAJetPuId::computeIdVariables | ( | const reco::Jet * | jet, |
float | jec, | ||
const reco::Vertex * | vtx, | ||
const reco::VertexCollection & | allvtx, | ||
double | rho, | ||
bool | calculateMva = false |
||
) |
Definition at line 210 of file MVAJetPuId.cc.
PileupJetIdentifier MVAJetPuId::computeMva | ( | ) |
Definition at line 204 of file MVAJetPuId.cc.
std::string MVAJetPuId::dumpVariables | ( | ) | const |
Definition at line 465 of file MVAJetPuId.cc.
std::pair< int, int > MVAJetPuId::getJetIdKey | ( | float | jetPt, |
float | jetEta | ||
) |
Definition at line 174 of file MVAJetPuId.cc.
|
inline |
|
protected |
Definition at line 490 of file MVAJetPuId.cc.
|
inline |
|
protected |
Definition at line 477 of file MVAJetPuId.cc.
|
protected |
Definition at line 166 of file MVAJetPuId.cc.
void MVAJetPuId::set | ( | const PileupJetIdentifier & | id | ) |
Definition at line 160 of file MVAJetPuId.cc.
|
protected |
Definition at line 71 of file MVAJetPuId.cc.
Definition at line 78 of file MVAJetPuId.h.
|
protected |
Definition at line 75 of file MVAJetPuId.h.
|
protected |
Definition at line 74 of file MVAJetPuId.h.
|
protected |
Definition at line 64 of file MVAJetPuId.h.
Definition at line 76 of file MVAJetPuId.h.
|
staticprivate |
Definition at line 22 of file MVAJetPuId.h.
|
staticprivate |
Definition at line 21 of file MVAJetPuId.h.
|
staticprivate |
Definition at line 20 of file MVAJetPuId.h.
|
protected |
Definition at line 67 of file MVAJetPuId.h.
Definition at line 77 of file MVAJetPuId.h.
|
protected |
Definition at line 68 of file MVAJetPuId.h.
Referenced by method().
|
protected |
Definition at line 71 of file MVAJetPuId.h.
|
protected |
Definition at line 70 of file MVAJetPuId.h.
|
protected |
Definition at line 69 of file MVAJetPuId.h.
|
protected |
Definition at line 68 of file MVAJetPuId.h.
|
protected |
Definition at line 65 of file MVAJetPuId.h.
Referenced by getVariables().
|
protected |
Definition at line 73 of file MVAJetPuId.h.