AliPhysics  e34b7ac (e34b7ac)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMTRChEffAnalysis Class Reference

Output for Trig chamber effieincy. More...

#include <AliMTRChEffAnalysis.h>

Inheritance diagram for AliMTRChEffAnalysis:

Public Member Functions

 AliMTRChEffAnalysis ()
 
 AliMTRChEffAnalysis (const char *localFileList, const char *outputName="testMTRChamberEff")
 
TArrayI GetHomogeneousRanges (Double_t chi2Cut=3, Int_t maxNRanges=4, Double_t minEffVariation=0.005, Bool_t perRPC=kTRUE, TArrayI *forcedChanges=0x0, Double_t minEff=0.85, Double_t maxEff=1.01)
 
TArrayI GetHomogeneousRanges (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
 
void DrawStatContribution (Int_t itype, Int_t irpc, Double_t maxNsigmaOutliers=-1., Double_t minY=0., Double_t maxY=0.15) const
 
Double_t GetAverageStat (Int_t firstRun, Int_t lastRun, Int_t itype=AliTrigChEffOutput::kHboardEff, Bool_t excludePeriphericBoards=kTRUE) const
 
TGraphAsymmErrorsGetOutliers (TGraphAsymmErrors *graph, Double_t maxNsigmas=3.) const
 
TH1GetTrend (Int_t itype, Int_t icount, Int_t ichamber, Int_t idetelem) const
 
TGraphAsymmErrorsGetTrendEff (Int_t itype, Int_t icount, Int_t ichamber, Int_t idetelem) const
 
Int_t CompareEfficiencies (const char *sources, const char *titles, const char *opt, const char *canvasNameSuffix="") const
 
Int_t CompareEfficiencyMethods (const char *source, const char *opt, const char *canvasNameSuffix="") 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) 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
 
Int_t CompareEfficiencies (TObjArray *effMapList, const char *titles, const char *opt, const char *canvasNameSuffix) 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
 
TListGetEffHistoList (AliTrigChEffOutput *trigOut, TObjArray *condition) const
 
TH1GetHisto (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
 
TListGetRunList (const char *runList) const
 
Bool_t GetShortConditionTitles (AliTrigChEffOutput *trigOut, TObjArray &condTitles) const
 
TH1GetSum (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...
 
AliMTRChEffAnalysisoperator= (const AliMTRChEffAnalysis &)
 Dummy. More...
 

Private Attributes

TObjArrayfOutputs
 
TObjArrayfConditions
 !<! List of outputs More...
 
TObjArrayfMergedOutputs
 !<! List of conditions for trigger efficiency More...
 

Detailed Description

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

Author
Diego Stocco dstoc.nosp@m.co@c.nosp@m.ern.c.nosp@m.h, Subatech
Date
Nov 8, 2015

Definition at line 25 of file AliMTRChEffAnalysis.h.

Constructor & Destructor Documentation

AliMTRChEffAnalysis::AliMTRChEffAnalysis ( )

Default Ctor.

Definition at line 73 of file AliMTRChEffAnalysis.cxx.

AliMTRChEffAnalysis::AliMTRChEffAnalysis ( const char *  localFileList,
const char *  outputName = "testMTRChamberEff" 
)

Ctor.

Definition at line 84 of file AliMTRChEffAnalysis.cxx.

AliMTRChEffAnalysis::~AliMTRChEffAnalysis ( )
virtual

Destructor

Definition at line 95 of file AliMTRChEffAnalysis.cxx.

AliMTRChEffAnalysis::AliMTRChEffAnalysis ( const AliMTRChEffAnalysis )
private

Dummy.

Member Function Documentation

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 106 of file AliMTRChEffAnalysis.cxx.

Bool_t AliMTRChEffAnalysis::AddToList ( const char *  filename,
const char *  outputName 
)
private

Add to output list

Definition at line 113 of file AliMTRChEffAnalysis.cxx.

Referenced by SetCondition(), and SetOutList().

TArrayI AliMTRChEffAnalysis::BoardsInRPC ( Int_t  irpc) const
private

Return boards contained in the specified RPC

Definition at line 143 of file AliMTRChEffAnalysis.cxx.

Referenced by DrawEffTrend(), DrawStatContribution(), and GetHomogeneousRanges().

Int_t AliMTRChEffAnalysis::CompareEfficiencies ( const char *  sources,
const char *  titles,
const char *  opt,
const char *  canvasNameSuffix = "" 
) const

Compare efficiency objects

Definition at line 218 of file AliMTRChEffAnalysis.cxx.

Referenced by CompareEfficiencyMethods(), CompareMergedEfficiencies(), and DrawSystematicEnvelope().

Int_t AliMTRChEffAnalysis::CompareEfficiencies ( TObjArray effMapList,
const char *  titles,
const char *  opt,
const char *  canvasNameSuffix 
) const
private

Compare efficiency objects

Definition at line 269 of file AliMTRChEffAnalysis.cxx.

Int_t AliMTRChEffAnalysis::CompareEfficiencyMethods ( const char *  source,
const char *  opt,
const char *  canvasNameSuffix = "" 
) const

Compare efficiency methods

Definition at line 389 of file AliMTRChEffAnalysis.cxx.

void AliMTRChEffAnalysis::CompareMergedEfficiencies ( const char *  opt) const

Definition at line 424 of file AliMTRChEffAnalysis.cxx.

void AliMTRChEffAnalysis::CopyDir ( TDirectory *  source) const
private

copy all objects and subdirs of directory source as a subdir of the current directory

Definition at line 486 of file AliMTRChEffAnalysis.cxx.

Referenced by CopyLocally().

Bool_t AliMTRChEffAnalysis::CopyLocally ( const char *  runList,
const char *  path,
const char *  pattern,
const char *  localFileList,
const char *  outDir,
const char *  directory 
) const
private

Copy files from QA repository or from grid

Definition at line 524 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 624 of file AliMTRChEffAnalysis.cxx.

void AliMTRChEffAnalysis::DrawStatContribution ( Int_t  itype,
Int_t  irpc,
Double_t  maxNsigmaOutliers = -1.,
Double_t  minY = 0.,
Double_t  maxY = 0.15 
) const

Draw statistical contribution of the element efficiency

Definition at line 702 of file AliMTRChEffAnalysis.cxx.

Bool_t AliMTRChEffAnalysis::DrawSystematicEnvelope ( Bool_t  perRPC = kFALSE) const

Get systematic envelop for merged efficiencies

Definition at line 784 of file AliMTRChEffAnalysis.cxx.

Bool_t AliMTRChEffAnalysis::ExecCommand ( TString  command,
Bool_t  prompt 
) const
private

Execute command

Definition at line 964 of file AliMTRChEffAnalysis.cxx.

Referenced by CopyLocally(), and WriteMergedToOCDB().

Double_t AliMTRChEffAnalysis::FitRangesFunc ( Double_t x,
Double_t par 
)
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 subrange above [2*ipar]

Definition at line 987 of file AliMTRChEffAnalysis.cxx.

Referenced by GetHomogeneousRanges().

Double_t AliMTRChEffAnalysis::GetAverageStat ( Int_t  firstRun,
Int_t  lastRun,
Int_t  itype = AliTrigChEffOutput::kHboardEff,
Bool_t  excludePeriphericBoards = kTRUE 
) const

Definition at line 1015 of file AliMTRChEffAnalysis.cxx.

Referenced by MergeRangesForStat().

TList * AliMTRChEffAnalysis::GetEffHistoList ( AliTrigChEffOutput trigOut,
TObjArray condition 
) const
private

Get the list of objects for the efficiency calculation

Definition at line 1066 of file AliMTRChEffAnalysis.cxx.

Referenced by AddToList(), CompareEfficiencyMethods(), CompareMergedEfficiencies(), DrawSystematicEnvelope(), and WriteMergedToOCDB().

Double_t AliMTRChEffAnalysis::GetError ( Double_t  errLow,
Double_t  errHigh 
) const
private

Get error from the asymmetric error on efficiency

Definition at line 1077 of file AliMTRChEffAnalysis.cxx.

Referenced by CompareEfficiencies(), and DrawSystematicEnvelope().

TH1 * AliMTRChEffAnalysis::GetHisto ( TList effHistoList,
Int_t  itype,
Int_t  icount,
Int_t  ichamber 
) const
private

Get histogram

Definition at line 1084 of file AliMTRChEffAnalysis.cxx.

Referenced by GetAverageStat(), and GetTrend().

TArrayI AliMTRChEffAnalysis::GetHomogeneousRanges ( Double_t  chi2Cut = 3,
Int_t  maxNRanges = 4,
Double_t  minEffVariation = 0.005,
Bool_t  perRPC = kTRUE,
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 1092 of file AliMTRChEffAnalysis.cxx.

TArrayI AliMTRChEffAnalysis::GetHomogeneousRanges ( 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 1236 of file AliMTRChEffAnalysis.cxx.

TString AliMTRChEffAnalysis::GetIdentifier ( AliTrigChEffOutput trigOut,
TObjArray condition,
Int_t  itype,
Int_t  icount,
Int_t  ichamber 
) const
private

Get histogram identifier

Definition at line 1354 of file AliMTRChEffAnalysis.cxx.

Int_t AliMTRChEffAnalysis::GetIndexFromRun ( UInt_t  runNumber) const
private

Get index from run number

Definition at line 1373 of file AliMTRChEffAnalysis.cxx.

Referenced by GetHomogeneousRanges().

TGraphAsymmErrors * AliMTRChEffAnalysis::GetOutliers ( TGraphAsymmErrors graph,
Double_t  maxNsigmas = 3. 
) const

Get outliers

Definition at line 1384 of file AliMTRChEffAnalysis.cxx.

Referenced by DrawEffTrend(), and DrawStatContribution().

TList * AliMTRChEffAnalysis::GetRunList ( const char *  runList) const
private

Get run number in string

Definition at line 1417 of file AliMTRChEffAnalysis.cxx.

Referenced by CopyLocally().

Int_t AliMTRChEffAnalysis::GetRunNumber ( Int_t  ipt) const
private

Get run number from graph

Definition at line 1409 of file AliMTRChEffAnalysis.cxx.

Referenced by GetHomogeneousRanges(), and MergeOutput().

Bool_t AliMTRChEffAnalysis::GetShortConditionTitles ( AliTrigChEffOutput trigOut,
TObjArray condTitles 
) const
private

Get short condition titles

Definition at line 1448 of file AliMTRChEffAnalysis.cxx.

Referenced by CompareEfficiencyMethods(), and DrawSystematicEnvelope().

TH1 * AliMTRChEffAnalysis::GetSum ( AliTrigChEffOutput trigOut,
TObjArray condition,
Int_t  itype,
Int_t  icount,
Int_t  ichamber 
) const
private

Get sum histogram

Definition at line 1481 of file AliMTRChEffAnalysis.cxx.

Double_t AliMTRChEffAnalysis::GetThreeOfFour ( TArrayD  eff,
TArrayD  effErr,
Double_t probErr 
) const
private

Get probability of firing 3 chambers out of 4

Definition at line 1551 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 1492 of file AliMTRChEffAnalysis.cxx.

Referenced by DrawStatContribution(), and GetTrendEff().

TGraphAsymmErrors * AliMTRChEffAnalysis::GetTrendEff ( Int_t  itype,
Int_t  icount,
Int_t  ichamber,
Int_t  idetelem 
) const

Get trending histogram

Definition at line 1527 of file AliMTRChEffAnalysis.cxx.

Referenced by DrawEffTrend(), and GetHomogeneousRanges().

Bool_t AliMTRChEffAnalysis::HasMergedResults ( ) const
private

Check if merged results are present

Definition at line 1573 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 1584 of file AliMTRChEffAnalysis.cxx.

TArrayI AliMTRChEffAnalysis::MergeRangesForStat ( TArrayI  runRanges,
Double_t  averageStatError,
Bool_t  excludePeriphericBoards = kTRUE 
) const
private

Definition at line 1643 of file AliMTRChEffAnalysis.cxx.

Referenced by MergeOutput().

AliMTRChEffAnalysis& AliMTRChEffAnalysis::operator= ( const AliMTRChEffAnalysis )
private

Dummy.

Bool_t AliMTRChEffAnalysis::SetCondition ( const char *  physSel,
const char *  trigClassName,
const char *  centrality,
Int_t  itrackSel,
Int_t  imatch,
Int_t  imethod,
Bool_t  isBasic 
)
private

Select the conditions for the efficiency estimation

Definition at line 1691 of file AliMTRChEffAnalysis.cxx.

Referenced by AddSystematicCondition(), and SetEffConditions().

Bool_t AliMTRChEffAnalysis::SetDefaultEffConditions ( )

Set default conditions for efficiency estimation

Definition at line 1751 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 1759 of file AliMTRChEffAnalysis.cxx.

Referenced by SetDefaultEffConditions().

Bool_t AliMTRChEffAnalysis::SetOutList ( const char *  localFileList,
const char *  outputName 
)
private

Initialize output list

Definition at line 1766 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 1795 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 1803 of file AliMTRChEffAnalysis.cxx.

Bool_t AliMTRChEffAnalysis::WriteMergedToOCDB ( const char *  outputCDB = "CDB") const

Create the OCDB objects

Definition at line 1811 of file AliMTRChEffAnalysis.cxx.

Member Data Documentation

TObjArray* AliMTRChEffAnalysis::fMergedOutputs
private

!<! List of conditions for trigger efficiency

Definition at line 100 of file AliMTRChEffAnalysis.h.

Referenced by CompareMergedEfficiencies(), DrawSystematicEnvelope(), HasMergedResults(), MergeOutput(), WriteMergedToOCDB(), and ~AliMTRChEffAnalysis().


The documentation for this class was generated from the following files: