ndmspc 0.20250304.0
Loading...
Searching...
No Matches
Ndmspc::PointDraw Class Reference

PointDraw object. More...

#include <PointDraw.h>

Inheritance diagram for Ndmspc::PointDraw:

Public Member Functions

 PointDraw ()
 
virtual ~PointDraw ()
 
int DrawPoint (int level, std::string config="myAnalysis.json", std::string userConfig="", std::string environment="", std::string userConfigRaw="", std::string binning="")
 
void HighlightMain (TVirtualPad *pad, TObject *obj, Int_t xBin, Int_t yBin)
 
void HighlightParam (TVirtualPad *pad, TObject *obj, Int_t xBin, Int_t yBin)
 
void HighlightData (TVirtualPad *pad, TObject *obj, Int_t xBin, Int_t yBin)
 
void HighlightProjectionPoint (TVirtualPad *pad, TObject *obj, Int_t xBin, Int_t yBin)
 
void UpdateRanges ()
 
void DrawProjections (bool ignoreMapping=false)
 
void DrawUser ()
 

Static Public Member Functions

static void SetEnvironment (std::string env)
 Sets environment.
 

Protected Attributes

TFile * fIn = nullptr
 Input file.
 
THnSparse * fResultHnSparse = nullptr
 Result HnSparse.
 
std::string fCurrentParameterName
 Current parameter name.
 
std::string fCurrentContentPath
 Current content path.
 
std::vector< int > fParameterPoint
 Parameter point.
 
std::vector< int > fProjectionAxes
 Projection axes.
 
TH1 * fMapAxesType = nullptr
 Map axes type.
 
std::string fMapTitle
 Map title.
 
TH1 * fParamMapHistogram = nullptr
 Param map histogram.
 
int fNDimCuts = 0
 Number of dimension cuts.
 
std::vector< std::string > fData {}
 Data.
 
std::vector< int > fDataId {}
 Data ids.
 
std::vector< std::string > fMc {}
 MC.
 
std::vector< int > fMcId {}
 MC ids.
 

Static Protected Attributes

static std::string fgEnvironment = ""
 Currnet environment.
 

Detailed Description

PointDraw object.

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

Definition at line 21 of file PointDraw.h.

Constructor & Destructor Documentation

◆ PointDraw()

Ndmspc::PointDraw::PointDraw ( )

Default constructor

Definition at line 22 of file PointDraw.cxx.

◆ ~PointDraw()

Ndmspc::PointDraw::~PointDraw ( )
virtual

Descructor

Definition at line 30 of file PointDraw.cxx.

Member Function Documentation

◆ DrawPoint()

int Ndmspc::PointDraw::DrawPoint ( int level,
std::string config = "myAnalysis.json",
std::string userConfig = "",
std::string environment = "",
std::string userConfigRaw = "",
std::string binning = "" )

◆ DrawProjections()

void Ndmspc::PointDraw::DrawProjections ( bool ignoreMapping = false)

◆ DrawUser()

void Ndmspc::PointDraw::DrawUser ( )

Draw user function

Definition at line 326 of file PointDraw.cxx.

References fCurrentContentPath, and fIn.

Referenced by HighlightData(), and HighlightProjectionPoint().

◆ HighlightData()

void Ndmspc::PointDraw::HighlightData ( TVirtualPad * pad,
TObject * obj,
Int_t xBin,
Int_t yBin )

Data highlight function

Definition at line 548 of file PointDraw.cxx.

References DrawProjections(), DrawUser(), fData, fDataId, fMc, fMcId, fParameterPoint, and Ndmspc::Utils::Tokenize().

Referenced by HighlightMain().

◆ HighlightMain()

void Ndmspc::PointDraw::HighlightMain ( TVirtualPad * pad,
TObject * obj,
Int_t xBin,
Int_t yBin )

Main highlight function

Definition at line 512 of file PointDraw.cxx.

References HighlightData(), and HighlightParam().

◆ HighlightParam()

void Ndmspc::PointDraw::HighlightParam ( TVirtualPad * pad,
TObject * obj,
Int_t xBin,
Int_t yBin )

Param highlight function

Definition at line 527 of file PointDraw.cxx.

References DrawProjections(), fCurrentParameterName, fParameterPoint, and fParamMapHistogram.

Referenced by HighlightMain().

◆ HighlightProjectionPoint()

void Ndmspc::PointDraw::HighlightProjectionPoint ( TVirtualPad * pad,
TObject * obj,
Int_t xBin,
Int_t yBin )

Projection point highlight function

Definition at line 601 of file PointDraw.cxx.

References DrawProjections(), DrawUser(), fParameterPoint, and fProjectionAxes.

◆ SetEnvironment()

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

Sets environment.

Definition at line 55 of file PointDraw.h.

References fgEnvironment.

◆ UpdateRanges()

void Ndmspc::PointDraw::UpdateRanges ( )

Update ranges

Definition at line 382 of file PointDraw.cxx.

References fCurrentContentPath, fParameterPoint, and fResultHnSparse.

Referenced by DrawProjections().

Member Data Documentation

◆ fCurrentContentPath

std::string Ndmspc::PointDraw::fCurrentContentPath
protected

Current content path.

Definition at line 33 of file PointDraw.h.

Referenced by DrawUser(), and UpdateRanges().

◆ fCurrentParameterName

std::string Ndmspc::PointDraw::fCurrentParameterName
protected

Current parameter name.

Definition at line 32 of file PointDraw.h.

Referenced by DrawPoint(), DrawProjections(), and HighlightParam().

◆ fData

std::vector<std::string> Ndmspc::PointDraw::fData {}
protected

Data.

Definition at line 40 of file PointDraw.h.

Referenced by DrawPoint(), and HighlightData().

◆ fDataId

std::vector<int> Ndmspc::PointDraw::fDataId {}
protected

Data ids.

Definition at line 41 of file PointDraw.h.

Referenced by DrawPoint(), and HighlightData().

◆ fgEnvironment

std::string Ndmspc::PointDraw::fgEnvironment = ""
staticprotected

Currnet environment.

Definition at line 44 of file PointDraw.h.

Referenced by SetEnvironment().

◆ fIn

TFile* Ndmspc::PointDraw::fIn = nullptr
protected

Input file.

Definition at line 30 of file PointDraw.h.

Referenced by DrawPoint(), and DrawUser().

◆ fMapAxesType

TH1* Ndmspc::PointDraw::fMapAxesType = nullptr
protected

Map axes type.

Definition at line 36 of file PointDraw.h.

Referenced by DrawPoint().

◆ fMapTitle

std::string Ndmspc::PointDraw::fMapTitle
protected

Map title.

Definition at line 37 of file PointDraw.h.

Referenced by DrawPoint().

◆ fMc

std::vector<std::string> Ndmspc::PointDraw::fMc {}
protected

MC.

Definition at line 42 of file PointDraw.h.

Referenced by DrawPoint(), and HighlightData().

◆ fMcId

std::vector<int> Ndmspc::PointDraw::fMcId {}
protected

MC ids.

Definition at line 43 of file PointDraw.h.

Referenced by DrawPoint(), and HighlightData().

◆ fNDimCuts

int Ndmspc::PointDraw::fNDimCuts = 0
protected

Number of dimension cuts.

Definition at line 39 of file PointDraw.h.

Referenced by DrawPoint().

◆ fParameterPoint

std::vector<int> Ndmspc::PointDraw::fParameterPoint
protected

Parameter point.

Definition at line 34 of file PointDraw.h.

Referenced by DrawPoint(), DrawProjections(), HighlightData(), HighlightParam(), HighlightProjectionPoint(), and UpdateRanges().

◆ fParamMapHistogram

TH1* Ndmspc::PointDraw::fParamMapHistogram = nullptr
protected

Param map histogram.

Definition at line 38 of file PointDraw.h.

Referenced by HighlightParam().

◆ fProjectionAxes

std::vector<int> Ndmspc::PointDraw::fProjectionAxes
protected

Projection axes.

Definition at line 35 of file PointDraw.h.

Referenced by DrawPoint(), DrawProjections(), and HighlightProjectionPoint().

◆ fResultHnSparse

THnSparse* Ndmspc::PointDraw::fResultHnSparse = nullptr
protected

Result HnSparse.

Definition at line 31 of file PointDraw.h.

Referenced by DrawPoint(), DrawProjections(), and UpdateRanges().


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