AliPhysics  5364b50 (5364b50)
helperMacrosOADBBC.C File Reference

Macro to test the files on OADB and provide a run range to be committed to OADB. More...

#include <Riostream.h>
#include <TH2D.h>
#include <TFile.h>
#include <TCanvas.h>
#include <TLatex.h>
#include <TLegend.h>
#include <TStyle.h>
#include "AliEMCALGeometry.h"
#include "AliCalorimeterUtils.h"
#include "AliAODEvent.h"
#include "AliOADBContainer.h"
Include dependency graph for helperMacrosOADBBC.C:

Go to the source code of this file.

Functions

void SetHisto (TH1 *Histo, TString Xtitel, TString Ytitel)
 
void CanvasPartition (TCanvas *C, const Int_t Nx=2, const Int_t Ny=2, Float_t lMargin=0.15, Float_t rMargin=0.05, Float_t bMargin=0.15, Float_t tMargin=0.05)
 
void Sort_RunNumbers (TString period="LHC15n", Int_t trainNo=603, TString runList="")
 
void Test_OADB (TString period="LHC15n", Int_t trainNo=603, TString version="INT7Emc", TString runList="")
 
void Plot_CellList (TString period="LHC15n", Int_t trainNo=603, TString cellList="")
 

Detailed Description

Macro to test the files on OADB and provide a run range to be committed to OADB.

See https://twiki.cern.ch/twiki/bin/view/ALICE/BadChannelAnalysis for general documentation


Running the macro

use root -b to speed up (no canvas drawn)
root [0] .L $ALICE_WORK_DIR/../ali-master/AliPhysics/PWGPP/EMCAL/BCMacros/helperMacrosOADBBC.C++
root [1] Sort_RunNumbers("LHC16o",663,"runList.txt")
root [2] Test_OADB("LHC16k",804,0,"runList16k.txt")
root [3] Plot_CellList("LHC15o",771,"1","List115o.txt")

Author
Eliane Epple elian.nosp@m.e.ep.nosp@m.ple@y.nosp@m.ale..nosp@m.edu, Yale University
Date
June 29, 2017

Definition in file helperMacrosOADBBC.C.

Function Documentation

void CanvasPartition ( TCanvas *  C,
const Int_t  Nx,
const Int_t  Ny,
Float_t  lMargin,
Float_t  rMargin,
Float_t  bMargin,
Float_t  tMargin 
)

Function to set up canvas pads such that they share a common axis

Definition at line 549 of file helperMacrosOADBBC.C.

Referenced by Plot_CellList().

void Plot_CellList ( TString  period = "LHC15n",
Int_t  trainNo = 603,
TString  cellList = "" 
)

After OADB maps are online you will get suggestions from other users that think certain channels should be masked. You can look at them here


Definition at line 295 of file helperMacrosOADBBC.C.

void SetHisto ( TH1 Histo,
TString  Xtitel,
TString  Ytitel 
)

Function to set TH1 histograms to a similar style

Definition at line 519 of file helperMacrosOADBBC.C.

Referenced by Plot_CellList().

void Sort_RunNumbers ( TString  period = "LHC15n",
Int_t  trainNo = 603,
TString  runList = "" 
)

get all runnumbers from different groups and sort them to give a min and max range for the bad map. Run numbers are in your runList file.


Definition at line 44 of file helperMacrosOADBBC.C.

void Test_OADB ( TString  period = "LHC15n",
Int_t  trainNo = 603,
TString  version = "INT7Emc",
TString  runList = "" 
)

Test if the file committed to OADB is correct look at your local .root file with the bad maps inside and see what the bad map looks at a certain runNumber. If everything is committed correctly they should show the same


Definition at line 84 of file helperMacrosOADBBC.C.