Cal Calibration Software

Slides:



Advertisements
Similar presentations
CC SQL Utilities.
Advertisements

SVACInstrument Analysis Meeting, October 7, 2005 Anders W. Borgland 1 CAL Calibrations And High Energy Muon Gain Anders W. Borgland Science Verification,
GLAST LAT Project Instrument Analysis Workshop 6 – 06/02/27 F. Piron & E. Nuss (LPTA) 1 Trending CAL performance and mapping crystals Gamma-ray Large Area.
EventStore Managing Event Versioning and Data Partitioning using Legacy Data Formats Chris Jones Valentin Kuznetsov Dan Riley Greg Sharp CLEO Collaboration.
GLAST LAT ProjectOnline Peer Review – July 21, Integration and Test A. T. Kavelaars 1 GLAST Large Area Telescope: I&T Integration Readiness.
TkrRecon Status Perugia Software Workshop May, 2003.
GLAST LAT Project Instrument Analysis Workshop 5 – 05/08/29 F. Piron & E. Nuss (IN2P3/LPTA – Montpellier) 1 Comprehensive review of CAL calibrations Gamma-ray.
A.Chekhtman1 GLAST LAT ProjectInstrument Analysis meeting, July 28, 2006 Calibration of high energy diode. Alexandre Chekhtman NRL/GMU Gamma-ray Large.
Calorimeter GLAST Software Jan 2001 Naval Research Lab Washington DC J. Eric Grove 1 Calibration Software Needs For CAL BFEM J. Eric Grove Naval.
GLAST LAT Project Software vrvs meeting X. Chen 1 GLAST LAT Project Software vrvs meeting X. Chen 1 Analyses of Muon Calibration Data Xin Chen.
A.Chekhtman1 GLAST LAT ProjectCAL Recon rewriting meeting, May, 11, 2005 In what cases we need external position estimation ? Alexandre Chekhtman NRL/GMU.
GLAST LAT Project SE Test Planning meeting October 4, 2004 E. do Couto e Silva 1/13 SVAC Data Taking during LAT SLAC Oct 4, 2004 Eduardo.
SAS Calibration Infrastructure J. Bogart 7 June 2004 What it is, what it does.
GLAST LAT ProjectOnline Peer Review – July 21, Integration and Test L. Miller 1 GLAST Large Area Telescope: I&T Integration Readiness Review.
Tutorial 11: Connecting to External Data
GLAST LAT Project Instrument Analysis Workshop #4, 14 July 2005 David Smith CAL calib at SLAC SVAC1 Stability of the CAL Calibrations Online script “suites”
CalRecon Moments Analysis Studies I Tracy Usher1/17 A Brief History of Glast Release GR (Friday, July 15) –Effectively, the first DC-2 2M all-gamma.
Database Design IST 7-10 Presented by Miss Egan and Miss Richards.
Advanced Excel for Finance Professionals A self study material from South Asian Management Technologies Foundation.
IceCube DAQ Mtg. 10,28-30 IceCube DAQ: “DOM MB to Event Builder”
GLAST LAT ProjectInstrument Analysis Workshop, June 2004 J. Eric Grove Naval Research Lab Washington DC Gamma-ray Large Area Space Telescope CAL Detector.
Bookkeeping Tutorial. Bookkeeping & Monitoring Tutorial2 Bookkeeping content  Contains records of all “jobs” and all “files” that are created by production.
IT:Network:Applications.  “Business runs on databases…” ◦ Understatement!  Requirements  Installation  Creating Databases  SIMPLE query ◦ Just enough.
Event Data History David Adams BNL Atlas Software Week December 2001.
LAV Software Status Emanuele Leonardi – Tommaso Spadaro Photon Veto WG meeting – 2015/03/24.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
GLAST LAT ProjectTracking Software Week – Pisa – 20 May 2002 R.Dubois1 SAS Overview Overall Data Flow Sim/Recon –Gleam –Recon rewrites –Calibrations Level.
GLAST LAT Project LAT Instrument Analysis Workshop – Feb 27, 2006 Hiro Tajima, TKR Data Processing Overview 1 GLAST Large Area Telescope: TKR Data Processing.
A.Chekhtman1 GLAST LAT ProjectInstrument Analysis meeting, February, 27, 2006 CAL features and idiosyncrasies. Alexandre Chekhtman NRL/GMU Gamma-ray Large.
GLAST LAT Offline SoftwareCore review, Jan. 17, 2001 Review of the “Core” software: Introduction Environment: THB, Thomas, Ian, Heather Geometry: Joanne.
SoLID simulation with GEMC Zhiwen Zhao 2015/03/26.
GLAST Calorimeter Crystal Position Measurement Zach Fewtrell, NRL/Praxis GLAST Integration & Test Workshop SLAC July 14, 2005.
A table is a set of data elements (values) that is organized using a model of vertical columns (which are identified by their name) and horizontal rows.
Differences Training BAAN IVc - BaanERP 5.0c: Development BaanERP 5.0c Tools.
Project Planning Defining the project Software specification Development stages Software testing.
GLAST LAT ProjectI&T Test Planning Telecon, 8 Nov 2004 CAL Test and Calibration DefinitionJ. Eric Grove GLAST LAT GLAST LAT Calorimeter Subsystem Gamma-ray.
June 27-29, DC2 Software Workshop - 1 Tom Stephens GSSC Database Programmer GSSC Data Servers for DC2.
GLAST Large Area Telescope Instrument Flight Software Flight Unit Design Review 16 September 2004 Instrument Configuration by File James Swain Stanford.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
GLAST LAT ProjectNovember 18, 2004 I&T Two Tower IRR 1 GLAST Large Area Telescope: Integration and Test Two Tower Integration Readiness Review SVAC Elliott.
L1Calo DBs: Status and Plans ● Overview of L1Calo databases ● Present status ● Plans Murrough Landon 20 November 2006.
DB and Information Flow Issues ● Selecting types of run ● L1Calo databases ● Archiving run parameters ● Tools Murrough Landon 28 April 2009.
GLAST LAT Project SE Test Planning Dec 7, 2004 E. do Couto e Silva 1/27 Trigger and SVAC Tests During LAT integration Su Dong, Eduardo do Couto e Silva.
Do-more Technical Training
Tutorial 11: Connecting to External Data
Single Sample Registration
Existing Perl/Oracle Pipeline
22-INTEGRATION HUB
Single-CAL Test and Calibration
Database Database is a large collection of related data that can be stored, generally describes activities of an organization. An organised collection.
Data collection methodology and NM paradigms
Databases.
iVend Retail Extensibility
Python I/O.
GLAST Large Area Telescope
LAT Test Results GLAST Large Area Telescope LAT Pre-Shipment Review
BESIII EMC electronics
Calorimeter calibrations with Flight Software.
Please thank our sponsors!
SoLID simulation with GEMC
Environmental Monitoring: Coupling Function Calculator
Exploring the Power of EPDM Tasks Working with and Developing Tasks in SolidWorks Enterprise PDM (EPDM) By: Marc Young xLM Solutions
Spreadsheets, Modelling & Databases
DATABASES WHAT IS A DATABASE?
NAVIGATING THE MINEFIELD
M. Kezunovic (P.I.) S. S. Luo D. Ristanovic Texas A&M University
Shaped Digital Readout Noise in CAL
Overview Activities from additional UP disciplines are needed to bring a system into being Implementation Testing Deployment Configuration and change management.
CAL crosstalk issues and their implications
Calibration Infrastructure Design
Presentation transcript:

