ndmspc  0.20250128.0
Ndmspc::PointRun Class Reference

PointRun object. More...

#include <PointDraw.h>

Inheritance diagram for Ndmspc::PointRun:

Public Member Functions

 PointRun (std::string macro="NdmspcPointRun.C")
 
virtual ~PointRun ()
 
bool Run (std::string filename, std::string userConfig="", std::string environment="", std::string userConfigRaw="", bool show=false, std::string outfilename="")
 
json & Cfg ()
 
json * CfgPtr ()
 
TFile * GetInputFile () const
 
TList * GetInputList () const
 
THnSparse * GetResultObject () const
 
Int_t * GetCurrentPoint ()
 
std::vector< std::string > GetCurrentPointLabels ()
 
json GetCurrentPointValue ()
 
TList * GetOutputList () const
 
void SetOutputList (TList *outList)
 
void SetSkipCurrentBin (bool scb=true)
 
void SetProcessExit (bool pe=true)
 

Static Public Member Functions

static void SetEnvironment (std::string env)
 
static bool Generate (std::string name="myAnalysis", std::string inFile="myFile.root", std::string inObjectName="myNDHistogram")
 
static bool Merge (std::string name="myAnalysis.json", std::string userConfig="", std::string environment="", std::string userConfigRaw="", std::string fileOpt="?remote=1")
 

Private Member Functions

bool LoadConfig (std::string config, std::string userConfig="", std::string environment="", std::string userConfigRaw="", bool show=false, std::string outfilename="")
 Environment. More...
 
bool Init (std::string extraPath="")
 
bool Finish ()
 
TList * OpenInputs ()
 
THnSparse * CreateResult ()
 
bool ApplyCuts ()
 
int ProcessSingleFile ()
 
bool ProcessSinglePoint ()
 
bool ProcessRecursive (int i)
 
bool ProcessRecursiveInner (Int_t i, std::vector< std::string > &n)
 
void OutputFileOpen ()
 
void OutputFileClose ()
 
int ProcessHistogramRun ()
 

Private Attributes

TMacro * fMacro {nullptr}
 
int fVerbose {0}
 Macro.
 
int fBinCount {0}
 Verbose level.
 
TFile * fInputFile {nullptr}
 Bin Count (TODO! rename to axis level maybe)
 
TList * fInputList {nullptr}
 
THnSparse * fResultObject {nullptr}
 
TFile * fCurrentOutputFile {nullptr}
 
std::string fCurrentOutputFileName {}
 
TDirectory * fCurrentOutputRootDirectory {nullptr}
 
Int_t fCurrentPoint [32]
 
std::vector< std::string > fCurrentPointLabels {}
 
json fCurrentPointValue {}
 
THnSparse * fCurrentProccessHistogram {nullptr}
 
TH1S * fMapAxesType {nullptr}
 
std::vector< TAxis * > fCurrentProcessHistogramAxes {}
 
std::vector< int > fCurrentProcessHistogramPoint {}
 
bool fIsSkipBin {false}
 
bool fIsProcessOk {false}
 
bool fIsProcessExit {false}
 
TList * fOutputList {nullptr}
 

Static Private Attributes

static std::string fgEnvironment = ""
 

Detailed Description

PointRun object.

Author
Martin Vala mvala.nosp@m.@cer.nosp@m.n.ch

Definition at line 23 of file PointRun.h.

Constructor & Destructor Documentation

◆ PointRun()

Ndmspc::PointRun::PointRun ( std::string  macro = "NdmspcPointRun.C")

Default constructor

Definition at line 24 of file PointRun.cxx.

◆ ~PointRun()

Ndmspc::PointRun::~PointRun ( )
virtual

Descructor

Definition at line 35 of file PointRun.cxx.

Member Function Documentation

◆ ApplyCuts()

bool Ndmspc::PointRun::ApplyCuts ( )
private

TODO! port it to std::string

Definition at line 466 of file PointRun.cxx.

References fVerbose.

◆ CreateResult()

THnSparse * Ndmspc::PointRun::CreateResult ( )
private

Create result object

Definition at line 244 of file PointRun.cxx.

References fVerbose.

◆ Generate()

bool Ndmspc::PointRun::Generate ( std::string  name = "myAnalysis",
std::string  inFile = "myFile.root",
std::string  inObjectName = "myNDHistogram" 
)
static

Generate point macro and config

Definition at line 1052 of file PointRun.cxx.

References Ndmspc::Utils::OpenFile().

◆ Init()

bool Ndmspc::PointRun::Init ( std::string  extraPath = "")
private

Init

Definition at line 73 of file PointRun.cxx.

References fVerbose, and Ndmspc::Utils::OpenFile().

◆ LoadConfig()

bool Ndmspc::PointRun::LoadConfig ( std::string  config,
std::string  userConfig = "",
std::string  environment = "",
std::string  userConfigRaw = "",
bool  show = false,
std::string  outfilename = "" 
)
private

Environment.

Load config and set default PointRun parameters

Definition at line 42 of file PointRun.cxx.

References fVerbose.

◆ OpenInputs()

TList * Ndmspc::PointRun::OpenInputs ( )
private

Open Input objects

Definition at line 154 of file PointRun.cxx.

References fInputFile, fVerbose, and Ndmspc::Utils::OpenFile().


The documentation for this class was generated from the following files: