![]() |
AliPhysics
v5-07-15-01 (b3d7633)
|
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, 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, 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 |
TString | GetIdentifier (AliTrigChEffOutput *trigOut, TObjArray *condition, Int_t itype, Int_t icount, Int_t ichamber) 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 71 of file AliMTRChEffAnalysis.cxx.
AliMTRChEffAnalysis::AliMTRChEffAnalysis | ( | const char * | localFileList, |
const char * | outputName = "testMTRChamberEff" |
||
) |
Ctor.
Definition at line 82 of file AliMTRChEffAnalysis.cxx.
|
virtual |
Destructor
Definition at line 93 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 104 of file AliMTRChEffAnalysis.cxx.
|
private |
Add to output list
Definition at line 111 of file AliMTRChEffAnalysis.cxx.
Referenced by 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 644 of file AliMTRChEffAnalysis.cxx.
|
private |
Execute command
Definition at line 840 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 820 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 863 of file AliMTRChEffAnalysis.cxx.
Referenced by MergeRangesForStat().
|
private |
Get the list of objects for the efficiency calculation
Definition at line 912 of file AliMTRChEffAnalysis.cxx.
Referenced by CompareMergedEfficiencies(), and WriteMergedToOCDB().
|
private |
Get error from the asymmetric error on efficiency
Definition at line 923 of file AliMTRChEffAnalysis.cxx.
Referenced by CompareEfficiencies(), and DrawSystematicEnvelope().
TArrayI AliMTRChEffAnalysis::GetHomogeneusRanges | ( | Double_t | chi2Cut = 3 , |
Int_t | maxNRanges = 4 , |
||
Double_t | minEffVariation = 0.005 , |
||
Double_t | minEff = 0.85 , |
||
Double_t | maxEff = 1.01 |
||
) |
Get run ranges with an efficiency compatible with constant
Definition at line 930 of file AliMTRChEffAnalysis.cxx.
TArrayI AliMTRChEffAnalysis::GetHomogeneusRanges | ( | TGraphAsymmErrors * | trendGraph, |
Double_t | chi2Cut = 3 , |
||
Int_t | maxNRanges = 4 , |
||
Double_t | minEffVariation = 0.005 , |
||
Bool_t | returnIndex = kFALSE |
||
) |
Get run ranges with an efficiency compatible with constant
Definition at line 1007 of file AliMTRChEffAnalysis.cxx.
|
private |
Get histogram identifier
Definition at line 1063 of file AliMTRChEffAnalysis.cxx.
Referenced by GetTrend().
TGraphAsymmErrors * AliMTRChEffAnalysis::GetOutliers | ( | TGraphAsymmErrors * | graph, |
Double_t | maxNsigmas = 3. |
||
) | const |
|
private |
Get run number in string
Definition at line 1115 of file AliMTRChEffAnalysis.cxx.
Referenced by CopyLocally().
|
private |
Get run number from graph
Definition at line 1107 of file AliMTRChEffAnalysis.cxx.
Referenced by GetHomogeneusRanges(), and MergeOutput().
|
private |
Get sum histogram
Definition at line 1146 of file AliMTRChEffAnalysis.cxx.
Referenced by DrawSystematicEnvelope(), GetAverageStat(), and GetTrend().
|
private |
Get probability of firing 3 chambers out of 4
Definition at line 1220 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 1157 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 1196 of file AliMTRChEffAnalysis.cxx.
Referenced by DrawEffTrend(), and GetHomogeneusRanges().
|
private |
Check if merged results are present
Definition at line 1242 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 1253 of file AliMTRChEffAnalysis.cxx.
|
private |
Definition at line 1300 of file AliMTRChEffAnalysis.cxx.
Referenced by MergeOutput().
|
private |
Dummy.
|
private |
Select the conditions for the efficiency estimation
Definition at line 1342 of file AliMTRChEffAnalysis.cxx.
Referenced by AddSystematicCondition(), and SetEffConditions().
Bool_t AliMTRChEffAnalysis::SetDefaultEffConditions | ( | ) |
Set default conditions for efficiency estimation
Definition at line 1390 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 1398 of file AliMTRChEffAnalysis.cxx.
Referenced by SetDefaultEffConditions().
|
private |
Initialize output list
Definition at line 1405 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 1434 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 1442 of file AliMTRChEffAnalysis.cxx.
Bool_t AliMTRChEffAnalysis::WriteMergedToOCDB | ( | const char * | outputCDB = "CDB" | ) | const |
Create the OCDB objects
Definition at line 1450 of file AliMTRChEffAnalysis.cxx.
|
private |
!<! List of outputs
Definition at line 92 of file AliMTRChEffAnalysis.h.
Referenced by CompareMergedEfficiencies(), DrawSystematicEnvelope(), GetAverageStat(), GetTrend(), SetCondition(), SetOutList(), WriteMergedToOCDB(), and ~AliMTRChEffAnalysis().
|
private |
!<! List of conditions for trigger efficiency
Definition at line 93 of file AliMTRChEffAnalysis.h.
Referenced by CompareMergedEfficiencies(), DrawSystematicEnvelope(), HasMergedResults(), MergeOutput(), WriteMergedToOCDB(), and ~AliMTRChEffAnalysis().
|
private |
Definition at line 91 of file AliMTRChEffAnalysis.h.
Referenced by AddToList(), GetAverageStat(), GetHomogeneusRanges(), GetRunNumber(), GetTrend(), MergeOutput(), and ~AliMTRChEffAnalysis().