CMS 3D CMS Logo

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 
9 
11 public:
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