25 PointRun(std::string macro =
"NdmspcPointRun.C");
28 bool Run(std::string filename, std::string userConfig =
"", std::string environment =
"",
29 std::string userConfigRaw =
"",
bool show =
false, std::string outfilename =
"");
30 json & Cfg() {
return gCfg; }
31 json * CfgPtr() {
return &gCfg; }
32 TFile * GetInputFile()
const {
return fInputFile; }
33 TList * GetInputList()
const {
return fInputList; }
34 THnSparse * GetResultObject()
const {
return fResultObject; }
35 Int_t * GetCurrentPoint() {
return fCurrentPoint; }
36 std::vector<std::string> GetCurrentPointLabels() {
return fCurrentPointLabels; }
37 json GetCurrentPointValue() {
return fCurrentPointValue; }
38 TList * GetOutputList()
const {
return fOutputList; }
39 void SetOutputList(TList * outList) { fOutputList = outList; }
40 void SetSkipCurrentBin(
bool scb =
true) { fIsSkipBin = scb; }
41 void SetProcessExit(
bool pe =
true) { fIsProcessExit = pe; }
42 static void SetEnvironment(std::string env) { fgEnvironment = env; }
44 static bool Generate(std::string name =
"myAnalysis", std::string inFile =
"myFile.root",
45 std::string inObjectName =
"myNDHistogram");
46 static bool Merge(std::string name =
"myAnalysis.json", std::string userConfig =
"", std::string environment =
"",
47 std::string userConfigRaw =
"", std::string fileOpt =
"?remote=1");
50 TMacro * fMacro{
nullptr};
54 TList * fInputList{
nullptr};
55 THnSparse * fResultObject{
nullptr};
56 TFile * fCurrentOutputFile{
nullptr};
57 std::string fCurrentOutputFileName{};
58 TDirectory * fCurrentOutputRootDirectory{
nullptr};
59 Int_t fCurrentPoint[32];
60 std::vector<std::string> fCurrentPointLabels{};
61 json fCurrentPointValue{};
62 THnSparse * fCurrentProccessHistogram{
nullptr};
63 TH1S * fMapAxesType{
nullptr};
64 std::vector<TAxis *> fCurrentProcessHistogramAxes{};
65 std::vector<int> fCurrentProcessHistogramPoint{};
66 bool fIsSkipBin{
false};
67 bool fIsProcessOk{
false};
68 bool fIsProcessExit{
false};
69 TList * fOutputList{
nullptr};
70 static std::string fgEnvironment;
72 bool LoadConfig(std::string config, std::string userConfig =
"", std::string environment =
"",
73 std::string userConfigRaw =
"",
bool show =
false, std::string outfilename =
"");
74 bool Init(std::string extraPath =
"");
80 int ProcessSingleFile();
81 bool ProcessSinglePoint();
82 bool ProcessRecursive(
int i);
83 bool ProcessRecursiveInner(Int_t i, std::vector<std::string> & n);
84 void OutputFileOpen();
85 void OutputFileClose();
86 int ProcessHistogramRun();
bool LoadConfig(std::string config, std::string userConfig="", std::string environment="", std::string userConfigRaw="", bool show=false, std::string outfilename="")
Environment.