Building the Trigger Database

Letisha McLaughlin

Advisor: L. Gan

UNCW

July 29, 2005

Triggers

Triggers send out electronic signals when a specific event occurs.

Trigger forces information to be read out from the whole experimental setup

Triggers include Pedestal, Light Monitoring System (LMS), Clock, Master Or (MOR), Pair Spectrometer (PS), Total Absorption Count (TAC), Calibration, Pi0, Compton, and Pair Production

Trigger Motivation

More efficient organization of analysis code

Allows user to find what bits were available during a run and what bits were used

Prevent the user from analyzing a run with the wrong production type

Trigger Identification

Used raw data from experiment

Converted into a root file

Different bins on the histogram signify different triggers

Triggers that were identifiable include the ped, LMS, clock, MOR, PS, and production.

LMS

MoR,

TAC,

Calibration

Pedestal,

Clock

PS

Production

Root Macro

Programmed to use farming database in MySQL in order to keep track of submissions

Uses raw primex0---.dat.00 files, converts them into root files

Then converts the root files back into .dat files as an array listing the trigger bits used corresponding to that run

.dat Array for run 4654:

Array	Trigger bit

5	Ped

8	LMS

5	clock

1	MOR

7	PS

-1	TAC

-1	Calibration

12	Production

Root Macro

If a trigger bit is listed under production category, the book_keeping database is called to find what type it is- pi0, compton, pair, TAC, or Calibration

Next, macro checks pedestal, if pedestal is bad, Ped trigger bit set to -1

New database is inserted into CalDB

Array Transiton for Run 4654

.dat Array	.dat_db Array

5	5

8	8

5	5

1	1

7	7

-1	-1

-1	-1

12	12 (pi0)

-1 (compton)

-1 (pair)

Note the array changes from 8 entries to 12 entries

Production has been split into 3 separate entries- pi0, compton, or pair production

Trigger Occurance

Summary

Database was needed for reference during data analysis

Root Macro created to convert raw experimental data into CalDB trigger database

Still 143 files to be worked with in order to find what triggers were used during their runs

Thanks

Liping Gan

Dustin McNutly

Vasily Mochalov

Ashot Gasparian

Mike Wood

Eric Clinton

Mark Ito

2005-07-26T14:42:20