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

Constructor & Destructor Documentation

◆ Utils()

Ndmspc::Utils::Utils ( )
inlineprivate

Definition at line 22 of file Utils.h.

◆ ~Utils()

virtual Ndmspc::Utils::~Utils ( )
inlineprivatevirtual

Definition at line 23 of file Utils.h.

Member Function Documentation

◆ GetBinFromBase()

Int_t Ndmspc::Utils::GetBinFromBase ( Int_t bin,
Int_t rebin,
Int_t rebin_start )
static

Definition at line 150 of file Utils.cxx.

◆ GetCutsPath()

std::string Ndmspc::Utils::GetCutsPath ( json cuts)
static

Definition at line 122 of file Utils.cxx.

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

◆ OpenMacro()

TMacro * Ndmspc::Utils::OpenMacro ( std::string filename)
static

Definition at line 82 of file Utils.cxx.

◆ OpenRawFile()

std::string Ndmspc::Utils::OpenRawFile ( std::string filename)
static

Definition at line 57 of file Utils.cxx.

◆ SetResultValueError()

int Ndmspc::Utils::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

Definition at line 168 of file Utils.cxx.

◆ Tokenize()

std::vector< std::string > Ndmspc::Utils::Tokenize ( std::string_view input,
const char delim )
static

Definition at line 224 of file Utils.cxx.


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