From 2c908c3d4612fd37ce019cc6e39d9ab81f0471aa Mon Sep 17 00:00:00 2001 From: KSkwarczynski Date: Sat, 13 Jul 2024 02:41:29 +0000 Subject: [PATCH] deploy: 45ab28364d44721e4d11f0d9697df4e50054a279 --- FDMCStruct_8h.html | 1 + FDMCStruct_8h_source.html | 12 +- FitterBase_8cpp_source.html | 2 +- FitterBase_8h_source.html | 2 +- MaCh3Logger_8h.html | 43 +- MaCh3Logger_8h_source.html | 43 +- PSO_8cpp_source.html | 56 +-- PSO_8h_source.html | 431 +++++++++-------- SampleSummary_8cpp_source.html | 8 +- SampleSummary_8h_source.html | 2 +- ShiftFunctors_8h_source.html | 2 +- SplineMonolith_8cpp_source.html | 2 +- SplineMonolith_8h_source.html | 2 +- SplineStructs_8h.html | 3 +- SplineStructs_8h_source.html | 230 ++++----- Structs_8cpp.html | 3 +- Structs_8cpp_source.html | 2 +- Structs_8h.html | 4 +- Structs_8h_source.html | 5 +- ThrowParms_8cpp_source.html | 10 +- ThrowParms_8h.html | 1 + ThrowParms_8h_source.html | 58 +-- annotated.html | 10 +- classFitterBase.html | 2 +- classPSO.html | 196 ++++---- classSMonolith.html | 24 +- classSampleSummary.html | 6 +- classTF1__red.html | 166 +++---- classTSpline3__red.html | 6 +- classThrowParms.html | 37 +- classTruncated__Spline.html | 7 +- classcovarianceBase.html | 634 ++++++++++++++----------- classcovarianceOsc.html | 27 +- classcovarianceXsec.html | 54 ++- classparticle.html | 114 ++--- classsamplePDFBase.html | 175 ++++--- classsamplePDFFDBase.html | 38 +- classsplineFDBase.html | 2 +- covarianceBase_8cpp_source.html | 118 ++--- covarianceBase_8h_source.html | 787 +++++++++++++++---------------- covarianceOsc_8cpp_source.html | 18 +- covarianceXsec_8cpp_source.html | 46 +- covarianceXsec_8h_source.html | 10 +- hierarchy.html | 10 +- namespaceMaCh3Utils.html | 3 + samplePDFBase_8cpp_source.html | 40 +- samplePDFBase_8h.html | 1 + samplePDFBase_8h_source.html | 274 ++++++----- samplePDFFDBase_8cpp_source.html | 30 +- samplePDFFDBase_8h_source.html | 7 +- splineFDBase_8cpp_source.html | 2 +- structXsecNorms4.html | 5 +- structfdmc__base.html | 15 +- 53 files changed, 1971 insertions(+), 1815 deletions(-) diff --git a/FDMCStruct_8h.html b/FDMCStruct_8h.html index aeecdbb6..3954c86f 100644 --- a/FDMCStruct_8h.html +++ b/FDMCStruct_8h.html @@ -86,6 +86,7 @@

Classes

struct  fdmc_base + constructors are same for all three so put in here More...
  diff --git a/FDMCStruct_8h_source.html b/FDMCStruct_8h_source.html index f8dbb033..4d6ee887 100644 --- a/FDMCStruct_8h_source.html +++ b/FDMCStruct_8h_source.html @@ -86,7 +86,6 @@ Go to the documentation of this file.
