AliRoot Core  3dc7879 (3dc7879)
aliExternalInfo.C File Reference

Demo usage of the information from the AliExternalInfo and visualization using the TStatToolkit, AliTreePlayer and AliDrawStyle. More...

#include "TString.h"
#include "TObjArray.h"
#include "TTree.h"
#include "AliExternalInfo.h"
#include "TLatex.h"
#include "TLeaf.h"
#include "TSystem.h"
#include "TStatToolkit.h"
#include "AliTreePlayer.h"
#include "TLegend.h"
Include dependency graph for aliExternalInfo.C:

Go to the source code of this file.

Functions

void drawLogbook (TString period, TString pass, TString runSelection="", TString varSelection="runDuration:totalEventsPhysics:totalNumberOfFilesMigrated")
 
void drawLogbookMultiExpr (TString period, TString pass, TString runSelection="", TString varSelection="runDuration;totalEventsPhysics/1000;totalNumberOfFilesMigrated:run")
 AliExternalInfo - MultiGraph example. More...
 
void drawLogbookMultiCut (TString period, TString pass, TString runSelection="", TString varSelection="LHCperiod:runDuration:totalEventsPhysics:totalNumberOfFilesMigrated")
 
void makeHTMLPage (TString period, TString pass, TString runSelection, TString varSelection, TString source)
 
void CacheTestMCProductions (TString dataType, const char *fileList=NULL)
 Cache MC production trees, store summary information in formated text files -> root trees. More...
 
void CacheTrendingProductions (TString dataType)
 Cache MC production information. More...
 
void CacheMCProductionInfo ()
 
void CheckProductions ()
 This is example function. More...
 
void ExportMCAnchorJSON ()
 

Variables

AliExternalInfo info
 
TLatex latex
 

Detailed Description

Demo usage of the information from the AliExternalInfo and visualization using the TStatToolkit, AliTreePlayer and AliDrawStyle.

Author
Marian Ivanov

Demo usage of the information from the AliExternalInfo and visualization using the TStatToolkit, AliTreePlayer and AliDrawStyle

See documentation in following functions:

  • logbook/QA/RCT multi figure export multipad
  • logbook/QA/RCT multi figure export multigraph
  • TODO: logbook/QA/RCT multi figure export multiselection
  • TODO: makeHtml
  • TODO: add period pass to the legend in standard plots

Definition in file aliExternalInfo.C.

Function Documentation

void CacheMCProductionInfo ( )

Cache MC production information TODO - reset cache timeout before

Definition at line 275 of file aliExternalInfo.C.

void CacheTestMCProductions ( TString  dataType,
const char *  fileList = NULL 
)

Cache MC production trees, store summary information in formated text files -> root trees.

Parameters
dataType-
fileList

Definition at line 158 of file aliExternalInfo.C.

void CacheTrendingProductions ( TString  dataType)

Cache MC production information.

Definition at line 210 of file aliExternalInfo.C.

void CheckProductions ( )

This is example function.

export production in json format

Definition at line 283 of file aliExternalInfo.C.

void drawLogbook ( TString  period,
TString  pass,
TString  runSelection = "",
TString  varSelection = "runDuration:totalEventsPhysics:totalNumberOfFilesMigrated" 
)

AliExternalInfo demo - Generic draw of the logbook information - per period external source .e.g "QA.TPC;QA.TRD;QA.ITS;MonALISA.RCT" could be used in selection.

Parameters
period
pass
runSelection
varSelection

Example usage:

1 .L $AliRoot_SRC/STAT/Macros/aliExternalInfo.C+
2 drawLogbook("LHC15o","pass1","QA.TPC.meanTPCncl>0","runDuration:totalEventsPhysics:totalNumberOfFilesMigrated:MonALISA.RCT.tpc_value");
3 drawLogbook("LHC10h","pass2","totalEventsPhysics>1000&&totalNumberOfFilesMigrated>20","runDuration:totalEventsPhysics:totalNumberOfFilesMigrated:MonALISA.RCT.tpc_value");
4 drawLogbook("LHC11h","pass2","totalEventsPhysics>1000&&totalNumberOfFilesMigrated>20","runDuration:totalEventsPhysics:totalNumberOfFilesMigrated:MonALISA.RCT.tpc_value");

Definition at line 62 of file aliExternalInfo.C.

void drawLogbookMultiCut ( TString  period,
TString  pass,
TString  runSelection = "",
TString  varSelection = "LHCperiod:runDuration:totalEventsPhysics:totalNumberOfFilesMigrated" 
)

drawLogbookMultiCut - example of usage of multigraph

Parameters
period
pass
runSelection
varSelectionTODO - implemnetation missing. Only hardwired selection

Definition at line 124 of file aliExternalInfo.C.

void drawLogbookMultiExpr ( TString  period,
TString  pass,
TString  runSelection = "",
TString  varSelection = "runDuration;totalEventsPhysics/1000;totalNumberOfFilesMigrated:run" 
)

AliExternalInfo - MultiGraph example.

Parameters
period- period - e.g LHC15o
pass- reconstruction pass - e.g pass2 (needed in case QA selection)
runSelection- runSelection (standard tree cut )
varSelection- array of variables to show

