Go to the source code of this file.
◆ DiagMCMC()
void DiagMCMC |
( |
const std::string & |
inputFile, |
|
|
const std::string & |
config |
|
) |
| |
Main function creating MCMCProcessor and calling Smear Chain.
- Parameters
-
inputFile | MCMC Chain |
config | Config file with settings |
Definition at line 8 of file SmearChain.cpp.
15 auto Processor = std::make_unique<MCMCProcessor>(inputFile);
16 Processor->SetOutputSuffix(
"_Smear_MCMC");
17 Processor->Initialise();
19 const auto& Smear = Settings[
"SmearChain"];
20 std::vector<std::string> Names = Smear[
"Smear"][0].as<std::vector<std::string>>();
21 std::vector<double> ErrorValue = Smear[
"Smear"][1].as<std::vector<double>>();
23 bool SaveUnsmearedBranch = GetFromManager<bool>(Smear[
"SaveUnsmearedBranch"],
false);
24 Processor->SmearChain(Names, ErrorValue, SaveUnsmearedBranch);
#define M3OpenConfig(filename)
Macro to simplify calling LoadYaml with file and line info.
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 27 of file SmearChain.cpp.
35 std::string filename = argv[1];
36 std::string
config = argv[2];
void SetMaCh3LoggerFormat()
Set messaging format of the logger.
void DiagMCMC(const std::string &inputFile, const std::string &config)
Main function creating MCMCProcessor and calling Smear Chain.
Custom exception class for MaCh3 errors.