ndmspc  0.20250128.0
Ndmspc::Utils Class Reference

Utils object. More...

#include <Utils.h>

Inheritance diagram for Ndmspc::Utils:

Static Public Member Functions

static TFile * OpenFile (std::string filename, std::string mode="READ", bool createLocalDir=true)
 
static std::string OpenRawFile (std::string filename)
 
static TMacro * OpenMacro (std::string filename)
 
static std::string GetCutsPath (json cuts)
 
static Int_t GetBinFromBase (Int_t bin, Int_t rebin, Int_t rebin_start)
 
static int SetResultValueError (json cfg, THnSparse *output, std::string name, Int_t *point, double val, double err, bool normalizeToWidth=false, bool onlyPositive=false, double times=1)
 
static std::vector< std::string > Tokenize (std::string_view input, const char delim)
 

Detailed Description

Utils object.

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

Definition at line 20 of file Utils.h.

Member Function Documentation

◆ OpenFile()

TFile * Ndmspc::Utils::OpenFile ( std::string  filename,
std::string  mode = "READ",
bool  createLocalDir = true 
)
static

Open root file and create directory when needed in local case

Definition at line 18 of file Utils.cxx.

Referenced by Ndmspc::HnSparseBrowser::Draw(), Ndmspc::PointRun::Generate(), Ndmspc::PointRun::Init(), and Ndmspc::PointRun::OpenInputs().


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