Programs used for uploading constants to DB can be found in the calice_cddata package as part of the CALICE software
upload_pedestal.sh: Example how to upload pedestal constants to the DB
Important!
Remove the --write option at the end of the file to test if everything works, the program will just print all informations on the terminal without writing it to the database. After tests put this option back to write constants to the database!
Make sure of the following things:
- Use the right path to the DB folder, for the example of TB May 2018: dbdir=/cd_calice_Ahc2/TestbeamMay2018
- afsbasedir should set the path to the installation of the programs within the calice_cddata package
- Use the right default values, including for example the proper encoding. Default files with default parameters are located in the zip archive
- The file with the extracted constants has to be in data base format, check before writing!
- For simple values use: WriteSimpleValues, for multiple entries per channel (like pedestalmemorycelloffset) use WriteSimpleValuesVector
If everything works fine, there will be am output like:
writeDB start ---
Will write collection from 2017-10-01-00-00-00-000000000 until 2018-12-31-23-59-59-000000000
DBConnectionMgr::getDBConnection( flccaldb02.desy.de:calice:calicedb:gFd+5Thn:3306)
DBInterface::storeCollection: Sucessfully stored collection in database
----- writeDB end
run_tag.sh: example how to tag a folder
Important!
Naming convention for DB tags: ahc2_<collection>_<yymmdd>[-<i>]
Make sure of the following things:
- Link the same DB folder as for the constants you just uploaded!
- Use a proper description for the constants, how extracted, which data, etc.
If everything works fine, there will be am output like: