ATLAS Offline Software
Public Member Functions | List of all members
TRTPlots Class Reference
Inheritance diagram for TRTPlots:
Collaboration diagram for TRTPlots:

Public Member Functions

 TRTPlots (TFile *, bool)
 

Detailed Description

Definition at line 3212 of file TRTCalib_makeplots.cxx.

Constructor & Destructor Documentation

◆ TRTPlots()

TRTPlots::TRTPlots ( TFile *  file,
bool  isAr = false 
)

Definition at line 3218 of file TRTCalib_makeplots.cxx.

3219 {
3220 
3221  this->SetName("resplots");
3222 
3223  file->cd();
3224 
3225  TDirectory *trt = nullptr;
3226  if (!isAr)
3227  trt = (TDirectory *)file->FindKey("TRT_all")->ReadObj();
3228  else
3229  trt = (TDirectory *)file->FindKey("TRT_Ar_all")->ReadObj();
3230 
3231  TH2F *reshist1 = nullptr;
3232  if (trt->FindKey("residual"))
3233  reshist1 = (TH2F *)trt->FindKey("residual")->ReadObj();
3234  else
3235  throw(string("residual histograms for entire TRT not found!"));
3236 
3237  TH2F *treshist1 = nullptr;
3238  if (trt->FindKey("timeresidual"))
3239  treshist1 = (TH2F *)trt->FindKey("timeresidual")->ReadObj();
3240  else
3241  throw(string("timeresidual histograms for entire TRT not found!"));
3242 
3243  reshist1->SetTitle(Form("residual whole TRT"));
3244  if (isAr)
3245  reshist1->SetTitle(Form("Argon residual whole TRT"));
3246  reshist1->SetFillColor(46);
3247  treshist1->SetTitle(Form("time-residual whole TRT"));
3248  if (isAr)
3249  treshist1->SetTitle(Form("Argon time-residual whole TRT"));
3250  treshist1->SetFillColor(38);
3251 
3252  this->Divide(1, 2, 0.01, 0.01);
3253  this->SetLogy();
3254 
3255  this->cd(1);
3256  reshist1->Draw();
3257  this->cd(2);
3258  treshist1->Draw();
3259 }

The documentation for this class was generated from the following file:
python.TrigEgammaMonitorHelper.TH2F
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:45
file
TFile * file
Definition: tile_monitor.h:29
calibdata.cd
cd
Definition: calibdata.py:51