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 <boost/algorithm/string/case_conv.hpp>
#include <boost/lexical_cast.hpp>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <iostream>
#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 49 of file HanOutputFile.cxx.

◆ BINWIDTH

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

Definition at line 50 of file HanOutputFile.cxx.

Function Documentation

◆ ClassImp()

ClassImp ( dqutils::HanOutputFile  )

Definition at line 51 of file HanOutputFile.cxx.

54 {
55  // class DisableMustClean {
56  // public:
57  // inline DisableMustClean() : useRecursiveDelete(gROOT->MustClean()) { gROOT->SetMustClean(false); }
58  // inline ~DisableMustClean() { gROOT->SetMustClean(useRecursiveDelete); }
59  // private:
60  // bool useRecursiveDelete;
61  // };
62 
63  Double_t getScaleVal(std::string& display) {
64  std::size_t found = display.find("ScaleRef");
65  std::size_t found2 = display.find_first_of(',', found + 1);
66  // has multiple entries? Do this later.
67  try
68  {
69  return boost::lexical_cast<Double_t>(display.substr(found + 9, found2 - found - 9));
70  }
71  catch (boost::bad_lexical_cast const&)
72  {
73  std::cerr << "Unable to cast scaling value " << display.substr(found + 9, found2 - found - 9) << " to double"
74  << std::endl;
75  return 1.;
76  }
77  }
78 } // end unnamed namespace
pyroot.display
display
Definition: pyroot.py:44
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101