PhysicsTools
HepMCCandAlgos
interface
PDFWeightsHelper.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_HepMCCandAlgos_PDFWeightsHelper_h
2
#define PhysicsTools_HepMCCandAlgos_PDFWeightsHelper_h
3
4
#include <Eigen/Dense>
5
6
#include <iostream>
7
8
#include "
FWCore/ParameterSet/interface/FileInPath.h
"
9
10
class
PDFWeightsHelper
{
11
public
:
12
PDFWeightsHelper
();
13
14
void
Init
(
unsigned
int
nreplicas,
unsigned
int
neigenvectors
,
const
edm::FileInPath
&incsv);
15
void
DoMC2Hessian
(
double
nomweight,
const
double
*inweights,
double
*outweights)
const
;
16
17
unsigned
int
neigenvectors
()
const
{
return
transformation_
.cols(); }
18
19
protected
:
20
Eigen::MatrixXd
transformation_
;
21
};
22
#endif
PDFWeightsHelper::neigenvectors
unsigned int neigenvectors() const
Definition:
PDFWeightsHelper.h:17
PDFWeightsHelper::Init
void Init(unsigned int nreplicas, unsigned int neigenvectors, const edm::FileInPath &incsv)
Definition:
PDFWeightsHelper.cc:7
FileInPath.h
PDFWeightsHelper::DoMC2Hessian
void DoMC2Hessian(double nomweight, const double *inweights, double *outweights) const
Definition:
PDFWeightsHelper.cc:28
edm::FileInPath
Definition:
FileInPath.h:64
PDFWeightsHelper::transformation_
Eigen::MatrixXd transformation_
Definition:
PDFWeightsHelper.h:20
PDFWeightsHelper::PDFWeightsHelper
PDFWeightsHelper()
Definition:
PDFWeightsHelper.cc:5
PDFWeightsHelper
Definition:
PDFWeightsHelper.h:10
Generated for CMSSW Reference Manual by
1.8.16