Skip to content

TOF-Group-Utility-Repository/LocalTestLEGOTrain

Repository files navigation

Code comes from https://github.com/mfasDa/legotrain_helpers and https://twiki.cern.ch/twiki/bin/viewauth/ALICE/AnalysisTrains#Local_train_test

How to run locally an already existing LEGO train

  1. Go to https://alimonitor.cern.ch/trains/ and choose the train you would like to test, i.e. PWGZZ/MCGen_pp/2351_20220326-2110

  2. Download the configuration files of this train:

. downloadtraintest  PWGZZ/MCGen_pp/2351_20220326-2110
  1. Generate the macros for launching the train in test mode:
. generatetraintest
  1. Run the train:
. runtraintest

How to run locally a new LEGO train to test a private task (even not pushed in AP yet!)

  1. Go to https://alimonitor.cern.ch/trains/ and choose a baseline train which is similar to the one you would like to test, i.e. PWGZZ/MCGen_pp/2351_20220326-2110

  2. Download the configuration files of this train:

. downloadtraintest  PWGZZ/MCGen_pp/2351_20220326-2110
  1. Change the configuration file MLTrainDefinition.cfg with you task name and location. Please note that between #Module.StartConfig and #Module.EndConfig you should put your task customization as it is usual in ALICE wagons, if no customization is needed leave an empty line.

  2. Generate the macros for launching the train in test mode:

. generatetraintest
  1. If your task is not already embedded in AliPhysics, change the lego_train.C steering macro by including your task at the top and by compiling the source, i.e.
// analysis source to be compiled at runtime (if any)
gROOT->LoadMacro("AliAnalysisTaskMCPredictionsStrgVsMultVsZDC.cxx++g");
  1. Run the train:
. runtraintest

About

Utility to test a LEGO train locally

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published