File indexing completed on 2023-03-17 11:15:42
0001 #ifndef PhysicsTools_HepMCCandAlgos_PDFWeightsHelper_h
0002 #define PhysicsTools_HepMCCandAlgos_PDFWeightsHelper_h
0003
0004 #include <Eigen/Dense>
0005
0006 #include <iostream>
0007
0008 #include "FWCore/ParameterSet/interface/FileInPath.h"
0009
0010 class PDFWeightsHelper {
0011 public:
0012 PDFWeightsHelper();
0013
0014 void Init(unsigned int nreplicas, unsigned int neigenvectors, const edm::FileInPath &incsv);
0015 void DoMC2Hessian(double nomweight, const double *inweights, double *outweights) const;
0016
0017 unsigned int neigenvectors() const { return transformation_.cols(); }
0018
0019 protected:
0020 Eigen::MatrixXd transformation_;
0021 };
0022 #endif