Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /macros/CDBTest/README is written in an unsupported language. File is not indexed.

0001 Setup:
0002 
0003 Please do not use the writing/reading to the cdb (the mycdb.jsan stuff), it's not needed right now - your job ends when you have created the file and read it back)
0004 
0005 The calibration files will be written and read to the local directory (./)
0006 
0007 set NOPAYLOADCLIENT_CONF to mycdb.json (you need to stay in this dir so the reading/writing work so you don't need the full path):
0008 
0009 setenv NOPAYLOADCLIENT_CONF mycdb.json
0010 or when using bash
0011 export NOPAYLOADCLIENT_CONF=mycdb.json
0012 
0013 TestCDBTTree.C creates a small CDBTTree object and writes it to test.root
0014 
0015 TestCDBHistos.C creates a few histograms and writes them to test.root
0016 
0017 Do not mix CDBTTree and CDBHistos, you can only save only one or the other (likely, have't tried that)
0018 
0019 
0020 TestCDBInsert.C inserts test.root into the cdb using your configuration. Modify this macro to use your own global tag. The macro will give errors when you run it multiple times because the global tag and the payload type exist now. Don't worry about those.
0021 
0022 TestCDBRead.C reads the file back from the cdb trying different time stamps. The limited validity range does not work yet
0023 
0024 CDBUtils.C gives you some utilities to interact with the CDB (create global tags and payloads, set global tags, list tags and payloads etc.)
0025