1 #ifndef NdmspcCorePointDraw_H
2 #define NdmspcCorePointDraw_H
8 #include <TVirtualPad.h>
10 #include <nlohmann/json.hpp>
11 using json = nlohmann::json;
26 int Draw(std::string config =
"myAnalysis.json", std::string userConfig =
"", std::string environment =
"",
27 std::string userConfigRaw =
"");
30 TFile * fIn =
nullptr;
31 THnSparse * fResultHnSparse =
nullptr;
32 std::string fCurrentParameterName;
33 std::string fCurrentContentPath;
34 std::vector<int> fParameterPoint;
35 std::vector<int> fProjectionAxes;
36 TH1 * fMapAxesType =
nullptr;
37 std::string fMapTitle;
38 TH1 * fParamMapHistogram =
nullptr;
40 std::vector<std::string> fData{};
41 std::vector<int> fDataId{};
42 std::vector<std::string> fMc{};
43 std::vector<int> fMcId{};
44 static std::string fgEnvironment;
47 void HighlightMain(TVirtualPad * pad, TObject * obj, Int_t xBin, Int_t yBin);
48 void HighlightParam(TVirtualPad * pad, TObject * obj, Int_t xBin, Int_t yBin);
49 void HighlightData(TVirtualPad * pad, TObject * obj, Int_t xBin, Int_t yBin);
50 void HighlightProjectionPoint(TVirtualPad * pad, TObject * obj, Int_t xBin, Int_t yBin);
52 void DrawProjections(
bool ignoreMapping =
false);
54 static void SetEnvironment(std::string env) { fgEnvironment = env; }
int Draw(std::string config="myAnalysis.json", std::string userConfig="", std::string environment="", std::string userConfigRaw="")