CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Attributes
MVAJetPuId Class Reference

#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_tgetVariables () 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
 

Detailed Description

Definition at line 17 of file MVAJetPuId.h.

Member Typedef Documentation

typedef std::map<std::string,std::pair<float *,float> > MVAJetPuId::variables_list_t

Definition at line 42 of file MVAJetPuId.h.

Member Enumeration Documentation

Enumerator
USER 
CATEv0 

Definition at line 25 of file MVAJetPuId.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

void MVAJetPuId::bookReader ( )
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.

const variables_list_t& MVAJetPuId::getVariables ( ) const
inline

Definition at line 49 of file MVAJetPuId.h.

References variables_.

49 { return variables_; };
variables_list_t variables_
Definition: MVAJetPuId.h:65
void MVAJetPuId::initVariables ( )
protected

Definition at line 490 of file MVAJetPuId.cc.

const std::string MVAJetPuId::method ( ) const
inline

Definition at line 38 of file MVAJetPuId.h.

References tmvaMethod_.

38 { return tmvaMethod_; }
std::string tmvaMethod_
Definition: MVAJetPuId.h:68
void MVAJetPuId::resetVariables ( )
protected

Definition at line 477 of file MVAJetPuId.cc.

void MVAJetPuId::runMva ( )
protected

Definition at line 166 of file MVAJetPuId.cc.

void MVAJetPuId::set ( const PileupJetIdentifier id)

Definition at line 160 of file MVAJetPuId.cc.

void MVAJetPuId::setup ( void  )
protected

Definition at line 71 of file MVAJetPuId.cc.

Member Data Documentation

Float_t MVAJetPuId::betaStarCut_[NWPs][NEtas][NPts]
protected

Definition at line 78 of file MVAJetPuId.h.

bool MVAJetPuId::cutBased_
protected

Definition at line 75 of file MVAJetPuId.h.

Float_t MVAJetPuId::impactParTkThreshod_
protected

Definition at line 74 of file MVAJetPuId.h.

PileupJetIdentifier MVAJetPuId::internalId_
protected

Definition at line 64 of file MVAJetPuId.h.

Float_t MVAJetPuId::mvacut_[NWPs][NEtas][NPts]
protected

Definition at line 76 of file MVAJetPuId.h.

int MVAJetPuId::NEtas = 4
staticprivate

Definition at line 22 of file MVAJetPuId.h.

int MVAJetPuId::NPts = 4
staticprivate

Definition at line 21 of file MVAJetPuId.h.

int MVAJetPuId::NWPs = 3
staticprivate

Definition at line 20 of file MVAJetPuId.h.

TMVA::Reader* MVAJetPuId::reader_
protected

Definition at line 67 of file MVAJetPuId.h.

Float_t MVAJetPuId::rmsCut_[NWPs][NEtas][NPts]
protected

Definition at line 77 of file MVAJetPuId.h.

std::string MVAJetPuId::tmvaMethod_
protected

Definition at line 68 of file MVAJetPuId.h.

Referenced by method().

std::map<std::string,std::string> MVAJetPuId::tmvaNames_
protected

Definition at line 71 of file MVAJetPuId.h.

std::vector<std::string> MVAJetPuId::tmvaSpectators_
protected

Definition at line 70 of file MVAJetPuId.h.

std::vector<std::string> MVAJetPuId::tmvaVariables_
protected

Definition at line 69 of file MVAJetPuId.h.

std::string MVAJetPuId::tmvaWeights_
protected

Definition at line 68 of file MVAJetPuId.h.

variables_list_t MVAJetPuId::variables_
protected

Definition at line 65 of file MVAJetPuId.h.

Referenced by getVariables().

Int_t MVAJetPuId::version_
protected

Definition at line 73 of file MVAJetPuId.h.