-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrunCalcDiff.cxx
44 lines (32 loc) · 1 KB
/
runCalcDiff.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "markovDiff.h"
#include <iostream>
#include <stdlib.h>
using namespace std;
////////////////////////////////////////////////////////////////////////////
// Loops over pairs of points in a MCMC cloud For each pair, find the vector
// difference between parameters and save to ouput file
//
// Usage:
// ./runCalcMCMCDiff <mcmcfiles1> <nburn2> <nfill3> <randomseed4> <outputfile5>
//
int main(int argc, char* argv[]){
// number of filled pairs
int nfilledpairs = atoi(argv[3]);
// setup random
int rand_seed = atoi(argv[4]);
randy->SetSeed(rand_seed);
cout<<"TRandom seed is: "<<randy->GetSeed()<<endl;
// get mcmc
TString mcmcfiles = argv[1];
cout<<"MCMC files are "<<mcmcfiles.Data()<<endl;
// get ouput file (4th argument)
TString outfilename = argv[5];
// get nburn
int nburnsteps = atoi(argv[2]);
// make object
markovDiff* md = new markovDiff(mcmcfiles,nburnsteps,1);
md->outFileName = outfilename.Data(); //< set name of output file
md->fillDiffPars(nfilledpairs);
//
return 0;
}