Cal Calibration Software Zachary Fewtrell, NRL March ‘05

Overview Calibration Types Roundup Software & Data Flow Software HOWTO. What’s Next?

SECTION 1 Calibration Types

Calibration Types Pedestals ADC -> DAC (aka IntNonlin) Asymmetry MeV per DAC Thresholds

Pedestals ADC units Measured w/ muon calib 1 per ADC range per Xtal. Average values from FM101: LEX8/HEX8  510 LEX1/HEX1  210

ADC -> DAC > Why use it? > What’s a DAC scale? Units from onboard charge-injection DAC circuit > Why use it? effectively linear, unlike ADC

ADC -> DAC Avg. ADC/DAC from FM101 Multiple points measured via charge-injection Data is smoothed & stored as spline function points. Avg. ADC/DAC from FM101 LEX8/HEX8  11.2 LEX1/HEX1  1.3

Asymmetry log(posDAC/negDAC) Computed for all diode-size combinations POS FACE NEG FACE Large Diode Small Diode 3.Measured w/ muon calib. 4. 10 spline points along xtal length.

Asymmetry Asym Average values from FM101 POS FACE NEG FACE Large Diode -0.3 -> 0.3 Small Diode 1.3 -> 2.0 -1.3 -> -2.0

MeV per DAC Inverse of gain calib type. One val per diode, per xtal. Measured w/ muon calib. Average MeV/DAC for FM101 Large Diode  0.37 Small Diode  2.0 (using muon gain)

