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
public
:
12
ConversionLikelihoodCalculator
();
13
void
setWeightsFile
(
const
char
*
weightsFile
);
14
15
double
calculateLikelihood
(
reco::ConversionRef
conversion
);
16
double
calculateLikelihood
(
reco::Conversion
&
conversion
);
17
18
private
:
19
std::unique_ptr<TMVA::Reader>
reader_
;
20
float
log_e_over_p_
;
21
float
log_abs_cot_theta_
;
22
float
log_abs_delta_phi_
;
23
float
log_chi2_max_pt_
;
24
float
log_chi2_min_pt_
;
25
};
26
27
#endif
ConversionLikelihoodCalculator::reader_
std::unique_ptr< TMVA::Reader > reader_
Definition:
ConversionLikelihoodCalculator.h:19
reco::Conversion
Definition:
Conversion.h:23
ConversionLikelihoodCalculator
Definition:
ConversionLikelihoodCalculator.h:10
edm::conversion
void conversion(EventAux const &from, EventAuxiliary &to)
Definition:
EventAux.cc:9
ConversionLikelihoodCalculator::ConversionLikelihoodCalculator
ConversionLikelihoodCalculator()
Definition:
ConversionLikelihoodCalculator.cc:3
ConversionLikelihoodCalculator::log_chi2_max_pt_
float log_chi2_max_pt_
Definition:
ConversionLikelihoodCalculator.h:23
ConversionLikelihoodCalculator::calculateLikelihood
double calculateLikelihood(reco::ConversionRef conversion)
Definition:
ConversionLikelihoodCalculator.cc:21
ConversionFwd.h
edm::Ref< ConversionCollection >
pfClustersFromHGC3DClusters_cfi.weightsFile
weightsFile
Definition:
pfClustersFromHGC3DClusters_cfi.py:19
ConversionLikelihoodCalculator::log_chi2_min_pt_
float log_chi2_min_pt_
Definition:
ConversionLikelihoodCalculator.h:24
ConversionLikelihoodCalculator::log_e_over_p_
float log_e_over_p_
Definition:
ConversionLikelihoodCalculator.h:20
ConversionLikelihoodCalculator::log_abs_delta_phi_
float log_abs_delta_phi_
Definition:
ConversionLikelihoodCalculator.h:22
ConversionLikelihoodCalculator::log_abs_cot_theta_
float log_abs_cot_theta_
Definition:
ConversionLikelihoodCalculator.h:21
ConversionLikelihoodCalculator::setWeightsFile
void setWeightsFile(const char *weightsFile)
Definition:
ConversionLikelihoodCalculator.cc:15
Conversion.h
Generated for CMSSW Reference Manual by
1.8.16