![]() |
AliPhysics
c2e202c (c2e202c)
|
Output for Trig chamber effieincy. More...
#include <AliMTRChEffAnalysis.h>
Public Member Functions | |
AliMTRChEffAnalysis () | |
AliMTRChEffAnalysis (const char *localFileList, const char *outputName="testMTRChamberEff") | |
TArrayI | GetHomogeneusRanges (Double_t chi2Cut=3, Int_t maxNRanges=4, Double_t minEffVariation=0.005, TArrayI *forcedChanges=0x0, Double_t minEff=0.85, Double_t maxEff=1.01) |
TArrayI | GetHomogeneusRanges (TGraphAsymmErrors *trendGraph, Double_t chi2Cut=3, Int_t maxNRanges=4, Double_t minEffVariation=0.005, TArrayI *forcedChanges=0x0, Bool_t returnIndex=kFALSE) |
void | DrawEffTrend (Int_t itype, Int_t irpc, Double_t maxNsigmasOutliers=-1., Double_t minEff=0.8, Double_t maxEff=1.01) const |
Double_t | GetAverageStat (Int_t firstRun, Int_t lastRun, Int_t itype=AliTrigChEffOutput::kHboardEff, Bool_t excludePeriphericBoards=kTRUE) const |
TGraphAsymmErrors * | GetOutliers (TGraphAsymmErrors *graph, Double_t maxNsigmas=3.) const |
TH1 * | GetTrend (Int_t itype, Int_t icount, Int_t ichamber, Int_t idetelem) const |
TGraphAsymmErrors * | GetTrendEff (Int_t itype, Int_t icount, Int_t ichamber, Int_t idetelem) const |
void | CompareEfficiencies (const char *sources, const char *titles, const char *opt) const |
void | CompareMergedEfficiencies (const char *opt) const |
Bool_t | AddSystematicCondition (const char *physSel, const char *trigClassName, const char *centrality, Int_t itrackSel, Int_t imatch, Int_t imethod) |
Bool_t | SetDefaultEffConditions () |
Bool_t | SetEffConditions (const char *physSel, const char *trigClassName, const char *centrality, Int_t itrackSel, Int_t imatch, Int_t imethod) |
Bool_t | MergeOutput (TArrayI runRanges, Double_t averageStatError=0.01, Bool_t isIndex=kFALSE) |
Bool_t | SetResultsFromGrid (const char *runList, const char *path, const char *pattern, const char *localFileList="localFileList.txt", const char *outDir="", const char *directory="MTR_ChamberEffMap", const char *outputName="testMTRChamberEff") |
Bool_t | SetResultsFromWeb (const char *runList, const char *path, const char *localFileList="localFileList.txt", const char *outDir="", const char *directory="MTR_ChamberEffMap", const char *outputName="testMTRChamberEff") |
Bool_t | WriteMergedToOCDB (const char *outputCDB="CDB") const |
Bool_t | DrawSystematicEnvelope (Bool_t perRPC=kFALSE, Double_t miny=-0.03, Double_t maxy=0.03) const |
virtual | ~AliMTRChEffAnalysis () |
Private Member Functions | |
Bool_t | AddToList (const char *filename, const char *outputName) |
TArrayI | BoardsInRPC (Int_t irpc) const |
void | CopyDir (TDirectory *source) const |
Bool_t | CopyLocally (const char *runList, const char *path, const char *pattern, const char *localFileList, const char *outDir, const char *directory) const |
void | CompareEfficiencies (TObjArray *effMapList, const char *titles, const char *opt) const |
Bool_t | ExecCommand (TString command, Bool_t prompt) const |
Double_t | FitRangesFunc (Double_t *x, Double_t *par) |
Double_t | GetError (Double_t errLow, Double_t errHigh) const |
TList * | GetEffHistoList (AliTrigChEffOutput *trigOut, TObjArray *condition) const |
TH1 * | GetHisto (TList *effHistoList, Int_t itype, Int_t icount, Int_t ichamber) const |
TString | GetIdentifier (AliTrigChEffOutput *trigOut, TObjArray *condition, Int_t itype, Int_t icount, Int_t ichamber) const |
Int_t | GetIndexFromRun (UInt_t runNumber) const |
Int_t | GetRunNumber (Int_t ipt) const |
TList * | GetRunList (const char *runList) const |
TH1 * | GetSum (AliTrigChEffOutput *trigOut, TObjArray *condition, Int_t itype, Int_t icount, Int_t ichamber) const |
Double_t | GetThreeOfFour (TArrayD eff, TArrayD effErr, Double_t &probErr) const |
Bool_t | HasMergedResults () const |
TArrayI | MergeRangesForStat (TArrayI runRanges, Double_t averageStatError, Bool_t excludePeriphericBoards=kTRUE) const |
Bool_t | SetCondition (const char *physSel, const char *trigClassName, const char *centrality, Int_t itrackSel, Int_t imatch, Int_t imethod, Bool_t isBasic) |
Bool_t | SetOutList (const char *localFileList, const char *outputName) |
AliMTRChEffAnalysis (const AliMTRChEffAnalysis &) | |
Dummy. More... | |
AliMTRChEffAnalysis & | operator= (const AliMTRChEffAnalysis &) |
Dummy. More... | |
Private Attributes | |
TObjArray * | fOutputs |
TObjArray * | fConditions |
!<! List of outputs More... | |
TObjArray * | fMergedOutputs |
!<! List of conditions for trigger efficiency More... | |
Output for Trig chamber effieincy.
The class manipulates the output of AliAnalysisTaskTrigChEff in order to build the trigger chamber efficiency object to be plugged in the OCDB for simulations
Definition at line 25 of file AliMTRChEffAnalysis.h.
AliMTRChEffAnalysis::AliMTRChEffAnalysis | ( | ) |
Default Ctor.
Definition at line 72 of file AliMTRChEffAnalysis.cxx.
AliMTRChEffAnalysis::AliMTRChEffAnalysis | ( | const char * | localFileList, |
const char * | outputName = "testMTRChamberEff" |
||
) |
Ctor.
Definition at line 83 of file AliMTRChEffAnalysis.cxx.
|
virtual |
Destructor
Definition at line 94 of file AliMTRChEffAnalysis.cxx.
|
private |
Dummy.
Bool_t AliMTRChEffAnalysis::AddSystematicCondition | ( | const char * | physSel, |
const char * | trigClassName, | ||
const char * | centrality, | ||
Int_t | itrackSel, | ||
Int_t | imatch, | ||
Int_t | imethod | ||
) |
Add conditions for the systematic uncertainty estimation
Definition at line 105 of file AliMTRChEffAnalysis.cxx.
|
private |
Add to output list
Definition at line 112 of file AliMTRChEffAnalysis.cxx.
Referenced by SetCondition(), and SetOutList().
|
private |
Return boards contained in the specified RPC
Definition at line 142 of file AliMTRChEffAnalysis.cxx.
Referenced by DrawEffTrend().
void AliMTRChEffAnalysis::CompareEfficiencies | ( | const char * | sources, |
const char * | titles, | ||
const char * | opt | ||
) | const |
Compare efficiency objects
Definition at line 217 of file AliMTRChEffAnalysis.cxx.
Referenced by CompareMergedEfficiencies().
|
private |
Compare efficiency objects
Definition at line 261 of file AliMTRChEffAnalysis.cxx.
void AliMTRChEffAnalysis::CompareMergedEfficiencies | ( | const char * | opt | ) | const |
Definition at line 370 of file AliMTRChEffAnalysis.cxx.
|
private |
copy all objects and subdirs of directory source as a subdir of the current directory
Definition at line 432 of file AliMTRChEffAnalysis.cxx.
Referenced by CopyLocally().
|
private |
Copy files from QA repository or from grid
Definition at line 470 of file AliMTRChEffAnalysis.cxx.
Referenced by SetResultsFromGrid(), and SetResultsFromWeb().
void AliMTRChEffAnalysis::DrawEffTrend | ( | Int_t | itype, |
Int_t | irpc, | ||
Double_t | maxNsigmasOutliers = -1. , |
||
Double_t | minEff = 0.8 , |
||
Double_t | maxEff = 1.01 |
||
) | const |
Draw trenidng
Definition at line 570 of file AliMTRChEffAnalysis.cxx.
Bool_t AliMTRChEffAnalysis::DrawSystematicEnvelope | ( | Bool_t | perRPC = kFALSE , |
Double_t | miny = -0.03 , |
||
Double_t | maxy = 0.03 |
||
) | const |
Get systematic envelop for merged efficiencies
Definition at line 647 of file AliMTRChEffAnalysis.cxx.
|
private |
Execute command
Definition at line 822 of file AliMTRChEffAnalysis.cxx.
Referenced by CopyLocally(), and WriteMergedToOCDB().
|
private |
Function with multiple constant fixes Parameters are: [0] = number of break points dividing 2 sub ranges [1] = value of efficiency in the first (or only) subrange [2*ipar] (for ipar>=1) = position in x where efficiency value can change [2*ipar+1] = value of efficiency in the ipar+1 subrange
Definition at line 845 of file AliMTRChEffAnalysis.cxx.
Referenced by GetHomogeneusRanges().
Double_t AliMTRChEffAnalysis::GetAverageStat | ( | Int_t | firstRun, |
Int_t | lastRun, | ||
Int_t | itype = AliTrigChEffOutput::kHboardEff , |
||
Bool_t | excludePeriphericBoards = kTRUE |
||
) | const |
Definition at line 864 of file AliMTRChEffAnalysis.cxx.
Referenced by MergeRangesForStat().
|
private |
Get the list of objects for the efficiency calculation
Definition at line 913 of file AliMTRChEffAnalysis.cxx.
Referenced by AddToList(), CompareMergedEfficiencies(), and WriteMergedToOCDB().
|
private |
Get error from the asymmetric error on efficiency
Definition at line 924 of file AliMTRChEffAnalysis.cxx.
Referenced by CompareEfficiencies(), and DrawSystematicEnvelope().
|
private |
Get histogram
Definition at line 931 of file AliMTRChEffAnalysis.cxx.
Referenced by GetAverageStat(), and GetTrend().
TArrayI AliMTRChEffAnalysis::GetHomogeneusRanges | ( | Double_t | chi2Cut = 3 , |
Int_t | maxNRanges = 4 , |
||
Double_t | minEffVariation = 0.005 , |
||
TArrayI * | forcedChanges = 0x0 , |
||
Double_t | minEff = 0.85 , |
||
Double_t | maxEff = 1.01 |
||
) |
Get run ranges with an efficiency compatible with constant
Definition at line 939 of file AliMTRChEffAnalysis.cxx.
TArrayI AliMTRChEffAnalysis::GetHomogeneusRanges | ( | TGraphAsymmErrors * | trendGraph, |
Double_t | chi2Cut = 3 , |
||
Int_t | maxNRanges = 4 , |
||
Double_t | minEffVariation = 0.005 , |
||
TArrayI * | forcedChanges = 0x0 , |
||
Bool_t | returnIndex = kFALSE |
||
) |
Get run ranges with an efficiency compatible with constant
Definition at line 1033 of file AliMTRChEffAnalysis.cxx.
|
private |
Get histogram identifier
Definition at line 1104 of file AliMTRChEffAnalysis.cxx.
|
private |
Get index from run number
Definition at line 1123 of file AliMTRChEffAnalysis.cxx.
Referenced by GetHomogeneusRanges().
TGraphAsymmErrors * AliMTRChEffAnalysis::GetOutliers | ( | TGraphAsymmErrors * | graph, |
Double_t | maxNsigmas = 3. |
||
) | const |
|
private |
Get run number in string
Definition at line 1167 of file AliMTRChEffAnalysis.cxx.
Referenced by CopyLocally().
|
private |
Get run number from graph
Definition at line 1159 of file AliMTRChEffAnalysis.cxx.
Referenced by GetHomogeneusRanges(), and MergeOutput().
|
private |
Get sum histogram
Definition at line 1198 of file AliMTRChEffAnalysis.cxx.
Referenced by DrawSystematicEnvelope().
|
private |
Get probability of firing 3 chambers out of 4
Definition at line 1269 of file AliMTRChEffAnalysis.cxx.
Referenced by DrawSystematicEnvelope().
TH1 * AliMTRChEffAnalysis::GetTrend | ( | Int_t | itype, |
Int_t | icount, | ||
Int_t | ichamber, | ||
Int_t | idetelem | ||
) | const |
Get trending histogram
Definition at line 1209 of file AliMTRChEffAnalysis.cxx.
Referenced by GetTrendEff().
TGraphAsymmErrors * AliMTRChEffAnalysis::GetTrendEff | ( | Int_t | itype, |
Int_t | icount, | ||
Int_t | ichamber, | ||
Int_t | idetelem | ||
) | const |
Get trending histogram
Definition at line 1245 of file AliMTRChEffAnalysis.cxx.
Referenced by DrawEffTrend(), and GetHomogeneusRanges().
|
private |
Check if merged results are present
Definition at line 1291 of file AliMTRChEffAnalysis.cxx.
Referenced by CompareMergedEfficiencies(), DrawSystematicEnvelope(), and WriteMergedToOCDB().
Bool_t AliMTRChEffAnalysis::MergeOutput | ( | TArrayI | runRanges, |
Double_t | averageStatError = 0.01 , |
||
Bool_t | isIndex = kFALSE |
||
) |
Merge efficiency output
Definition at line 1302 of file AliMTRChEffAnalysis.cxx.
|
private |
Definition at line 1352 of file AliMTRChEffAnalysis.cxx.
Referenced by MergeOutput().
|
private |
Dummy.
|
private |
Select the conditions for the efficiency estimation
Definition at line 1400 of file AliMTRChEffAnalysis.cxx.
Referenced by AddSystematicCondition(), and SetEffConditions().
Bool_t AliMTRChEffAnalysis::SetDefaultEffConditions | ( | ) |
Set default conditions for efficiency estimation
Definition at line 1460 of file AliMTRChEffAnalysis.cxx.
Referenced by SetOutList().
Bool_t AliMTRChEffAnalysis::SetEffConditions | ( | const char * | physSel, |
const char * | trigClassName, | ||
const char * | centrality, | ||
Int_t | itrackSel, | ||
Int_t | imatch, | ||
Int_t | imethod | ||
) |
Select the conditions for the efficiency estimation
Definition at line 1468 of file AliMTRChEffAnalysis.cxx.
Referenced by SetDefaultEffConditions().
|
private |
Initialize output list
Definition at line 1475 of file AliMTRChEffAnalysis.cxx.
Referenced by AliMTRChEffAnalysis(), SetResultsFromGrid(), and SetResultsFromWeb().
Bool_t AliMTRChEffAnalysis::SetResultsFromGrid | ( | const char * | runList, |
const char * | path, | ||
const char * | pattern, | ||
const char * | localFileList = "localFileList.txt" , |
||
const char * | outDir = "" , |
||
const char * | directory = "MTR_ChamberEffMap" , |
||
const char * | outputName = "testMTRChamberEff" |
||
) |
Search for results on grid
Definition at line 1504 of file AliMTRChEffAnalysis.cxx.
Bool_t AliMTRChEffAnalysis::SetResultsFromWeb | ( | const char * | runList, |
const char * | path, | ||
const char * | localFileList = "localFileList.txt" , |
||
const char * | outDir = "" , |
||
const char * | directory = "MTR_ChamberEffMap" , |
||
const char * | outputName = "testMTRChamberEff" |
||
) |
Search for results on grid
Definition at line 1512 of file AliMTRChEffAnalysis.cxx.
Bool_t AliMTRChEffAnalysis::WriteMergedToOCDB | ( | const char * | outputCDB = "CDB" | ) | const |
Create the OCDB objects
Definition at line 1520 of file AliMTRChEffAnalysis.cxx.
|
private |
!<! List of outputs
Definition at line 95 of file AliMTRChEffAnalysis.h.
Referenced by AddToList(), CompareMergedEfficiencies(), DrawSystematicEnvelope(), GetAverageStat(), GetTrend(), SetCondition(), SetOutList(), WriteMergedToOCDB(), and ~AliMTRChEffAnalysis().
|
private |
!<! List of conditions for trigger efficiency
Definition at line 96 of file AliMTRChEffAnalysis.h.
Referenced by CompareMergedEfficiencies(), DrawSystematicEnvelope(), HasMergedResults(), MergeOutput(), WriteMergedToOCDB(), and ~AliMTRChEffAnalysis().
|
private |
Definition at line 94 of file AliMTRChEffAnalysis.h.
Referenced by AddToList(), GetAverageStat(), GetHomogeneusRanges(), GetIndexFromRun(), GetRunNumber(), GetTrend(), MergeOutput(), SetCondition(), and ~AliMTRChEffAnalysis().