AliRoot Core  ee782a0 (ee782a0)
QAtrendingFitExample.C File Reference

Go to the source code of this file.

Functions

void loadTree ()
 Load tree and defining derived information (TTree aliases) and metadata. More...
 
void cacheTree ()
 
void RegisterFitters ()
 
void makeMVAFits ()
 
void makeMVABootstrapMI (Int_t nregression=10)
 
void loadMVAreaders ()
 
void loadMVAreadersBootstrap ()
 
void QAtrendingFitExample ()
 

Variables

Bool_t useDNN =kFALSE
 
TTree * tree = 0
 
TTree * treeCache =0
 

Function Documentation

void cacheTree ( )

CacheTree input variables to tree format usable by TMVA

TMVA can not work with friend trees with indeces, respec. with array of the measurements, resp aliases and functions

  • input "flat tree" for MVA learning to be created with variables of interest
  • AliTreePlayer::MakeCacheTree to create flat input tree for TMVA

Definition at line 45 of file QAtrendingFitExample.C.

Referenced by QAtrendingFitExample().

void loadMVAreaders ( )

Definition at line 107 of file QAtrendingFitExample.C.

void loadMVAreadersBootstrap ( )

Load array of regression -used later in the array regression evaluation (mean, median, rms)

Definition at line 116 of file QAtrendingFitExample.C.

Referenced by QAtrendingFitExample().

void loadTree ( )

Load tree and defining derived information (TTree aliases) and metadata.

Definition at line 26 of file QAtrendingFitExample.C.

Referenced by QAtrendingFitExample().

void makeMVABootstrapMI ( Int_t  nregression = 10)

Emulation of the bootstrap - training repeated several time

  • TODO - Implement real bootstrap ( random sampling with replacement + other methods) in the TMVA (to check with ROOT)
  • TODO - DNN example - TO USE DNN (Deep neural network) BLASS or CBLASS library has to be enabled in ROOT. This is not the case for the default aliBuild recipies

Definition at line 93 of file QAtrendingFitExample.C.

Referenced by QAtrendingFitExample().

void makeMVAFits ( )

Make MVA regression example

Definition at line 81 of file QAtrendingFitExample.C.

void QAtrendingFitExample ( )

QAtrendingFitExample

0.) Remove regression file

1.) Load Input data

2.) Cache tree - TMVA expect variables - not functions and aliases

3.) Register fitters

4.) Make bootstrap regression

5.) Load array of regression readers

6.) Draw example plots

6.1 Correlation plot - mean regression of resolutionMIP vs observed resolutionMIP

1 tree->Draw("AliNDFunctionInterface::EvalMVAStat(0,1,interactionRate, bz0,qmaxQASum,qmaxQASumR):resolutionMIP:run","run==QA.EVS.run","colz");

6.2 Draw ration regression/fit as function of run

1 tree->Draw("AliNDFunctionInterface::EvalMVAStat(0,1,interactionRate, bz0,qmaxQASum,qmaxQASumR):resolutionMIP:run","run==QA.EVS.run","colz");

6.3 compare of the regression RMS for method array 0 and method array1

1 tree->Draw("AliNDFunctionInterface::EvalMVAStat(0,1,interactionRate, bz0,qmaxQASum,qmaxQASumR):resolutionMIP:run","run==QA.EVS.run","colz");

Definition at line 123 of file QAtrendingFitExample.C.

void RegisterFitters ( )

Register example methods used for regression

  • BDT and MLP example
  • DNN - for the moment not used as need BLASS library - not in default AliRoot
    • Naive adaptation of the DNN configuration from the ROOT tutorials TMVARegression.C -
    • slow 100 times smaller than MLP
    • lead to floating point exception

Definition at line 56 of file QAtrendingFitExample.C.

Referenced by QAtrendingFitExample().

Variable Documentation

TTree* tree = 0

Definition at line 23 of file QAtrendingFitExample.C.

