# Basic QA of calibrated data

## General procedure

### Running over one single run&#x20;

The main-program to run a basic QA over the calbrated data is `./DataAna.` So far only one option is implemented `-Q`, which triggers a basic QA run over the data and can be run as follows.

```sh
./DataAna -d 1 -Q -i calibrated_Run_$RUNNR.root -O QAHists_Run_$RUNNR.root -a -f -r $RUNLIST -P $PLOTSDIR
```

It currently produces the following plots and can distinguish 3 different trigger classes (All, Muon triggered, Not Muon Triggered).

<div><figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-a59b8df3e8040868e02d47e3557b1ddeb72aa619%2FEnergyVsCellID.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-afdd2ee0fdc6feeaf77d88026549c72505561fc7%2FHG.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-e44c6053b249bd4ce12b4de311c9500371430904%2FHGCorr.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-22de9160e82ff0ec11f5827a40ceedecc3750dbf%2FLG.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-49952b80e588f1721d27f317f4f8ff4d38fbbd12%2FLGCorr.png?alt=media" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-ee6dfe1997059ec154bcd791ed257eb5e296fb82%2FEnergyTotalVsNCells.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-48c9468f69387573b24207f574c54b4b240d64dc%2FEnergyTotalVsNCells_MuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-21b2c6110cb2bed36ab41b32b6203f171618cca6%2FEnergyTotalVsNCells_WoMuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-4fdb3dbae4b16ed16098f4d566cdfdb3add96ed4%2FEnergyTot.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-33581eedcf18479c9314c714f327e9987d56aa77%2FEnergyTotSplit.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-d30e4e9bb8ed19e104a28eb150b5e11d74eb764e%2FNCells.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-333763600d3f1f69a575d3e8b48a744109fcd1d3%2FNCellsSplit.png?alt=media" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2FHjJBoExu0c6CnT6wnVk6%2FEnergyVsLayer.png?alt=media&#x26;token=4e2b8216-de20-48e8-84e1-2144a5634bff" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2FLdQ1uQoah2MQLoPjv1WL%2FEnergyVsLayer_MuonTrigg.png?alt=media&#x26;token=0c6a7660-11ae-41c4-baf5-af1ea28f7b6f" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fe35GuCFfKs23TSoGO2cI%2FEnergyVsLayer_WOMuonTrigg.png?alt=media&#x26;token=ed224cb1-7c5c-48ee-b75b-f6c198828e1d" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-90d27c0f5cd9d448f64e29586bfc3e2ea4973ced%2FELayerOverlay_AllTrigg.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-8c62aa86df9817174fca280c78b429a1632f9143%2FELayerOverlay_MuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-1e7740cc7d9f25f04464faae83527af195201b4c%2FELayerOverlay_NonMuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2FmieqfeWG15ljamHJg4j6%2FNcellsLayerVsLayer.png?alt=media&#x26;token=316b3951-2d8e-4adc-a874-1c38562b8d4b" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2FTf8czqyrCJfLnDxvLZe2%2FNcellsLayerVsLayer_MuonTrigg.png?alt=media&#x26;token=bf4bd52d-aa55-4b91-ba66-2050edfd2d1f" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2FmquKYYYSebopBiqsScKt%2FNcellsLayerVsLayer_WOMuonTrigg.png?alt=media&#x26;token=019c3139-c9c9-4f77-95d2-989abbd88704" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-b7151d3f615753577691ac1d0b2fc86436c43c76%2FNCellsLayerOverlay_AllTrigg.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-27937fd87393fc81c23b39a64482aab3b7d69821%2FNCellsLayerOverlay_MuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-79814b0ddafcbd75112cf6792a5034b5ab769aec%2FNCellsLayerOverlay_NonMuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-11b99d9a09de7a17022b6c45aeaa76c8c64e9c10%2FXPosVsLayer.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-c6880752144dedaeb9cd26e1a927afb0e9efdc08%2FXPosVsLayer_MuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-67133f840fb40490304b3c73db2e8742e66ac511%2FXPosVsLayer_WOMuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-c81e6ab7233222d6644af1071cf3d0131e678201%2FXPosLayerOverlay_AllTrigg.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-77dc2f73ccddef0368289f288540e90977133a3a%2FXPosLayerOverlay_MuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-74f6403f41e407677778b9a66fde691b86de3e15%2FXPosLayerOverlay_NonMuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-3dd93403ec62fb1138d8044b28b204ee9e25de1c%2FYPosVsLayer.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-05fbea3f3edfd465f33fadfd95298a22851c0e6d%2FYPosVsLayer_MuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-072b6c0ecfb99ed864e70970a8d86e2e4c844dc2%2FYPosVsLayer_WOMuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-2d4798fd35e6d51e874ca4e8118b2848b853ffa7%2FYPosLayerOverlay_AllTrigg.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-f77a479bfcb84197cf2e5ab6f8601afc9014a196%2FYPosLayerOverlay_MuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://790592996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs5C8zkGYS3GkZpbQrPK0%2Fuploads%2Fgit-blob-7c3d8cad3142e196decf109b163033d5f2f169ee%2FYPosLayerOverlay_NonMuonTrigg.png?alt=media" alt=""><figcaption></figcaption></figure></div>

Additional per layer plots are produced when running with the `-e [1/2]` option.

## CAEN data

### September 2023 data

No scripts have been created yet.

### October 2023 data

No scripts have been created yet.

### August 2024 data

The primary script for the first look at a basic QA of calibrated data is `runQA_2024.sh`.&#x20;

```sh
# run first full data QA for Scan A
bash runQA_2024.sh $USERNAME ScanA
```

The 2nd argument defines which scan it is, please check which are currently available and expand where necessary.

## HGCROC data

### August 2024 data

No scripts have been created yet.

### November 2025 data

The primary script for the first look at a basic QA of calibrated data is `runQAHGCROC_2025.sh` .&#x20;

```bash
# running simple QA of calibrated data (only for quick look)
bash runQAHGCROC_2025.sh $USERNAME FullScanA SimpleQA
# running QA of calibrated data 
bash runQAHGCROC_2025.sh $USERNAME FullScanA QA
```

The 2nd argument defines which scan it is while the 3rd lets you choose which level of QA you would like to run.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://friederikebock.gitbook.io/epiclfhcaltb-ana/data-analysis/basic-qa-of-calibrated-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
