AliPhysics  5eaf189 (5eaf189)
helperMacrosBC.C File Reference

small collection of helper functions More...

#include <Riostream.h>
#include <TFile.h>
#include <TH1.h>
#include <TROOT.h>
#include <TStyle.h>
#include <TLatex.h>
#include <TCanvas.h>
#include "AliEMCALGeometry.h"
#include "AliCalorimeterUtils.h"
#include "AliAODEvent.h"
Include dependency graph for helperMacrosBC.C:

Go to the source code of this file.

Functions

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 > cellVectorMergeB, std::vector< Int_t > cellVectorMergeA)
 
void Compare_RunNumbers (TString period="LHC15n", Int_t trainNo=603, TString runList1="", TString runList2="")
 
void Get_RowCollumnID (Int_t runNum=244411, Int_t inputCellID=-1, Int_t inputRow=-1, Int_t inputCollumn=-1, Int_t inputSM=-1)
 
void Compare2Blocks (TString period="LHC15n", Int_t trainNo=603, Int_t versionA=0, Int_t versionB=1)
 

Detailed Description

small collection of helper functions

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 helperMacrosBC.C++
root [0] Get_RowCollumnID(244917,-1,4,16,4)
root [0] Get_RowCollumnID(244917,2001,-1,-1,-1)
root [0] Compare2Blocks("LHC16l",803,3,5)

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 helperMacrosBC.C.

Function Documentation

void Compare2Blocks ( TString  period = "LHC15n",
Int_t  trainNo = 603,
Int_t  versionA = 0,
Int_t  versionB = 1 
)

Compares masked amplidudes from 2 different merged blocks or from 2 different versions of the same block so that one can test the effectivness of added periods

Definition at line 182 of file helperMacrosBC.C.

void Compare_RunNumbers ( TString  period = "LHC15n",
Int_t  trainNo = 603,
TString  runList1 = "",
TString  runList2 = "" 
)

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 47 of file helperMacrosBC.C.

void CreateCellCompPDF ( TH2F hAmpIDMasked,
std::vector< Int_t cellVector,
TH1 goodCellsMerged,
TH1 goodCellsRbR,
TString  pdfName 
)

Definition at line 488 of file helperMacrosBC.C.

Referenced by Compare2Blocks().

void Get_RowCollumnID ( Int_t  runNum = 244411,
Int_t  inputCellID = -1,
Int_t  inputRow = -1,
Int_t  inputCollumn = -1,
Int_t  inputSM = -1 
)

check where the bad cell is (row collumn), if you have only its ID or get it's ID if you have its row and collumn


Definition at line 139 of file helperMacrosBC.C.

Bool_t IsCellMaskedByHand ( Int_t  cell,
std::vector< Int_t cellVector 
)

checks if the cell is part of manually masked cells

Definition at line 475 of file helperMacrosBC.C.

Referenced by Compare2Blocks().

void Plot2DCells ( TString  Block,
Int_t  runNo,
std::vector< Int_t cellVectorMergeB,
std::vector< Int_t cellVectorMergeA 
)

Definition at line 405 of file helperMacrosBC.C.

Referenced by Compare2Blocks().

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

Funtion to set TH1 histograms to a similar style


Funtion to set TH1 histograms to a similar style

Definition at line 556 of file helperMacrosBC.C.

Referenced by Compare2Blocks(), and AliTrackletDeltaWeights::~AliTrackletDeltaWeights().