Demo: from running a test to displaying the results

Slides:



Advertisements
Similar presentations
1 Module 7: Science. Objectives 2 Welcome to the Cayuse424 Science module. In this module you will learn:  Cayuse424 Basic Template Concepts.  How to.
Advertisements

Motif Space Database Design Kiranjit Sidhu. 2 Outline  Schema Design  Content of Database  Functionality  Future Plans.
The Geant4 physics validation repository
Simple Web SQLite Manager/Form/Report
Introduction to Python
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
Website Development with PHP and MySQL Saving Data.
Bookkeeping Tutorial. Bookkeeping & Monitoring Tutorial2 Bookkeeping content  Contains records of all “jobs” and all “files” that are created by production.
Variables When programming it is often necessary to store a value for use later on in the program. A variable is a label given to a location in memory.
Mar. 13 th, 2014 Geant4 Physicslist and Validation Working Group Meeting 1 Hans Wenzel Mar 13 th 2014 Physics validation display Webapplication.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
Bioinformatics for biologists
Client installation DIRAC Project. DIRAC Client Software  Many operations can be performed through the Web interface  Even more to come  However, certain.
Sep. 23 rd, 2013 Geant4 Collaboration Meeting 1 Hans Wenzel, for the Physics Validation Task Force Parallel Session 1B – Physics Validation Tools Sep 23.
Oct. 16 th, 2013 Geant4 hadronic Meeting 1 Hans Wenzel Oct 16 th 2013 Status of physics validation tool.
Web Scraping with Python and Selenium. What is Web Scraping?  Software technique for extracting info from websites Get information programmatically that.
Validation db status and plans (what happened since the Collaboration meeting) Hans Wenzel 10th Physics Lists and Validation Tools working group meeting.
Geant4 Validation Database Update Hans Wenzel Simulations for Neutrinos Meeting January 22 nd, 2016.
Status Report Hans Wenzel Geant4 Validation repository weekly meeting 13 th April 2016.
Status Report Hans Wenzel Geant4 Validation repository weekly meeting 18 th May 2016.
Web Application & Validation Hans Wenzel 20 th Geant4 Collaboration Meeting September 28, 2015.
7/8/2016 OAF Jean-Jacques Gras Stephen Jackson Blazej Kolad 1.
Database of Scientific Simulation and Experimental Results: Overview and Status of the Project Hans Wenzel, Julia Yarba, Krzysztof Genser, Daniel Elvira.
Report on parallel session 5A, a.k.a. the DoSSiER session: Database of Scientific Simulation and Experimental Results 9/14/2016 Hans Wenzel 21st Geant4.
T3/Tutorials: Data Submission Uploading genotype experiments
Lesson 5-Exploring Utilities
Development Environment
Business Directory REST API
Connect:Direct for UNIX v4.2.x Silent Installation
Argo & Google Ocean.
Hadronic physics validation tool, Status and Plans
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
Appendix B MathScript Basics
Data Virtualization Demoette… JDBC Clients
Intro to Python Programming – Part II
Database of Scientific Simulation and Experimental Results
Azure CLI Deep Dive Neil Peterson Content Developer Microsoft.
OpenWells Cross-Platform Mobile Application
Metadata Editor Introduction
Week 1 Gates Introduction to Information Technology cosc 010 Week 1 Gates
Prepared by Kimberly Sayre and Jinbo Bi
Searching Business Data with MOSS 2007 Enterprise Search
November 8th, 2017 Matthew Davis and John Fink
Lesson 1: Introduction to Trifacta Wrangler
Lesson 1: Introduction to Trifacta Wrangler
EndNote by: fatimah alotaibi.
CSDR Submit-Review Website Submitter Guide
Lesson 1: Introduction to Trifacta Wrangler
Lesson 1: Introduction to Trifacta Wrangler
WEB PROGRAMMING JavaScript.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Microsoft Office Access 2003
Lesson 1 – Chapter 1C Trifacta Interface Navigation
Microsoft Office Access 2003
Digital Image Processing
Yating Liu July 2018 G-OnRamp workshop
Getting Started With Solr
Submit Grades Electronically from MicroGrade Exports
Recitation on AdFisher
12th Computer Science – Unit 5
General Computer Science for Engineers CISC 106 Lecture 03
Carthage ios 8 onwards Dependency manager that streamlines the process of integrating the libraries into the project.
Data Types Every variable has a given data type. The most common data types are: String - Text made up of numbers, letters and characters. Integer - Whole.
Use Cases Simple Machine Translation (using Rainbow)
Status and plans for bookkeeping system and production tools
Tutorial 8 Sharing, Integrating, and Analyzing Data
Installations for Course
Installations for Course
Intro to Web Services Consuming the Web.
Presentation transcript:

Demo: from running a test to displaying the results Outline: The conversion tool. Prerequisits. Providing the metadata. Extracting histogram or TGraph from a root file and creating json file for upload to DoSSiER Uploading the data using the Web Application. Displaying the result. 1 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016 1

Ancillary Tools: Conversion Tool Python program to read and convert histograms from/to different formats: ROOT, ASCII (CSV), JSON Download from and upload to DoSSiER Inspect and interact with histograms (matplotlib) CLI (script integration) or API (integration in python programs) are available For more details see Andrea’s talk. 2 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

