/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* $Id$ */ /// \ingroup macros /// \file UpdateCDBCTPConfig.C /// \brief 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/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): \n /// /// E-AliCentralTrigger::CheckTriggeredDetectors: Wrong cluster mask from trigger /// classes (7ffff), expecting (20c00)! Loaded trigger configuration is possibly wrong! /// /// \author B. Vulpescu, LPC Clermont-Ferrand #if !defined(__CINT__) || defined(__MAKECINT__) #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