Thresholds ULD – Upper Level Discriminator LAC – Log accept FLE, FHE Measured w/ muons and charge-injection.

SECTION 2 Software & Data Flow

Relevant CMT Packages calibGenCAL: CalibDataSvc (Joanne Land) generate XML calib tables from online output. CalibDataSvc (Joanne Land) Allow Gleam to select proper XML files based on time, instrument, & flavor. CalXtalResponse (Zach Land): digi <–> energy conversions. “Everything that goes on inside a single xtal.” -Mark CalDigi & CalRecon Use CalXtalResponse work w/ full Cal.

calibGenCAL CalibDataSvc CalXtalResponse CalCalibSvc XtalADCTool XtalEneTool XtalPosTool CalDigi CalRecon

calibGenCAL Apps App Inputs Output runCIFit Charge injection digi-root ADC -> DAC runMuonCalib - ciFit output - Muon collect digi-root - Pedestals - Asymmetry - MeV-Per-DAC

HOWTO – runCIFit ciFit_option.xml

runCIFit Example Entries All settings in single XML file. Default location: “calibGenCAL/src/ciFit_option.xml” Can specify cfg file in command-line i.e. “runCIFit myOptions.xml” Example Entries <item name="INSTRUMENT" value="LAT"> Instrument name</item> <item name="TIMESTAMP" value="2004-11-11-14:39"> Time of test run.</item>

runCIFit Name Description Example Vals Important config parameters: TIMESTAMP Timestamp for test run 2004-11-11-14:39 INSTRUMENT Instrument name LAT TOWER_LIST List of towers currently installed. 1,2,3,4 OUTPUT_FOLDER Folder for auto-named output files “../output/” ROOTFILE_LE1 input DIGIROOT file Low Energy 041111143546_FM101_PSHP_CALU_COLLECT_CI_SINGLEX16.root ROOTFILE_HE1 input file High Energy 041111145340_FM101_PSHP_CALU_COLLECT_CI_SINGLEX16.root

runCIFit Features: Auto-generate output filenames from input filenames. (optionally overridden) Auto-saves stdout to log-file. Config file is quoted in output log. Can use CMT & other environment variables in string fields. We hope to automate as much as possible in the future.

runMuonCalib Same features as runCIFit XML Default location = “calibGenCAL/src/muonCalib_option.xml”

runMuonCalib Important config parameters*: Name Description Example Vals INPUTFILE_LIST Space delimited list of input ROOT digi files 041022230030_FM101_Pshp_calu_collect_ext.root INTNONLINFILE_TXT IntNonlin TXT file generated by runCIFit LAT *shares many params w/ ciFit, such as TIMESTAMP, INSTRUMENT, TOWER_LIST, etc

CalibDataSvc (aka Joanne Land) LAT wide calibration database system. (Used by all subsystems). 2) constants are stored on local file-system in XML files. 3) calibUtil package defines XML format in dtd files. At SLAC, David Smith as set up $LATCalibRoot for storage of calib files. 3) XML lookup is through a MYSQL server at centaurusa.slac.stanford.edu

CalibDataSvc “vanilla”, ”FM101”, ”zachtest” You need to know some things about CalibDataSvc to get it to work w/ Cal software Queries are made to meta-database on following fields: Name Description Example FLAVOR “vanilla”, ”FM101”, ”zachtest” INSTRUMENT “EM”, “LAT” CALIB_TYPE CAL_Ped, CAL_MevPerDac, CAL_Asym, CAL_TholdCI TIME (optional) Event time, or ‘fake clock’ time CalibDataSvc.CalibTimeSource = “data”; CalibDataSvc.startTime = "2003-2-28 23:59:59";

rdbGUI Use rdbGUI to register new XML files 2) First place to go if you’re having TROUBLE?? loading a particular calib.

CalibDataSvc Make sure you have all your ducks in a row! ALL calib_types for given flavor CAL_Ped, CAL_TholdCI, CAL_MevPerDac, CAL_Asym Entries in rdb database! Environment variables set up. $LATCalibRoot Time stamp matches the validity period of your data. Time not always present, may need fake clock.