Prerequisits (Linux) You need python, various python modules(e.g. numpy) and Root with python support. If it doesn't exist on your System get the 2.7 version of Anaconda from: https://www.continuum.io/downloads then build root against the python version provided by Anaconda. Finally obtain the upload tool from gitlab: https://gitlab.cern.ch/PhysicsValidationDB/uploader 3 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

Prerequisits (MaCOSX) Get homebrew form http://brew.sh/ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install root6 brew info root6  follow the instruction what to add to your .bashrc_profife brew install homebrew/python/numpy Then you should be ready to go: python ./plot_histofiles.py --metadatafile meta_pion-_G4Al_totalxserr.json -c convert --output pion-_G4Al.json pion_xs.root:pion-_G4Al_totalxserr 4 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

Upload Tool: usage Usage: plot_histofiles.py [--comand|-c <cmd>] [--output|-o <ofile>] [--metadata|-m k[:type]=v] [--metadatafile <mdf>] <files> where: <files> are the files to read. File extension determines format. CSV is the text format from G4Analyais. For ROOT format, you need t specify the name of the file to be read in. Ex: file.root:h1 pickle format is supported (file should be created with command "save") <cmd> is one of ("plot", "convert","save","genmd","list") "plot" (default) to plot the content of the file (requires matplotlib) "convert" creates an output file in JSON format suitable for FNALdb upload "save" saves histograms in internal format to pickle file "histos.pkl" "genmd" generates a metadata skeleton file as specified in <files> "list" shows content of ROOT File (TKey). Only for ROOT format. <ofile> is the output file name (default="output.json") for converted output for FNALdb <hn:k[:type]=v> is a key-value pair to add as metadata to FNALdb output hn is a regexp to assing the metadata to histogram based on names. k is the key of the metadata, type (default INT) can be INT if the value has to interpreted as integer value of STR if it must be interpreted as string or FLT if it is a floating point value e.g. -m .*A:INT=1 means add to all objects the integer metadata 1 with key A <mdf> is a json of pickle file containing the metadatada in a format of the type: { "regexpName" : { metadata } } where regexpName is a regular expression that matches a converted object name (the name being the ROOT TObject name or CSV full-filename) 5 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

Extracting TGraph from a root file and creating json file for upload to DoSSiER Command used to add one record to the database (cross sections for pion- on Aluminium) python ./plot_histofiles.py --metadatafile meta_pion-_G4Al_totalxserr.json \ -c convert \ --output pion-_G4Al.json pion_xs.root:pion-_G4Al_totalxserr The Meta Data file: (in addition from the meta data provided by root) 6 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

Data Base we start with No selection Menus???? 7 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

root pion_xs.root File contains pi+/pi- cross sections (total, elastic, inelastic) for various elements (C,Al,S,Ca,Fe,Cu,Ag,Sn,Au,Pb) both as histograms and TGraphError. So first let’s enter the missing 9 entries for the pi- beam to the database 8 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

File with metadata: meta_pi-_all_totalxserr.json Command to convert: python ./plot_histofiles.py \ --metadatafile meta_pi-_all_totalxserr.json -c convert \ --output pi-_all.json \ pion_xs.root:pion-_G4C_totalxserr \ pion_xs.root:pion-_G4S_totalxserr \ pion_xs.root:pion-_G4Ca_totalxserr \ pion_xs.root:pion-_G4Fe_totalxserr \ pion_xs.root:pion-_G4Cu_totalxserr \ pion_xs.root:pion-_G4Ag_totalxserr \ pion_xs.root:pion-_G4Sn_totalxserr \ pion_xs.root:pion-_G4Au_totalxserr \ pion_xs.root:pion-_G4Pb_totalxserr 9 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

Uploading to DoSSiER: Log in to the Geant 4 Collaborators page 10 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

Uploading to DoSSiER: Now select FileUpload 11 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

Uploading to DoSSiER: select the file to upload and press submit. 12 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

We got a Menu now!!!!! Let’s select all 13 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

Cool!!!!: pi- cross section for 10 different elements 14 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

Thanks to Andrea and Julia !!!! Conclusion This wasn’t so difficult  No excuse not to try!!!! Will add upload via web service soon  staged. Move to fermilab/CERN SSO (saml/shibboleth) Thanks to Andrea and Julia !!!! 15 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016

Backup

Ok let’s also add the pi+ Command to convert: python ./plot_histofiles.py \ --metadatafile meta_pi+_all_totalxserr.json -c convert \ --output pi+_all.json \ pion_xs.root:pion+_G4C_totalxserr \ pion_xs.root:pion+_G4Al_totalxserr \ pion_xs.root:pion+_G4S_totalxserr \ pion_xs.root:pion+_G4Ca_totalxserr \ pion_xs.root:pion+_G4Fe_totalxserr \ pion_xs.root:pion+_G4Cu_totalxserr \ pion_xs.root:pion+_G4Ag_totalxserr \ pion_xs.root:pion+_G4Sn_totalxserr \ pion_xs.root:pion+_G4Au_totalxserr \ pion_xs.root:pion+_G4Pb_totalxserr 17 Hans Wenzel 21st Geant4 Collaboration Meeting, Ferrara, Italy, September 12 to 16, 2016 9/14/2016