Skip to content

Commit 2f2c81a

Browse files
authored
Merge pull request #54 from hsf-training/conditions-database-example
Corrections
2 parents f7f2ef5 + ec2b90f commit 2f2c81a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_episodes/06-conditions-database.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ A **Global Tag** is a label that identifies a consistent set of conditions data.
4747

4848
- A **Global Tag** serves as a grouping mechanism that maps to multiple payloads, which are organized by **PayloadType**. Each **PayloadType** groups related payloads (e.g., alignment or calibration constants) to simplify data retrieval.
4949
- Each **Payload** represents a specific piece of conditions data and is valid for the **Interval of Validity (IOV)** associated with it. This ensures that the correct payload is applied for a given run or timestamp.
50-
- During data processing, the Conditions Database (CDB) retrieves the appropriate payload by matching the IOV to the required run or timestamp, ensuring consistency and accuracy.
50+
- During data processing, the CDB retrieves the appropriate payload by matching the **IOV** to the required run or timestamp, ensuring consistency and accuracy.
5151

5252
```mermaid
5353
erDiagram
54-
GlobalTag ||--o{ PayloadType : has
55-
PayloadType ||--o{ PayloadIOV : contains
54+
GlobalTag ||--o{ PayloadType : groups
55+
PayloadType ||--o{ PayloadIOV : groups
5656
```
5757

5858
For simplification, in the following example, we work with three objects:
5959

60-
1. **GlobalTag**: Serves as a grouping mechanism for a collection of **PayloadTypes**. In the diagram, this relationship is depicted as a 1-to-many connection, indicating that a single **GlobalTag** can aggregate multiple **PayloadTypes**, each representing a distinct category of conditions. This relationship is implemented in the database by having a foreign key in the **PayloadType** table referencing the **GlobalTag** ID.
60+
1. **GlobalTag**: Contains a collection of **PayloadTypes**. In the diagram, this relationship is depicted as a 1-to-many connection, indicating that a single **GlobalTag** can aggregate multiple **PayloadTypes**, each representing a distinct category of conditions. This relationship is implemented in the database by having a foreign key in the **PayloadType** table referencing the **GlobalTag** ID.
6161

6262
2. **PayloadType**: Groups related payloads of the same type (e.g., alignment, calibration) and organizes them for specific conditions. A single **PayloadType** can have multiple **PayloadIOVs** linked to it, representing the actual data for different validity ranges. This relationship is similarly implemented using a foreign key in the **PayloadIOV** table referencing the **PayloadType** ID.
6363

0 commit comments

Comments
 (0)