Skip to content
Snippets Groups Projects
Commit fe806638 authored by Andrea Formica's avatar Andrea Formica
Browse files

Update COOL.md

parent d83e62f7
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ The data for a given `payload` type are stored in separate folders. But you need
```
This will then show you all folders *contained* in `/LAR/BadChannels`. We have to stress the fact that these are not folders like in your file system, it is just a DB representation of something similar. In reality that name (e.g. `/LAR/BadChannels/EventVeto`) is just a string in a column of a specific table.
Have a look now at a *description* string. It contains some essential informations for Athena. One of those is the meaning of the `interval` for that folder: if you see `<timeStamp>time</timeStamp>` it means that your intervals are using an integer which represents a time (in COOL in general you have nanonseconds since EPOCH). If you see `<timeStamp>run-lumi</timeStamp>` it means that the integer represents a combination of run and lumi block (`run << 32 | lumi_block`).
Have a look now at a *description* string. It contains some essential informations for Athena. One of those is the meaning of the `interval` for that folder: if you see `<timeStamp>time</timeStamp>` it means that your intervals are using an integer which represents a time (in COOL in general you have nanonseconds since EPOCH). If you see `<timeStamp>run-lumi</timeStamp>` it means that the integer represents a combination of run and lumi block (`run << 32 | lumi_block`, this corresponds to a 64 bits integer which is what is stored in COOL tables for run-lumi folders). By shifting a run number 32 bits on the left you will get a 64 bits integer, the lower 32 bits you fill them with the lumi_block part (via the binary 'OR' operator). If you have the COOL 64 bits integer you can go back to run and lumi_block by doing: `run = cool_since >> 32 ; lumi_block = 0x00000000ffffffff & cool_since`.
The analogy with the file system can be noticed also when using another command, `cd`, which emulates (like `ls`) the behavior of unix commands.
......@@ -157,6 +157,20 @@ If you know in advance your data you can restrict the `IOVs` selection by provid
>>> userunlumi
Usage: userunlumi <run1> {<LB1> <run2> <LB2>}
>>> userunlumi 462523 0 482523 0
# Using 'more' you see the full content in the selected range, the since and until times stored in COOL are represented as [run,lumiblock]
>>> more .
Using rawIOV range [1986521158647808,2072420504567808]
Using tag selection: LARBadChannelsBadChannels-RUN2-UPD1-00
[462523,0] - [470584,0) (0) [ChannelSize (UInt32) : 4], [StatusWordSize (UInt32) : 4], [Endianness (UInt32) : 0], [Version (UInt32) : 1], [Blob (Blob64k) : size=2936,chk=110046099]
[470584,0] - [479010,0) (0) [ChannelSize (UInt32) : 4], [StatusWordSize (UInt32) : 4], [Endianness (UInt32) : 0], [Version (UInt32) : 1], [Blob (Blob64k) : size=2936,chk=110046099]
[479010,0] - [479097,0) (0) [ChannelSize (UInt32) : 4], [StatusWordSize (UInt32) : 4], [Endianness (UInt32) : 0], [Version (UInt32) : 1], [Blob (Blob64k) : size=2944,chk=980763771]
[479097,0] - [479360,0) (0) [ChannelSize (UInt32) : 4], [StatusWordSize (UInt32) : 4], [Endianness (UInt32) : 0], [Version (UInt32) : 1], [Blob (Blob64k) : size=2936,chk=110046099]
[479360,0] - [482430,0) (0) [ChannelSize (UInt32) : 4], [StatusWordSize (UInt32) : 4], [Endianness (UInt32) : 0], [Version (UInt32) : 1], [Blob (Blob64k) : size=2944,chk=980763771]
[482430,0] - [482463,0) (0) [ChannelSize (UInt32) : 4], [StatusWordSize (UInt32) : 4], [Endianness (UInt32) : 0], [Version (UInt32) : 1], [Blob (Blob64k) : size=2944,chk=980763771]
[482463,0] - [485090,0) (0) [ChannelSize (UInt32) : 4], [StatusWordSize (UInt32) : 4], [Endianness (UInt32) : 0], [Version (UInt32) : 1], [Blob (Blob64k) : size=2944,chk=980763771]
### The same data can be browsed via 'less' command, this time you see the stored values as since and until, corresponding to (run << 32 | lumiblock)
>>> less .
Using rawIOV range [1986521158647808,2072420504567808]
Using tag selection: LARBadChannelsBadChannels-RUN2-UPD1-00
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment