Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CCDB] How to run with custom CCDB objects #42

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/o2dpgworkflow/ccdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,15 @@ export ALICEO2_CCDB_LOCALCACHE=/path/to/snapshot_cache
**NOTE**: Make sure to set this to an absolute path.

This mechanism can also be useful to run a simulation without the need to access the CCDB at all: Simply refer to or copy a snapshot directory from a previous simulation run to the directory you are running the current simulation in.

**NOTE**: No check is done on whether the timestamp of your simulation corresponds to the cached objects; they will simply be used as-is and are only identified by their path.

## Use custom objects/snapshots

Using the caching mechanism is not only useful to avoid redundant queries to the CCDB but it can also be used to inject custom objects into your workflow that would otherwise be fetched based on the timestamp.
As an example, you might be interested in some specific alignment at a given timestamp `<timestamp>`. As said before, that might not coincide with the timestamp of the simulation itself.
So let's assume your cache directory is at `${ALICEO2_CCDB_LOCALCACHE}` and another specific alignment should be take for TPC. Before starting the simulation, run
```bash
${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch -p TPC/Calib/Align --timestamp <timestamp> -d ${ALICEO2_CCDB_LOCALCACHE}
```
Now, you are good to run the simulation and the desired TPC alignment will be used.
Loading