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

The macro writes a new GRP/CTP/Config trigger configuration file from the GRP/CTP/MUON.cfg trigger descriptor, corresponding to a run where only MUON is used as a trigger detector. More...

#include "ARVersion.h"
#include "AliCDBManager.h"
#include "AliCDBStorage.h"
#include "AliCDBEntry.h"
#include "AliCDBId.h"
#include "AliCDBMetaData.h"
#include "AliTriggerConfiguration.h"
#include "AliTriggerUtils.h"
#include "AliSimulation.h"
#include <TROOT.h>
#include <TString.h>
#include <TSystem.h>
Include dependency graph for UpdateCDBCTPConfig.C:

Go to the source code of this file.

## Functions

void UpdateCDBCTPConfig (Bool_t check=false)

## Detailed Description

The macro writes a new GRP/CTP/Config trigger configuration file from the GRP/CTP/MUON.cfg trigger descriptor, corresponding to a run where only MUON is used as a trigger detector.

The macro writes a new GRP/CTP/Config trigger configuration file from the GRP/CTP/MUON.cfg trigger descriptor, corresponding to a run where only MUON is used as a trigger detector. The compatibility is check against the Config.C used in the simulation (which means that the MUON detector must be there). When "check" is "true", the macro only shows the last CTP configuration stored in the GRP. This is necessary because at the first step of the simulation (digits) the trigger configuration is guessed from the detectors defined in the Config.C, while the reconstruction is performed in a second separate step, having no more knowledge of the Config.C file. This has to be done before starting the simulations, only once after the installation of AliRoot:


.L \$ALICE_ROOT/MUON/macros/UpdateCDBCTPConfig.C+
UpdateCDBCTPConfig(1);    // just checking
UpdateCDBCTPConfig();     // update the GRP/CDB entry


AliRoot comes with a default entry corresponding to a pp trigger. In this case, at the reconstruction phase error messages will appear (without breaking the reconstruction):
E-AliCentralTrigger::CheckTriggeredDetectors: Wrong cluster mask from trigger classes (7ffff), expecting (20c00)! Loaded trigger configuration is possibly wrong!

Definition in file UpdateCDBCTPConfig.C.

## Function Documentation

 void UpdateCDBCTPConfig ( Bool_t check = false )

Definition at line 68 of file UpdateCDBCTPConfig.C.