ATLAS Offline Software
Namespaces | Macros | Functions | Variables
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

 dqutils
 

Macros

#define BINLOEDGE(h, n)   h->GetXaxis()->GetBinLowEdge(n)
 
#define BINWIDTH(h, n)   h->GetXaxis()->GetBinWidth(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,
 
)    h->GetXaxis()->GetBinLowEdge(n)

Definition at line 50 of file HanOutputFile.cxx.

◆ BINWIDTH

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

Definition at line 51 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
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
pyroot.display
display
Definition: pyroot.py:42
checkTriggerxAOD.found
found
Definition: checkTriggerxAOD.py:328