Example usage:

1  .L $AliRoot_SRC/STAT/Macros/aliExternalInfo.C+
2 drawLogbookMultiExpr("LHC15o","pass1", "totalNumberOfFilesMigrated>2000", "runDuration;totalEventsPhysics/1000;totalNumberOfFilesMigrated:run");
3 drawLogbookMultiExpr("LHC15o","pass1", "totalNumberOfFilesMigrated>2000&&QA.TPC.meanMIP>40", "runDuration;totalEventsPhysics/1000;totalNumberOfFilesMigrated:run");

Definition at line 107 of file aliExternalInfo.C.

void ExportMCAnchorJSON ( )

Export MC Anchor Guess + derived information in JSON format To be used for the web browsing

Definition at line 298 of file aliExternalInfo.C.

void makeHTMLPage ( TString  period,
TString  pass,
TString  runSelection,
TString  varSelection,
TString  source 
)

makeHTMLPage - make a standard html page

Parameters
period- period e.g. : LHC15o
pass- reconstruction pass e.g. : pass1
runSelection- run selection cut e.g. : MonALISA.RCT.tpc_value>0&&QA.TPC.meanTPCncl>0
varSelection- list of variables to export : run:runDuration:totalEventsPhysics:totalNumberOfFilesMigrated:QA.TPC.meanMIP:QA.TPC.meanMIP
source"- source list e.g: : Logbook;QA.TPC;QA.TRD;QA.ITS;MonALISA.RCT

Example usage:

1  .L $AliRoot_SRC/STAT/Macros/aliExternalInfo.C
2  makeHTMLPage("LHC15o","pass1", "QA.TPC.meanTPCncl>0", "run:runDuration:totalEventsPhysics:totalNumberOfFilesMigrated:QA.TPC.meanMIP:QA.TPC.meanMIP", "Logbook;QA.TPC;QA.TRD;QA.ITS;MonALISA.RCT")
3  makeHTMLPage("LHC15o","pass1", "QA.TPC.meanTPCncl>0", "run:runDuration:totalEventsPhysics:ocdbStatusCounter:ocdbHVStatusCounter:TPC_Status:meanTPCncl_Status:PID_Status:DCAz_Status:DCAr_Status:tpcItsMatch_Status", "Logbook;QA.TPC;QA.TRD;QA.ITS;MonALISA.RCT")
4  makeHTMLPage("LHC15o","pass1", "QA.TPC.meanTPCncl>0", "run:runDuration:totalEventsPhysics:ocdbStatusCounter:ocdbHVStatusCounter:MonALISA.RCT.tpc_value:rctMismatch:TPC_Status:meanTPCncl_Status:PID_Status:DCAz_Status:DCAr_Status:tpcItsMatch_Status", "Logbook;QA.TPC;QA.TRD;QA.ITS;MonALISA.RCT")
5 //
6  makeHTMLPage("LHC15o","pass1", "QA.TPC.meanTPCncl>0", "run:runDuration:#%d{year}/%d{period.GetName()}/%d{pass.GetName()}/%d{run}:totalEventsPhysics:totalNumberOfFilesMigrated:QA.TPC.meanMIP", "Logbook;QA.TPC;")

Definition at line 147 of file aliExternalInfo.C.

Variable Documentation

The code can be used as it is. It will be running as part of UnitTest

Example usage

Load library and define some example variables

1 @return
2  AliDrawStyle::SetDefaults();
3  AliDrawStyle::ApplyStyle("figTemplate");
4 
5  .L $AliRoot_SRC/STAT/Macros/aliExternalInfo.C+
6  // define some example selection and copy past the code below
7  TString period="LHC15o", pass="pass1", runSelection="QA.TPC.meanTPCncl>0", varSelection="run:runDuration:totalEventsPhysics:totalNumberOfFilesMigrated:QA.TPC.meanMIP";
8  TString source="Logbook;QA.TPC;QA.TRD;QA.ITS;MonALISA.RCT;QA.EVS";

Definition at line 44 of file aliExternalInfo.C.

Referenced by AliSysInfo::AddCallBack(), AliESDMuonTrack::AddMuonTrigDevSignInfo(), AliTreePlayerTest(), CacheMCProductionInfo(), AliExternalInfo::CacheProduction(), CacheTestMCProductions(), CacheTrendingProductions(), AliFMDMap::CheckNeedUShort(), CheckProductions(), CompareHits(), ExportMCAnchorJSON(), AliExternalInfo::GetCPassTree(), AliTRDPIDResponse::GetNumberOfSigmas(), AliTPCTransform::GetReverseTransformInfo(), AliESDtrack::GetTOFchi2(), AliMUONESDInterface::GetTriggers(), AliTPCdEdxInfo::GetWeightedMean(), LoadFiles(), loadTree(), main(), AliTPCCalibQAChecker::QualityColor(), SendToAmoreDB(), AliQAManager::SetEventInfo(), AliTMinuitToolkit::SetValues(), testConvertTree(), testExportBinary(), testExportClass(), TestMCProduction(), TestProductionAccess(), testSelectMetadata(), testselectWhatWhereOrderByForTRD(), TPCDataVolumeDemo(), and AliTPCPid::~AliTPCPid().