ATLAS Offline Software
Loading...
Searching...
No Matches
HanOutputFile.cxx File Reference
#include "DataQualityUtils/HanOutputFile.h"
#include <TBufferJSON.h>
#include <TCanvas.h>
#include <TDirectory.h>
#include <TEfficiency.h>
#include <TF1.h>
#include <TFile.h>
#include <TGraph.h>
#include <TGraphAsymmErrors.h>
#include <TH1.h>
#include <TH2.h>
#include <THStack.h>
#include <TImage.h>
#include <TIterator.h>
#include <TKey.h>
#include <TLatex.h>
#include <TLegend.h>
#include <TLine.h>
#include <TMath.h>
#include <TProfile.h>
#include <TROOT.h>
#include <TString.h>
#include <TStyle.h>
#include <TText.h>
#include <TImageDump.h>
#include <TFrame.h>
#include <charconv>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <ranges>
#include <tuple>
#include "DataQualityInterfaces/HanUtils.h"
#include "TPluginManager.h"

Go to the source code of this file.

Namespaces

namespace  dqutils

Macros

#define BINLOEDGE(h, n)
#define BINWIDTH(h, n)

Functions

 ClassImp (dqutils::HanOutputFile) namespace
void getImageBuffer dqutils::ATLAS_NOT_THREAD_SAFE (TImage **img, TCanvas *myC, char **x, int *y)

Variables

std::vector< int > dqutils::root_color_choices

Macro Definition Documentation

◆ BINLOEDGE

#define BINLOEDGE ( h,
n )
Value:
h->GetXaxis()->GetBinLowEdge(n)
Header file for AthHistogramAlgorithm.

Definition at line 49 of file HanOutputFile.cxx.

◆ BINWIDTH

#define BINWIDTH ( h,
n )
Value:
h->GetXaxis()->GetBinWidth(n)

Definition at line 50 of file HanOutputFile.cxx.

Function Documentation

◆ ClassImp()

ClassImp ( dqutils::HanOutputFile )

Definition at line 52 of file HanOutputFile.cxx.

55{
56 // class DisableMustClean {
57 // public:
58 // inline DisableMustClean() : useRecursiveDelete(gROOT->MustClean()) { gROOT->SetMustClean(false); }
59 // inline ~DisableMustClean() { gROOT->SetMustClean(useRecursiveDelete); }
60 // private:
61 // bool useRecursiveDelete;
62 // };
63
64 Double_t getScaleVal(std::string& display) {
65 std::size_t found = display.find("ScaleRef");
66 std::size_t found2 = display.find_first_of(',', found + 1);
67 // has multiple entries? Do this later.
68 std::string valueStr = display.substr(found + 9, found2 - found - 9);
69 double resultVal = 0.0;
70 auto [ptr, ec] = std::from_chars(valueStr.data(), valueStr.data() + valueStr.size(), resultVal);
71 if (ec != std::errc()) {
72 std::cerr << "Unable to cast scaling value " << valueStr << " to double" << std::endl;
73 return 1.;
74 }
75 return resultVal;
76 }
77} // end unnamed namespace
void * ptr(T *p)
Definition SGImplSvc.cxx:74
display
Definition pyroot.py:42