CalibDataSvc Relevant jobOptions settings: // you MUST add your desired calib flavor to list!! CalibDataSvc.CalibFlavorList += “FM104”; // you MAY need to set up some time info // “clock” – for data w/out time info CalibDataSvc.clock = “data”;

CalXtalResponse CalCalibSvc: Provide easy access to any cal calib constant. - “Tell me which crystal & I’ll give you a float” Evaluates spline functions. Used by Xtal***Tools. XtalADCTool MC -> digi for single xtal. XtalEneTool, XtalPosTool Recon energies & positions for single xtal. 4. defaultOptions.txt: provides modular options for Gleam to include from inside package.

CalCalibSvc One stop shop for Cal constants Easy interface (no TDS knowledge req’d) Supports ‘ideal’ flavor which always works & skips the mysql db entirely. Currently only used internally, can provide calib to any package in Gleam, userAlg, etc Supports multiple instances for multiple simultaneous flavors.

CalCalibSvc ‘ideal’ flavor No internet req’d. No configuration req’d No XML req’d Always works 5. Contains same set of average constants for each xtal. 6. Good for testing, yada yada. 7. Currently the Gleam default – don’t get fooled into thinking your using real data.

CalCalibSvc interface CalCalibSvc::getPed(CalXtalId, pedestal); // output 2. CalCalibSvc::evalPos(CalXtalId, asym, // input pos); // output

CalCalibSvc jobOptions // default flavor for all calib types CalCalibSvc.DefaultFlavor = “ideal”; // override flavor for particular calib types 2. CalCalibSvc.flavorPeds = “vanilla”;

XtalADCTool Interface XtalADCTool::calculate(CalXtalId, MCIntHits, //input rangeP, //outputs rangeN, adcP, adcN, peggedP, peggedN);

XtalADCTool Convert each individual hit to DAC scale Method Convert each individual hit to DAC scale 2) Sum DAC vals for each diode 3) Add noise 4) Convert diode DAC vals to ADC.

XtalEneTool Interface XtalEneTool::calculate(CalXtalId, rangeP, //inputs rangeN, adcP, adcN, energy); //output

Interface 2 (single face) XtalEneTool::calculate(CalXtalId, adc, //inputs range, position, energy); //output

XtalPosTol Interface XtalPosTool::calculate(CalXtalId, rangeP, //inputs rangeN, adcP, adcN, position); //output

More Joanne Land Not you father’s CalXtalID CalXtalId now contains optional range & face info. 2) ValSig Contains value & sigma in one class, many calib constants are described w/ this.

CalUtil/CalDefs.h Provide flat index classes for Cal components. Good for arrays All xtals in tower All diodes tower All ranges in xtal Etc… Get(),set() routines (layer, column, tower…) Conversion routines Iteration. Range checks. more complex for multi-tower.

Cal Calibration Software What’s Next? Zachary Fewtrell, NRL March ‘05

What’s Missing? Multi-tower support. Threshold calibrations. Part 1 (of 2) Multi-tower support. Threshold calibrations. Integration w/ I & T pipeline. Documentation / doxygen. Improved test apps.

Multi-tower Support Current Gleam: replicates single tower. 2. calibGenCAL merge separate measurements? - merge XML files? 3. Indexing more complicated.

Integration w/ I & T pipeline. Less editing of config files read UDF headers, etc 2. “One script to rule them all?” - several steps - order will get more complicated

What’s Next? 1. FLE cross-talk & other voodoo. ask Sasha! Part 2 (of 3) 1. FLE cross-talk & other voodoo. ask Sasha! 2.Flight like calibrations. - scaled from muon calib. 3. Independent position in CalRecon 4. Updates to Recon data structures - at xtal level

Independent position in CalRecon 1) Pos. is poor function of asymmetry. 2) Also for dead channels, low signal.

Recon Data Structures Old Fields New Fields Single energy enePOS eneNEG Position Multiple range estimates New Fields Single energy Asymmetry position single range estimate (default) Method flags

Xtal Recon Method Flags Records decisions made by CalXtalResponse 32-bit bit-field? - leave some for posterity Fields: range/readout(s) used Faces used. Faces below threshold Xtal below threshold, valid est? External position used? Link to digi, pegged?, which external position?