1#pragma once
2
3
-
4//constructors are same for all three so put in here
5struct fdmc_base {
6 int nutype; // 2 = numu/signue | -2 = numub | 1 = nue | -1 = nueb
@@ -106,10 +105,8 @@
20 double** y_var;
21 double **rw_etru;
22
-
23 // xsec bins
24 std::list< int > *xsec_norms_bins;
25
-
26 //DB Speedup bits
27 double Unity;
28
@@ -140,7 +137,6 @@
54
55 int **mode;
56
-
57 // DB Atmospheric Parameters
58 const double **osc_w_pointer;
59 double *rw_truecz;
60
@@ -161,11 +157,11 @@
Type GetFromManager(const YAML::Node &node, Type defval)
Get content of config file if node is not found take default value specified.
Definition YamlHelper.h:18
Bin-by-bin class calculating response for spline parameters.
- +
constructors are same for all three so put in here
Definition FDMCStruct.h:5
std::string flavourName
Definition FDMCStruct.h:12
int * ntotal_weight_pointers
Definition FDMCStruct.h:38
const double ** skdet_pointer
Definition FDMCStruct.h:35
-
double Unity
Definition FDMCStruct.h:27
+
double Unity
DB Speedup bits.
Definition FDMCStruct.h:27
const double *** xsec_spline_pointers
Definition FDMCStruct.h:33
cudaprob3::ProbType ProbType
Definition FDMCStruct.h:71
int nupdgUnosc
Definition FDMCStruct.h:9
@@ -182,7 +178,7 @@
cudaprob3::NeutrinoType NeutrinoType
Definition FDMCStruct.h:72
const double *** xsec_norm_pointers
Definition FDMCStruct.h:30
int * nxsec_spline_pointers
Definition FDMCStruct.h:32
-
std::list< int > * xsec_norms_bins
Definition FDMCStruct.h:24
+
std::list< int > * xsec_norms_bins
xsec bins
Definition FDMCStruct.h:24
int ** mode
Definition FDMCStruct.h:55
int oscnutype
Definition FDMCStruct.h:7
int * XBin
Definition FDMCStruct.h:42
@@ -191,7 +187,7 @@
double ** rw_etru
Definition FDMCStruct.h:21
double * rw_lower_lower_xbinedge
Definition FDMCStruct.h:51
int * YBin
Definition FDMCStruct.h:43
-
const double ** osc_w_pointer
Definition FDMCStruct.h:58
+
const double ** osc_w_pointer
DB Atmospheric Parameters.
Definition FDMCStruct.h:58
int nEvents
Definition FDMCStruct.h:11
int * NomYBin
Definition FDMCStruct.h:45
int SampleDetID
Definition FDMCStruct.h:16
diff --git a/FitterBase_8cpp_source.html b/FitterBase_8cpp_source.html index 77adde3d..0a66c1ac 100644 --- a/FitterBase_8cpp_source.html +++ b/FitterBase_8cpp_source.html @@ -1629,7 +1629,7 @@
void SaveSettings(TFile *const OutputFile)
Add manager useful information's to TFile, in most cases to Fitter.
Definition manager.cpp:58
MaCh3Modes * GetMaCh3Modes() const
Return pointer to MaCh3 modes.
Definition manager.h:50
YAML::Node const & raw()
Return config.
Definition manager.h:48
- +
Class responsible for handling implementation of samples used in analysis, reweighting and returning ...
int getValue(std::string Type)
CW: Get info like RAM.
Definition Monitor.cpp:210
void PrintProgressBar(const int Done, const int All)
KS: Simply print progress bar.
Definition Monitor.cpp:186
diff --git a/FitterBase_8h_source.html b/FitterBase_8h_source.html index 1d3c49d8..01e9a098 100644 --- a/FitterBase_8h_source.html +++ b/FitterBase_8h_source.html @@ -241,7 +241,7 @@
Base class responsible for handling of systematic error parameters. Capable of using PCA or using ada...
Class responsible for handling of neutrino oscillation parameters.
The manager class is responsible for managing configurations and settings.
Definition manager.h:28
-
+
Class responsible for handling implementation of samples used in analysis, reweighting and returning ...
diff --git a/MaCh3Logger_8h.html b/MaCh3Logger_8h.html index 72f43426..128c43d1 100644 --- a/MaCh3Logger_8h.html +++ b/MaCh3Logger_8h.html @@ -306,25 +306,30 @@

Definition at line 57 of file MaCh3Logger.h.

58{
-
59 std::stringstream sss;
-
60 std::streambuf* coutBuf = std::cout.rdbuf();
-
61 std::streambuf* cerrBuf = std::cerr.rdbuf();
-
62
-
63 std::cout.rdbuf(sss.rdbuf());
-
64 std::cerr.rdbuf(sss.rdbuf());
-
65
-
66 func(std::forward<Args>(args)...);
-
67
-
68 std::cout.rdbuf(coutBuf);
-
69 std::cerr.rdbuf(cerrBuf);
-
70
-
71 std::string line;
-
72 while (std::getline(sss, line))
-
73 {
-
74 auto formatted_message = fmt::format("[{}] {}", LibName, line);
- -
76 }
-
77}
+
59 // Create a stringstream to capture the output
+
60 std::stringstream sss;
+
61 // Save the original stream buffers
+
62 std::streambuf* coutBuf = std::cout.rdbuf();
+
63 std::streambuf* cerrBuf = std::cerr.rdbuf();
+
64
+
65 // Redirect std::cout and std::cerr to the stringstream buffer
+
66 std::cout.rdbuf(sss.rdbuf());
+
67 std::cerr.rdbuf(sss.rdbuf());
+
68
+
69 // Call the provided function
+
70 func(std::forward<Args>(args)...);
+
71
+
72 // Restore the original stream buffers
+
73 std::cout.rdbuf(coutBuf);
+
74 std::cerr.rdbuf(cerrBuf);
+
75
+
76 std::string line;
+
77 while (std::getline(sss, line))
+
78 {
+
79 auto formatted_message = fmt::format("[{}] {}", LibName, line);
+ +
81 }
+
82}
diff --git a/MaCh3Logger_8h_source.html b/MaCh3Logger_8h_source.html index 21efffee..891ea51a 100644 --- a/MaCh3Logger_8h_source.html +++ b/MaCh3Logger_8h_source.html @@ -120,25 +120,30 @@
57void LoggerPrint(const std::string& LibName, LogFunc logFunction, Func&& func, Args&&... args)
58{
-
59 std::stringstream sss;
-
60 std::streambuf* coutBuf = std::cout.rdbuf();
-
61 std::streambuf* cerrBuf = std::cerr.rdbuf();
-
62
-
63 std::cout.rdbuf(sss.rdbuf());
-
64 std::cerr.rdbuf(sss.rdbuf());
-
65
-
66 func(std::forward<Args>(args)...);
-
67
-
68 std::cout.rdbuf(coutBuf);
-
69 std::cerr.rdbuf(cerrBuf);
-
70
-
71 std::string line;
-
72 while (std::getline(sss, line))
-
73 {
-
74 auto formatted_message = fmt::format("[{}] {}", LibName, line);
- -
76 }
-
77}
+
59 // Create a stringstream to capture the output
+
60 std::stringstream sss;
+
61 // Save the original stream buffers
+
62 std::streambuf* coutBuf = std::cout.rdbuf();
+
63 std::streambuf* cerrBuf = std::cerr.rdbuf();
+
64
+
65 // Redirect std::cout and std::cerr to the stringstream buffer
+
66 std::cout.rdbuf(sss.rdbuf());
+
67 std::cerr.rdbuf(sss.rdbuf());
+
68
+
69 // Call the provided function
+
70 func(std::forward<Args>(args)...);
+
71
+
72 // Restore the original stream buffers
+
73 std::cout.rdbuf(coutBuf);
+
74 std::cerr.rdbuf(cerrBuf);
+
75
+
76 std::string line;
+
77 while (std::getline(sss, line))
+
78 {
+
79 auto formatted_message = fmt::format("[{}] {}", LibName, line);
+ +
81 }
+
82}
void SetMaCh3LoggerFormat()
Set messaging format of the logger.
Definition MaCh3Logger.h:20
void LoggerPrint(const std::string &LibName, LogFunc logFunction, Func &&func, Args &&... args)
KS: This is bit convoluted but this is to allow redirecting cout and errors from external library int...
Definition MaCh3Logger.h:57
diff --git a/PSO_8cpp_source.html b/PSO_8cpp_source.html index a01dfba5..1d738a15 100644 --- a/PSO_8cpp_source.html +++ b/PSO_8cpp_source.html @@ -674,47 +674,47 @@
Implementation of base Likelihood Fit class, it is mostly responsible for likelihood calculation whil...
void PrepareFit()
prepare output and perform sanity checks
virtual double CalcChi2(const double *x)
Chi2 calculation over all included samples and syst objects.
-
std::vector< double > vector_add(std::vector< double > v1, std::vector< double > v2)
Definition PSO.h:111
+
std::vector< double > vector_add(std::vector< double > v1, std::vector< double > v2)
Definition PSO.h:104
PSO(manager *const fitMan)
constructor
Definition PSO.cpp:3
-
std::vector< double > vector_subtract(std::vector< double > v1, std::vector< double > v2)
Definition PSO.h:116
-
std::vector< double > ranges_max
Definition PSO.h:146
-
double fConstriction
Definition PSO.h:154
+
std::vector< double > vector_subtract(std::vector< double > v1, std::vector< double > v2)
Definition PSO.h:109
+
std::vector< double > ranges_max
Definition PSO.h:139
+
double fConstriction
Definition PSO.h:147
void init()
Definition PSO.cpp:43
-
std::vector< double > vector_multiply(std::vector< double > velocity, double mul)
Definition PSO.h:106
+
std::vector< double > vector_multiply(std::vector< double > velocity, double mul)
Definition PSO.h:99
double CalcChi2(const double *x)
Chi2 calculation over all included samples and syst objects.
Definition PSO.cpp:516
-
std::vector< double > three_vector_addition(std::vector< double > vec1, std::vector< double > vec2, std::vector< double > vec3)
Definition PSO.h:121
-
double fTwo
Definition PSO.h:151
-
std::vector< bool > fixed
Definition PSO.h:145
-
double fInertia
Definition PSO.h:149
-
particle * get_best_particle()
Definition PSO.h:88
-
int fParticles
Definition PSO.h:157
-
double fOne
Definition PSO.h:150
-
int fIterations
Definition PSO.h:153
+
std::vector< double > three_vector_addition(std::vector< double > vec1, std::vector< double > vec2, std::vector< double > vec3)
Definition PSO.h:114
+
double fTwo
Definition PSO.h:144
+
std::vector< bool > fixed
Definition PSO.h:138
+
double fInertia
Definition PSO.h:142
+
particle * get_best_particle()
Definition PSO.h:81
+
int fParticles
Definition PSO.h:150
+
double fOne
Definition PSO.h:143
+
int fIterations
Definition PSO.h:146
void uncertainty_check(std::vector< double > previous_pos)
Definition PSO.cpp:285
-
void set_best_particle(particle *n)
Definition PSO.h:91
-
std::vector< double * > paramlist
Definition PSO.h:159
-
std::vector< particle * > system
Definition PSO.h:148
-
double vel[kMaxParticles]
Definition PSO.h:160
-
double fConvergence
Definition PSO.h:152
-
double CalcChi(std::vector< double > x)
Definition PSO.h:134
-
double fBestValue
Definition PSO.h:143
-
std::vector< std::vector< double > > uncertainties
Definition PSO.h:155
-
std::vector< double > ranges_min
Definition PSO.h:147
-
double * par
Definition PSO.h:161
-
int fDim
Definition PSO.h:163
+
void set_best_particle(particle *n)
Definition PSO.h:84
+
std::vector< double * > paramlist
Definition PSO.h:152
+
std::vector< particle * > system
Definition PSO.h:141
+
double vel[kMaxParticles]
Definition PSO.h:153
+
double fConvergence
Definition PSO.h:145
+
double CalcChi(std::vector< double > x)
Definition PSO.h:127
+
double fBestValue
Definition PSO.h:136
+
std::vector< std::vector< double > > uncertainties
Definition PSO.h:148
+
std::vector< double > ranges_min
Definition PSO.h:140
+
double * par
Definition PSO.h:154
+
int fDim
Definition PSO.h:156
std::vector< std::vector< double > > calc_uncertainty(std::vector< double >position, double minimum)
Definition PSO.cpp:222
void run()
Definition PSO.cpp:381
void WriteOutput()
Definition PSO.cpp:427
std::vector< std::vector< double > > bisection(std::vector< double >position, double minimum, double range, double precision)
Definition PSO.cpp:144
double swarmIterate()
Definition PSO.cpp:321
double rastriginFunc(const double *x)
Definition PSO.cpp:531
-
std::vector< double > prior
Definition PSO.h:144
+
std::vector< double > prior
Definition PSO.h:137
void runMCMC() override
Implementation of fitting algorithm.
Definition PSO.cpp:21
The manager class is responsible for managing configurations and settings.
Definition manager.h:28
YAML::Node const & raw()
Return config.
Definition manager.h:48
-
Class particle - stores the position, velocity and personal best With functions which move particle a...
Definition PSO.h:18
-
std::vector< double > get_personal_best_position()
Definition PSO.h:39
-
double get_personal_best_value()
Definition PSO.h:47
+
Class particle - stores the position, velocity and personal best With functions which move particle a...
Definition PSO.h:17
+
std::vector< double > get_personal_best_position()
Definition PSO.h:36
+
double get_personal_best_value()
Definition PSO.h:44