Main Page
Namespaces
Classes
Package Documentation
RecoEgamma
EgammaTools
interface
ConversionLikelihoodCalculator.h
Go to the documentation of this file.
1
#ifndef ConversionLikelihoodCalculator_h
2
#define ConversionLikelihoodCalculator_h
3
4
#include "
DataFormats/EgammaCandidates/interface/ConversionFwd.h
"
5
#include "
DataFormats/EgammaCandidates/interface/Conversion.h
"
6
7
#include "TMVA/Reader.h"
8
#include <memory>
9
10
class
ConversionLikelihoodCalculator
11
{
12
public
:
13
ConversionLikelihoodCalculator
();
14
void
setWeightsFile
(
const
char
* weightsFile);
15
16
double
calculateLikelihood
(
reco::ConversionRef
conversion
);
17
double
calculateLikelihood
(
reco::Conversion
& conversion);
18
19
private
:
20
std::unique_ptr<TMVA::Reader>
reader_
;
21
float
log_e_over_p_
;
22
float
log_abs_cot_theta_
;
23
float
log_abs_delta_phi_
;
24
float
log_chi2_max_pt_
;
25
float
log_chi2_min_pt_
;
26
27
};
28
29
#endif
30
reco::Conversion
Definition:
Conversion.h:24
ConversionLikelihoodCalculator::reader_
std::unique_ptr< TMVA::Reader > reader_
Definition:
ConversionLikelihoodCalculator.h:20
edm::Ref< ConversionCollection >
Conversion.h
ConversionLikelihoodCalculator::log_chi2_max_pt_
float log_chi2_max_pt_
Definition:
ConversionLikelihoodCalculator.h:24
ConversionLikelihoodCalculator::log_abs_delta_phi_
float log_abs_delta_phi_
Definition:
ConversionLikelihoodCalculator.h:23
ConversionLikelihoodCalculator::log_abs_cot_theta_
float log_abs_cot_theta_
Definition:
ConversionLikelihoodCalculator.h:22
ConversionLikelihoodCalculator::setWeightsFile
void setWeightsFile(const char *weightsFile)
Definition:
ConversionLikelihoodCalculator.cc:18
ConversionLikelihoodCalculator::log_e_over_p_
float log_e_over_p_
Definition:
ConversionLikelihoodCalculator.h:21
ConversionLikelihoodCalculator::ConversionLikelihoodCalculator
ConversionLikelihoodCalculator()
Definition:
ConversionLikelihoodCalculator.cc:4
ConversionLikelihoodCalculator::calculateLikelihood
double calculateLikelihood(reco::ConversionRef conversion)
Definition:
ConversionLikelihoodCalculator.cc:25
edm::conversion
void conversion(EventAux const &from, EventAuxiliary &to)
Definition:
EventAux.cc:9
ConversionFwd.h
ConversionLikelihoodCalculator
Definition:
ConversionLikelihoodCalculator.h:10
ConversionLikelihoodCalculator::log_chi2_min_pt_
float log_chi2_min_pt_
Definition:
ConversionLikelihoodCalculator.h:25
Generated for CMSSW Reference Manual by
1.8.11