10 std::ifstream instream(incsv.
fullPath());
11 if (!instream.is_open()) {
15 for (
unsigned int ireplica = 0; ireplica < nreplicas; ++ireplica) {
17 getline(instream, linestr);
18 std::istringstream
line(linestr);
19 for (
unsigned int ieigen = 0; ieigen <
neigenvectors; ++ieigen) {
21 getline(
line, valstr,
',');
22 std::istringstream
val(valstr);
33 for (
unsigned int irep = 0; irep < nreplicas; ++irep) {
34 inweightv[irep] = inweights[irep] - nomweight;
40 outweights[ieig] = outweightv[ieig] + nomweight;
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_
const std::string & relativePath() const
const std::string & fullPath() const