Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gwd213 authored Nov 27, 2024
1 parent 91dba7d commit 772265b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions general_codes/Jaein/QA_database/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Database Scripts

This directory contains scripts for processing and analyzing data related to the sPHENIX experiment. Below are descriptions of the main scripts:
This directory contains scripts for processing and analyzing data related to the sPHENIX psql database especially for INTT QA Database. Below are descriptions of the main scripts:

## put_in_database.py

Expand All @@ -10,8 +10,8 @@ This script processes run files and inserts relevant data into the database.

- `get_run_events()`: Queries the database for run events of type 'physics'.
- `insert_data(runnum, dead_count, runtime, bco_stdev, bco_peak)`: Inserts processed data into the `intt_qa_expert` table.
- `process_run_file(hot_file_path)`: Processes a run file to count dead, cold, and hot channels.
- `process_bco_file(bco_file_path)`: Processes a BCO file to calculate the standard deviation and peak of BCO differences.
- `process_run_file(hot_file_path)`: Processes a BADMAP CDB file to count dead, cold, and hot channels.
- `process_bco_file(bco_file_path)`: Processes a BCO CDB file to calculate the standard deviation and peak of BCO differences.
- `calculate_runtime(brtimestamp, ertimestamp)`: Calculates the runtime of a run in minutes.
- `main()`: Main function that orchestrates the processing of run files and insertion of data into the database.

Expand Down

0 comments on commit 772265b

Please sign in to comment.