![]() |
AliPhysics
8b695ca (8b695ca)
|
This macro is used for a run-by-run evaluation of the bad channels and finding the best period splitting for long runlists. More...
#include <Riostream.h>
#include <TStyle.h>
#include <TCanvas.h>
#include <TROOT.h>
#include <TGaxis.h>
#include <TFile.h>
#include <TLatex.h>
#include <TLegend.h>
#include <TEnv.h>
#include <TSystem.h>
#include "AliEMCALGeometry.h"
#include "AliCalorimeterUtils.h"
#include "AliAODEvent.h"
Go to the source code of this file.
Functions | |
TH2F * | CompressHistogram (TH2 *Histo, Int_t totalCells, Int_t badCells, std::vector< Int_t > runIdVec) |
void | BuildMaxMinHisto (TH1D *inHisto, TH1D *minHist, TH1D *maxHist) |
void | PlotLowFractionCells (TString pdfName, std::vector< Int_t > cellVector, TH2F *badVsCell[], Int_t nRuns, TH2F *ampID[], TH1D *hCellGoodMean[]) |
Bool_t | IsItReallyBadRatio (TH1D *minHistoRatio, TH1D *maxHistoRatio, TH1D *meanHistoRatior, TString &crit) |
void | PlotHorLineRange (Double_t y_val, Double_t xLow, Double_t xHigh, Int_t Line_Col) |
void | SetHisto (TH2 *Histo, TString Xtitel, TString Ytitel, Bool_t longhisto) |
void | SetHisto (TH1 *Histo, TString Xtitel, TString Ytitel, Bool_t longhisto) |
Bool_t | IsCellMaskedByHand (Int_t cell, std::vector< Int_t > cellVector) |
void | CreateCellCompPDF (TH2F *hAmpIDMasked, std::vector< Int_t > cellVector, TH1 *goodCellsMerged, TH1 *goodCellsRbR, TString pdfName) |
void | Plot2DCells (TString Block, Int_t runNo, std::vector< Int_t > cellVectorRbR, std::vector< Int_t > cellVectorMerge) |
void | SummarizeRunByRun (TString period="LHC15o", TString train="Train_641", TString trigger="AnyINTnoBC", TString listName="runList", Int_t runsUsed=-1) |
Bool_t | GetBestPeriodSplitting (TString period="LHC15o", Int_t train=771, Int_t Nruns=105, Int_t noOfSplits=4) |
void | CompareTwoBCstrategies (TString period="LHC15n", Int_t trainNo=603, Int_t version=5) |
Variables | |
const Int_t | RainbowColors [] = {kRed, kRed-4, kRed-7, kRed-9, kRed-10, kYellow, kYellow-4, kYellow-7, kYellow-9, kYellow-10, kGreen, kGreen-4 , kGreen-7, kGreen-9, kGreen-10, kCyan, kCyan-4, kCyan-7, kCyan-9, kCyan-10, kBlue, kBlue-4, kBlue-7, kBlue-9, kBlue-10, kMagenta, kMagenta-4, kMagenta-7, kMagenta-9, kMagenta-10} |
This macro is used for a run-by-run evaluation of the bad channels and finding the best period splitting for long runlists.
See https://twiki.cern.ch/twiki/bin/view/ALICE/BadChannelAnalysis for general documentation
use root -b to speed up (no canvas drawn)
root [0] .L $ALICE_WORK_DIR/../ali-master/AliPhysics/PWGPP/EMCAL/BCMacros/helperMacrosRunByRunBC.C++
or
root [0] .L $ALICE_WORK_DIR/../AliPhysics/PWGPP/EMCAL/BCMacros/helperMacrosRunByRunBC.C++
root [2] SummarizeRunByRun("LHC15o","Train_771","INT7","runList45",45)
root [2] SummarizeRunByRun("LHC15o","Train_771","INT7","GloballyGood")
root [2] GetBestPeriodSplitting("LHC15o",771,105,3)
root [2] CompareTwoBCstrategies(TString period="LHC15n",Int_t trainNo=603,Int_t version=5)
Definition in file helperMacrosRunByRunBC.C.
Definition at line 2040 of file helperMacrosRunByRunBC.C.
Referenced by PlotLowFractionCells().
Definition at line 1497 of file helperMacrosRunByRunBC.C.
TH2F * CompressHistogram | ( | TH2 * | Histo, |
Int_t | totalCells, | ||
Int_t | badCells, | ||
std::vector< Int_t > | runIdVec | ||
) |
compresses the bad cell histogram to delete entries of good cells (cells that are good in EVERY run) (only 10-15% of cells are bad)
Definition at line 2405 of file helperMacrosRunByRunBC.C.
Referenced by SummarizeRunByRun().
void CreateCellCompPDF | ( | TH2F * | hAmpIDMasked, |
std::vector< Int_t > | cellVector, | ||
TH1 * | goodCellsMerged, | ||
TH1 * | goodCellsRbR, | ||
TString | pdfName | ||
) |
Definition at line 2572 of file helperMacrosRunByRunBC.C.
Referenced by CompareTwoBCstrategies().
Bool_t GetBestPeriodSplitting | ( | TString | period = "LHC15o" , |
Int_t | train = 771 , |
||
Int_t | Nruns = 105 , |
||
Int_t | noOfSplits = 4 |
||
) |
Calculate how to best split periods into run blocks So that the number of masked cells is minimized
Definition at line 1124 of file helperMacrosRunByRunBC.C.
Definition at line 2562 of file helperMacrosRunByRunBC.C.
Referenced by CompareTwoBCstrategies().
Bool_t IsItReallyBadRatio | ( | TH1D * | minHistoRatio, |
TH1D * | maxHistoRatio, | ||
TH1D * | meanHistoRatior, | ||
TString & | crit | ||
) |
Definition at line 2056 of file helperMacrosRunByRunBC.C.
Referenced by PlotLowFractionCells().
void Plot2DCells | ( | TString | Block, |
Int_t | runNo, | ||
std::vector< Int_t > | cellVectorRbR, | ||
std::vector< Int_t > | cellVectorMerge | ||
) |
Definition at line 1970 of file helperMacrosRunByRunBC.C.
Referenced by CompareTwoBCstrategies().
A vertical line that can be plotted
Definition at line 2438 of file helperMacrosRunByRunBC.C.
Referenced by GetBestPeriodSplitting().
void PlotLowFractionCells | ( | TString | pdfName, |
std::vector< Int_t > | cellVector, | ||
TH2F * | badVsCell[], | ||
Int_t | nRuns, | ||
TH2F * | ampID[], | ||
TH1D * | hCellGoodMean[] | ||
) |
Definition at line 2196 of file helperMacrosRunByRunBC.C.
Referenced by SummarizeRunByRun().
Function to set TH1 histograms to a similar style
Definition at line 2456 of file helperMacrosRunByRunBC.C.
Referenced by CompareTwoBCstrategies(), GetBestPeriodSplitting(), PlotLowFractionCells(), and SummarizeRunByRun().
Funtion to set TH1 histograms to a similar style
Definition at line 2514 of file helperMacrosRunByRunBC.C.
void SummarizeRunByRun | ( | TString | period = "LHC15o" , |
TString | train = "Train_641" , |
||
TString | trigger = "AnyINTnoBC" , |
||
TString | listName = "runList" , |
||
Int_t | runsUsed = -1 |
||
) |
Draw the good, bad, dead channel maps, and the amplitude distribution per each run and save them in pdf files in analysisOutput/train/RunByRunSummary – can improve: write different pages in one pdf – decide how to treat this info
Definition at line 62 of file helperMacrosRunByRunBC.C.
const Int_t RainbowColors[] = {kRed, kRed-4, kRed-7, kRed-9, kRed-10, kYellow, kYellow-4, kYellow-7, kYellow-9, kYellow-10, kGreen, kGreen-4 , kGreen-7, kGreen-9, kGreen-10, kCyan, kCyan-4, kCyan-7, kCyan-9, kCyan-10, kBlue, kBlue-4, kBlue-7, kBlue-9, kBlue-10, kMagenta, kMagenta-4, kMagenta-7, kMagenta-9, kMagenta-10} |
Definition at line 42 of file helperMacrosRunByRunBC.C.