ndmspc 0.20250128.0
Loading...
Searching...
No Matches
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.
 
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.

◆ Cfg()

json & Ndmspc::PointRun::Cfg ( )
inline

Definition at line 30 of file PointRun.h.

◆ CfgPtr()

json * Ndmspc::PointRun::CfgPtr ( )
inline

Definition at line 31 of file PointRun.h.

◆ CreateResult()

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

Create result object

Definition at line 244 of file PointRun.cxx.

References fVerbose.

◆ Finish()

bool Ndmspc::PointRun::Finish ( )
private

Definition at line 888 of file PointRun.cxx.

◆ 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().

◆ GetCurrentPoint()

Int_t * Ndmspc::PointRun::GetCurrentPoint ( )
inline

Definition at line 35 of file PointRun.h.

◆ GetCurrentPointLabels()

std::vector< std::string > Ndmspc::PointRun::GetCurrentPointLabels ( )
inline

Definition at line 36 of file PointRun.h.

◆ GetCurrentPointValue()

json Ndmspc::PointRun::GetCurrentPointValue ( )
inline

Definition at line 37 of file PointRun.h.

◆ GetInputFile()

TFile * Ndmspc::PointRun::GetInputFile ( ) const
inline

Definition at line 32 of file PointRun.h.

◆ GetInputList()

TList * Ndmspc::PointRun::GetInputList ( ) const
inline

Definition at line 33 of file PointRun.h.

◆ GetOutputList()

TList * Ndmspc::PointRun::GetOutputList ( ) const
inline

Definition at line 38 of file PointRun.h.

◆ GetResultObject()

THnSparse * Ndmspc::PointRun::GetResultObject ( ) const
inline

Definition at line 34 of file PointRun.h.

◆ 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().

◆ OutputFileClose()

void Ndmspc::PointRun::OutputFileClose ( )
private

Definition at line 867 of file PointRun.cxx.

◆ OutputFileOpen()

void Ndmspc::PointRun::OutputFileOpen ( )
private

Definition at line 755 of file PointRun.cxx.

◆ ProcessHistogramRun()

int Ndmspc::PointRun::ProcessHistogramRun ( )
private

Definition at line 951 of file PointRun.cxx.

◆ ProcessRecursive()

bool Ndmspc::PointRun::ProcessRecursive ( int i)
private

Definition at line 585 of file PointRun.cxx.

◆ ProcessRecursiveInner()

bool Ndmspc::PointRun::ProcessRecursiveInner ( Int_t i,
std::vector< std::string > & n )
private

Definition at line 649 of file PointRun.cxx.

◆ ProcessSingleFile()

int Ndmspc::PointRun::ProcessSingleFile ( )
private

Definition at line 907 of file PointRun.cxx.

◆ ProcessSinglePoint()

bool Ndmspc::PointRun::ProcessSinglePoint ( )
private

Definition at line 542 of file PointRun.cxx.

◆ Run()

bool Ndmspc::PointRun::Run ( std::string filename,
std::string userConfig = "",
std::string environment = "",
std::string userConfigRaw = "",
bool show = false,
std::string outfilename = "" )

Definition at line 1031 of file PointRun.cxx.

◆ SetEnvironment()

static void Ndmspc::PointRun::SetEnvironment ( std::string env)
inlinestatic

Definition at line 42 of file PointRun.h.

◆ SetOutputList()

void Ndmspc::PointRun::SetOutputList ( TList * outList)
inline

Definition at line 39 of file PointRun.h.

◆ SetProcessExit()

void Ndmspc::PointRun::SetProcessExit ( bool pe = true)
inline

Definition at line 41 of file PointRun.h.

◆ SetSkipCurrentBin()

void Ndmspc::PointRun::SetSkipCurrentBin ( bool scb = true)
inline

Definition at line 40 of file PointRun.h.

Member Data Documentation

◆ fBinCount

int Ndmspc::PointRun::fBinCount {0}
private

Verbose level.

Definition at line 52 of file PointRun.h.

◆ fCurrentOutputFile

TFile* Ndmspc::PointRun::fCurrentOutputFile {nullptr}
private

Definition at line 56 of file PointRun.h.

◆ fCurrentOutputFileName

std::string Ndmspc::PointRun::fCurrentOutputFileName {}
private

Definition at line 57 of file PointRun.h.

◆ fCurrentOutputRootDirectory

TDirectory* Ndmspc::PointRun::fCurrentOutputRootDirectory {nullptr}
private

Definition at line 58 of file PointRun.h.

◆ fCurrentPoint

Int_t Ndmspc::PointRun::fCurrentPoint[32]
private

Definition at line 59 of file PointRun.h.

◆ fCurrentPointLabels

std::vector<std::string> Ndmspc::PointRun::fCurrentPointLabels {}
private

Definition at line 60 of file PointRun.h.

◆ fCurrentPointValue

json Ndmspc::PointRun::fCurrentPointValue {}
private

Definition at line 61 of file PointRun.h.

◆ fCurrentProccessHistogram

THnSparse* Ndmspc::PointRun::fCurrentProccessHistogram {nullptr}
private

Definition at line 62 of file PointRun.h.

◆ fCurrentProcessHistogramAxes

std::vector<TAxis *> Ndmspc::PointRun::fCurrentProcessHistogramAxes {}
private

Definition at line 64 of file PointRun.h.

◆ fCurrentProcessHistogramPoint

std::vector<int> Ndmspc::PointRun::fCurrentProcessHistogramPoint {}
private

Definition at line 65 of file PointRun.h.

◆ fgEnvironment

std::string Ndmspc::PointRun::fgEnvironment = ""
staticprivate

Definition at line 70 of file PointRun.h.

◆ fInputFile

TFile* Ndmspc::PointRun::fInputFile {nullptr}
private

Bin Count (TODO! rename to axis level maybe)

Definition at line 53 of file PointRun.h.

Referenced by OpenInputs().

◆ fInputList

TList* Ndmspc::PointRun::fInputList {nullptr}
private

Definition at line 54 of file PointRun.h.

◆ fIsProcessExit

bool Ndmspc::PointRun::fIsProcessExit {false}
private

Definition at line 68 of file PointRun.h.

◆ fIsProcessOk

bool Ndmspc::PointRun::fIsProcessOk {false}
private

Definition at line 67 of file PointRun.h.

◆ fIsSkipBin

bool Ndmspc::PointRun::fIsSkipBin {false}
private

Definition at line 66 of file PointRun.h.

◆ fMacro

TMacro* Ndmspc::PointRun::fMacro {nullptr}
private

Definition at line 50 of file PointRun.h.

◆ fMapAxesType

TH1S* Ndmspc::PointRun::fMapAxesType {nullptr}
private

Definition at line 63 of file PointRun.h.

◆ fOutputList

TList* Ndmspc::PointRun::fOutputList {nullptr}
private

Definition at line 69 of file PointRun.h.

◆ fResultObject

THnSparse* Ndmspc::PointRun::fResultObject {nullptr}
private

Definition at line 55 of file PointRun.h.

◆ fVerbose

int Ndmspc::PointRun::fVerbose {0}
private

Macro.

Definition at line 51 of file PointRun.h.

Referenced by ApplyCuts(), CreateResult(), Init(), LoadConfig(), and OpenInputs().


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