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 
12 public:
13 
15 
16  void Init(unsigned int nreplicas, unsigned int neigenvectors, const edm::FileInPath &incsv);
17  void DoMC2Hessian(double nomweight, const double *inweights, double *outweights) const;
18 
19  unsigned int neigenvectors() const { return transformation_.cols(); }
20 
21 protected:
22 
23  Eigen::MatrixXd transformation_;
24 
25 };
26 #endif
void Init(unsigned int nreplicas, unsigned int neigenvectors, const edm::FileInPath &incsv)
void DoMC2Hessian(double nomweight, const double *inweights, double *outweights) const
unsigned int neigenvectors() const
Eigen::MatrixXd transformation_