Referenced by AddChains(), AliTPCCalPad::AddFriend(), AliTPCCalibViewer::AddReferenceTree(), AliBaseCalibViewer::AddReferenceTree(), AliBaseCalibViewer::AliBaseCalibViewer(), AliDCSSensorArray::AliDCSSensorArray(), AliEMCALSensorTempArray::AliEMCALSensorTempArray(), AliPainterTest_GenerateDoxyImages(), AliPainterTest_SetLimits(), AliTPCCalibViewer::AliTPCCalibViewer(), AliTPCSensorTempArray::AliTPCSensorTempArray(), AliTreePlayer::AliTreePlayer(), AnalyzeESDtracks(), AliExternalInfo::Cache(), CacheMCProductionInfo(), CacheTestMCProductions(), cacheTree(), CacheTrendingProductions(), AliMUONTriggerStoreV1::CanConnect(), AliMUONTriggerTrackStoreV1::CanConnect(), AliMUONDigitStoreVImpl::CanConnect(), AliMUONHitStoreV1::CanConnect(), AliMUONTrackStoreV1::CanConnect(), AliMUONClusterStoreV2::CanConnect(), AliMUONClusterStoreV1::CanConnect(), AliMUONCheck::CheckESD(), AliXRDPROOFtoolkit::CheckTreeInFile(), AliTreeFormulaF::Compile(), AliMUONChamberCalibrationTask::ConnectInputData(), AliSegmentArray::ConnectTree(), AliStack::ConnectTree(), AliMCEvent::ConnectTreeTR(), AliMUONDigitStoreV1::Create(), AliTPCCorrection::CreateDistortionTree(), AliTPCSpaceCharge3DDriftLine::CreateDistortionTree(), drawd(), DrawDistortionMaps(), drawmerged(), DrawOccupancy(), DrawXsection(), AliOCDBtoolkit::DumpOCDBAsTxt(), AliQADataMakerSim::Exec(), AliQADataMakerRec::Exec(), ExportMCAnchorJSON(), FillVar(), Fit1(), Fit2(), Fit2I(), AliTPCEfield::FitField(), FitI1(), for(), GenerLandau(), AliTPCCalPad::GetCalROC(), AliMUONTreeManager::GetClassName(), AliTPCCorrection::GetCorrScaleFactor(), AliStack::GetCurrentTrack(), AliExternalInfo::GetDefaultConfig(), AliTPCclusterFast::GetDigitsMax(), GetESDTree(), AliTMinuitToolkit::GetFitFunctionAsAlias(), AliVEventHandler::GetInputFileName(), TStatToolkit::GetMetadata(), AliTMinuitToolkit::GetStreamer(), AliAODEvent::GetTrdTrack(), AliSegmentArray::GetTree(), AliExternalInfo::GetTree(), GetTree(), AliExternalInfo::GetTreeAliVersRD(), AliMCEvent::Header(), AliDummyHandler::Init(), AliSelector::Init(), AliRecoInputHandler::Init(), Init(), AliAODInputHandler::Init(), AliESDInputHandler::Init(), AliReconstruction::Init(), AliSysInfo::IsDisabled(), TTreeSRedirector::IsDisabled(), AliQAManager::IsSaveData(), AliXRDPROOFtoolkit::JoinTreesIndex(), AliESDInputHandlerRP::LoadEvent(), AliRunLoader::LoadHeader(), AliNanoAODTrackMapping::LoadInstance(), loadTree(), AliCDBStorage::LoadTreeFromFile(), AliTreePlayer::LoadTrees(), AliRunLoader::LoadTrigger(), TStatToolkit::MakeAnchorAlias(), MakeChain(), TStatToolkit::MakeCombinedAlias(), AliTPCGenDBTemp::MakeConfig(), AliDCSGenDB::MakeConfig(), AliMUONPedestal::MakeControlHistos(), AliSysInfo::MakeDUTree(), MakeFakeDigits(), AliNDLocalRegression::MakeFit(), MakeFits(), MakeFitTree(), AliRunLoader::MakeHeader(), makeHTMLPage(), MakeLaserTree(), MakePicDy(), MakePickDy(), MakeStat(), AliSysInfo::MakeTree(), AliTreeLoader::MakeTree(), AliSegmentArray::MakeTree(), MakeTree(), AliRunLoader::MakeTree(), AliTPCCalibViewer::MakeTree(), AliXRDPROOFtoolkit::MakeTreeFromList(), AliRunLoader::MakeTrigger(), MergeMuonLight(), MUONefficiency(), MUONmassPlot(), MUONTriggerEfficiency(), MUONTriggerEfficiencyPt(), AliFMDInput::operator=(), AliTreePlayer::printSelectedTreeInfo(), QAtrendingFitExample(), ReadESD(), AliTPCGenDBTemp::ReadList(), AliTPCSensorTemp::ReadList(), AliDCSGenDB::ReadList(), AliEMCALSensorTemp::ReadList(), AliTPCGenDBTemp::ReadListTree(), AliDCSGenDB::ReadListTree(), ReadRecoCocktail(), AliEMCALBiasAPD::ReadRootBiasAPDInfo(), AliEMCALCalibAbs::ReadRootCalibAbsInfo(), AliEMCALCalibMapAPD::ReadRootCalibMapAPDInfo(), AliEMCALCalibReference::ReadRootCalibReferenceInfo(), AliEMCALCalibTempCoeff::ReadRootCalibTempCoeffInfo(), AliTPCSensorTempArray::ReadSensors(), AliEMCALSensorTempArray::ReadSensors(), ReadTree(), AliNDFunctionInterface::registerMethod(), reproduceIndexProblem(), AliESDEvent::ResetCascades(), XSection::Run(), XSections::Run(), AliReconstruction::RunSPDTrackleting(), AliReconstruction::RunTracking(), AliCentralTrigger::RunTrigger(), AliTreePlayer::selectTreeInfo(), AliTreePlayer::selectWhatWhereOrderBy(), AliDetector::SetBufferSize(), AliDCSGenDB::SetConfTree(), AliDCSSensor::SetEndTime(), AliInputEventHandler::SetInputTree(), AliTPCClusterParam::SetInstance(), AliTPCSensorTemp::SetNum(), AliEMCALSensorTemp::SetNum(), AliTPCcalibDButil::SetRefALTROData(), AliTreeTrending::SetTree(), AliNDLocalRegression::SetTree(), AliDetector::SetTreeAddress(), AliTPCCalibQAChecker::SetTreeChecker(), SpectraMonitor(), Store(), AliSysInfo::Test(), test1(), test3(), test5(), testExportBinary(), testExportClass(), TestLTM(), testMerge(), TestProductionAccess(), testRead(), testSparse(), AliModule::TreeTR(), AliMUONDataInterface::TriggerStore(), UnitTestAliTPCCalPadTree(), AliSelector::Version(), AliReconstruction::Version(), AliTreeLoader::WriteData(), WriteESD(), AliRunLoader::WriteHeader(), AliEMCALBiasAPD::WriteRootBiasAPDInfo(), AliEMCALCalibAbs::WriteRootCalibAbsInfo(), AliEMCALCalibMapAPD::WriteRootCalibMapAPDInfo(), AliEMCALCalibReference::WriteRootCalibReferenceInfo(), AliEMCALCalibTempCoeff::WriteRootCalibTempCoeffInfo(), WriteTree(), AliRunLoader::WriteTrigger(), and AliVEvent::~AliVEvent().

TTree* treeCache =0

Definition at line 24 of file QAtrendingFitExample.C.

Referenced by makeMVABootstrapMI(), and makeMVAFits().

Bool_t useDNN =kFALSE

Definition at line 22 of file QAtrendingFitExample.C.

Referenced by makeMVABootstrapMI().