Recent Improvements in Collsoft

Slides:



Advertisements
Similar presentations
1 CRAB Tutorial 19/02/2009 CERN F.Fanzago CRAB tutorial 19/02/2009 Marco Calloni CERN – Milano Bicocca Federica Fanzago INFN Padova.
Advertisements

K.Harrison CERN, 23rd October 2002 HOW TO COMMISSION A NEW CENTRE FOR LHCb PRODUCTION - Overview of LHCb distributed production system - Configuration.
Asynchronous Solution Appendix Eleven. Training Manual Asynchronous Solution August 26, 2005 Inventory # A11-2 Chapter Overview In this chapter,
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
SubVersioN – the new Central Service at DESY by Marian Gawron.
1 Topics for this Lecture Software maintenance in general Source control systems (intro to svn)
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
Eclipse Overview Introduction to Web Programming Kirkwood Continuing Education Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved.
© 2012 Avaya, Inc. All rights reserved, Page 1 Module Duration: Module 05: Handling Data in Bulk 3 Hours.
Chapter 18: Windows Server 2008 R2 and Active Directory Backup and Maintenance BAI617.
Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2.
CVS – concurrent versions system Network Management Workshop intERlab at AIT Thailand March 11-15, 2008.
Linux & Shell Scripting Small Group Lecture 3 How to Learn to Code Workshop group/ Erin.
M. Schott (CERN) Page 1 CERN Group Tutorials CAT Tier-3 Tutorial October 2009.
CERN-PH-SFT-SPI August Ernesto Rivera Contents Context Automation Results To Do…
INFSO-RI Enabling Grids for E-sciencE SCDB C. Loomis / Michel Jouvin (LAL-Orsay) Quattor Tutorial LCG T2 Workshop June 16, 2006.
CVS – concurrent versions system AROC Guatemala July 19-23, 2010 Guatemala City, Guatemala.
Evaluating & Maintaining a Site Domain 6. Conduct Technical Tests Dreamweaver provides many tools to assist in finalizing and testing your website for.
Geneva, 2nd Tutorial for Health e-Child Project, Service creation in Genius Web Portal Nicola Venuti NICE srl Geneva, , 2nd.
LHC online modeling Mark IV LHC online modeling Mark IV Piotr Skowroński Tobias Persson Agnieszka Szczotka Jaime Coello de Portugal Lukas Malina Mattias.
1 MSTE Visual SourceSafe For more information, see:
Pavel Nevski DDM Workshop BNL, September 27, 2006 JOB DEFINITION as a part of Production.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Text2PTO: Modernizing Patent Application Filing A Proposal for Submitting Text Applications to the USPTO.
CVS repositories, and how to set them up for using CCPN.
SharePoint 101 – An Overview of SharePoint 2010, 2013 and Office 365
DHTML.
Integrating ArcSight with Enterprise Ticketing Systems
Creating a Flash Web Site
Integrating ArcSight with Enterprise Ticketing Systems
BI Share Quick reference guide.
Data Virtualization Demoette… Caching – Database – Multi Table
James Blankenship September , 2016
SixDesk Scripts – an Update
What’s new in FUSION? Bob McGaughey
James Blankenship March , 2017
Project Objectives Publish to a remote server
WWW and HTTP King Fahd University of Petroleum & Minerals
Version Control with Subversion
CVS – concurrent versions system
Project Center Use Cases Revision 2
Progress on NA61/NA49 software virtualisation Dag Toppe Larsen Wrocław
CVS – concurrent versions system
Data Flows in ACTRIS: Considerations for Planning the Future
Data Virtualization Community Edition
Overview of Needs for SixTrack on-line Aperture Check
Data Virtualization Tutorial… CORS and CIS
IW2D migration to HTCondor
Update on SixDesk Scripts
Project Center Use Cases Revision 3
Subversion.
LCG Monte-Carlo Events Data Base: current status and plans
Project Center Use Cases Revision 3
The Websites Team Robert Mayr (robyduck).
Acrobat DC November Release
Intro to PHP & Variables
Central Document Library Quick Reference User Guide View User Guide
Setting Up Firewall using Netfilter and Iptables
Module 1 Introduction to PHP 11/30/2018 CS346 PHP.
LO4 - Be Able to Update Websites to Meet Business Needs
Git CS Fall 2018.
SharePoint 2010 – SharePoint 101
IBM SCPM Basic Navigation
IBM SCPM PIT Data Download/Upload
Planning and Storyboarding a Web Site
Website Testing Checklist
Version Control with Git
Configuration management
Status and plans for bookkeeping system and production tools
Data Quality 2 (DQ2) & Staff Reporting Webinar
Presentation transcript:

Recent Improvements in Collsoft A. Mereghetti 21 Mar 2017 A.Mereghetti

Outline Collsoft SVN repo HTCondor Back-ups BeamLossPattern Optics checks CollDB check 21 Mar 2017 A.Mereghetti

Outline Collsoft SVN repo HTCondor Back-ups BeamLossPattern Optics checks CollDB check 21 Mar 2017 A.Mereghetti

The Collsoft Repo SVN repo available to everyone, it is not amereghe's repo!  everyone in the team who finds problems is welcome to commit corrections! Aim: to store material useful to the team: configuration files for (reference) simulations; (official) tools for simulations: pre-/post-processing, submission, analysis, plotting, generation of aperture models... Miscellanea: template of reports, machinery for generating TCT centre functions, …; source of reference material, to avoid: avoid re-running into old problems / re-inventing the wheel; use state-of-art tools / inherit recent updates; SVN: repo on the remote server: Stored at svn.cern.ch/reps/collsoft can be browsed through (web browser): https://svnweb.cern.ch/cern/wsvn/collsoft; repo on your local machine: trunk / branches / tags; keep synched with version on remote server: svn co / ci / up ; 21 Mar 2017 A.Mereghetti

Outline Collsoft SVN repo HTCondor Back-ups BeamLossPattern Optics checks CollDB check 21 Mar 2017 A.Mereghetti

HTCondor - Intro Upcoming batch system, replacement of LSF; More flexible batch system: it allows to reach different computing resource (LSF, grid, BOINC, …) with only one interface; Time frame: move the entire ABP group during the first half of 2017; Apr – May: grace period, to move scripts and test HTCondor; For collimation studies, the same approach as for LSF is used: For each run dir, an .job file is generated; A further htcondor.sub has to be prepared, with general simulation settings; Instead of bsub: condor_submit htcondor.sub; In the following, a demo, comparing LSF and HTCondor submission, with HL-LHC taken as example (v1p2, 2s retraction, B1H); 21 Mar 2017 A.Mereghetti

HTCondor - Demo Extract reference input files from collsoft SVN repo: https://svnweb.cern.ch/cern/wsvn/collsoft  browse to desired case; Prepare workspace: cd /afs/cern.ch/work/a/amereghe ; mkdir testCondorSubCollimation ; cd testCondorSubCollimation svn co svn+ssh://svn.cern.ch/reps/collsoft/SixTrack_material/Simulation_scenarios/HLLHC/v1p2/2sigma_retraction/B1_cleaning clean_input \tree -hC Prepare input files (eg request 20 turns): cd clean_input ; svn status emacs fort.3 svn status ; svn diff | colordiff ; cd - Get ready to submit: mkdir submitToLSF ; cd submitToLSF ; ln -s ../clean_input ; cd - mkdir submitToHTCONDOR ; cd submitToHTCONDOR ; ln -s ../clean_input ; cd - 21 Mar 2017 A.Mereghetti

HTCondor – Demo (II) Concerned scripts: Submit to LSF: emacs ~/private/repos/collsoft/SixTrack_material/Utilities/Submission_script/sixtrack_batch.sh & emacs ~/private/repos/collsoft/SixTrack_material/Utilities/Submission_script/htcondor.sub & Submit to LSF: cd submitToLSF ; ~/private/repos/collsoft/SixTrack_material/Utilities/Submission_script/sixtrack_batch.sh ; \tree -Ch ; cd - ; bjobs Submit to HTCondor: cd submitToHTCONDOR/ ; ~/private/repos/collsoft/SixTrack_material/Utilities/Submission_script/sixtrack_batch.sh ; \tree -Ch ; cd - ; condor_q Check that results are identical: gunzip */run0001/screenout.gz colordiff submitToHTCONDOR/run0001/screenout submitToLSF/run0001/screenout colordiff submitToHTCONDOR/run0001/coll_summary.dat submitToLSF/run0001 colordiff submitToHTCONDOR/run0001/FirstImpacts.dat submitToLSF/run0001 colordiff submitToHTCONDOR/run0001/impacts_real.dat submitToLSF/run0001 21 Mar 2017 A.Mereghetti

Outline Collsoft SVN repo HTCondor Back-ups BeamLossPattern Optics checks CollDB check 21 Mar 2017 A.Mereghetti

Back-Ups Let’s try to have alternatives to external hard-drives! Available services: CASTOR  apparently, no hard limits on user (apart from 1Mfiles in single folder); EOS  with limits: Max number of files in the entire user space: 1Mfiles; Max occupancy in user space: 1TB; No back-up on tape; CERNBOX (i.e. EOS via web interface): limits of EOS + 4GB max upload per file; backUp.sh from SixDesk environment: To back up a study via a simple terminal line command; Synergy with simulation infrastructure for DA studies; Easier to maintain a single tool; 21 Mar 2017 A.Mereghetti

Back-Ups - Demo Script available in AFS: Create zip file of study: /afs/cern.ch/project/sixtrack/SixDesk_utilities/dev/utilities/bash/backUp.sh Create zip file of study: zip -r submitToHTCONDOR.zip submitToHTCONDOR ; \ls -ltrh Set up environments (needed not for script but for demo! – tcsh syntax): EOS: setenv EOS_MGM_URL root://eosuser.cern.ch CASTOR: setenv STAGE_HOST "castorpublic“ setenv STAGE_SVCCLASS "default“ Back up to CASTOR: nsls -l /castor/cern.ch/user/a/amereghe /afs/cern.ch/project/sixtrack/SixDesk_utilities/dev/utilities/bash/backUp.sh -f submitToHTCONDOR.zip -s CASTOR:backUps nsls -l /castor/cern.ch/user/a/amereghe/backUps Back up to EOS: eos ls -l /eos/user/a/amereghe /afs/cern.ch/project/sixtrack/SixDesk_utilities/dev/utilities/bash/backUp.sh -f submitToHTCONDOR.zip -s EOS:backUps eos ls -l /eos/user/a/amereghe/backUps 21 Mar 2017 A.Mereghetti

Outline Collsoft SVN repo HTCondor Back-ups BeamLossPattern Optics checks CollDB check 21 Mar 2017 A.Mereghetti

BeamLossPattern Recent changes: Changes for RECTANGLE aperture: Possibility to treat any accelerator length (mfiascar, 2016-02-26); Effectively fitting RECTANGLE aperture type; in the past, APER(3)=0 and APER(4)=0 force the linear fitting of the circular part (RECTELLIPSE formalism) to go to 0.0; Changes for RECTANGLE aperture: Similarly to ELLIPSE, 4 specifiers should be given  to generate the four specifiers: collsoft/SixTrack_material/Utilities/Generate_aperture/Tools/Python/modifyApertures.py Updated automatic correction of aperture profiles; Changes mainly in Aperture::IsLost, Aperture::GiveAperture, Aperture::PlotAperture in Aperure.cpp; Previous behavior with only two specifiers kept for back-ward compatibility; NB: if only APER(1) and APER(2) are specified, then the aperture is RECTANGLE and not ELLIPSE, and it is NOT suitable for fitting with RECTELLIPSE! RECTANGLE ELLIPSE Auto-correction Auto-correction

Outline Collsoft SVN repo HTCondor Back-ups BeamLossPattern Optics checks CollDB check 21 Mar 2017 A.Mereghetti

Optics Checks From time to time, it is useful to verify the optics actually used by SixTrack: Check against reference given by MADX; Verify optics (crossing conditions) of old simulations; grepOptics.sh it parses the screenout and re-formats the optics table computed by SixTrack in a way more suitable for plotting; Found in: collsoft/SixTrack_material/Utilities/Analysis_scripts/Bash 21 Mar 2017 A.Mereghetti

Optics Checks - Demo Generate optics file: Plot optics: mkdir analysis ; cd analysis ; ~/private/repos/collsoft/SixTrack_material/Utilities/Analysis_scripts/Bash/grepOptics.sh ../run0001/screenout ; head SixTrackOptics.dat Plot optics: Use checkOptics.gnu (gnuplot script) in collsoft/SixTrack_material/Utilities/Analysis_scripts/Gnuplot Select desired column: emacs /afs/cern.ch/user/a/amereghe/private/repos/collsoft/SixTrack_material/Utilities/Analysis_scripts/Gnuplot/checkOptics.gnu plot: xterm  gnuplot  load '/afs/cern.ch/user/a/amereghe/private/repos/collsoft/SixTrack_material/Utilities/Analysis_scripts/Gnuplot/checkOptics.gnu' 21 Mar 2017 A.Mereghetti

Outline Collsoft SVN repo HTCondor Back-ups BeamLossPattern Optics checks CollDB check 21 Mar 2017 A.Mereghetti

CollDB synchronization between CollPos, CollDB and twiss file not always at best; python script for automatically synchronizing info: active collimators based on fort.3 or CollDB or CollGaps; positions in CollPos synchronised with twiss file; beta functions in CollDB synchronised with twiss file; sorting of collimators in CollDB and CollPos based on s-coordinate; Demo: cd clean_input ; \ls –ltrh python2.7 ~/private/repos/collsoft/SixTrack_material/Utilities/CollDB/collSettings_lib.py << EOF 1 CollDB_HL.data twiss_hllhc_b1_round.tfs EOF \ls -ltrh 21 Mar 2017 A.Mereghetti

Documentation SixTrack for collimation studies from LHC Collimation Project Web Page (user manual): http://lhc-collimation-project.web.cern.ch/lhc-collimation-project/code-tracking-2012.php from SixTrack twiki page (implementation details): https://twiki.cern.ch/twiki/bin/viewauth/LHCAtHome/SixTrackCollimatVer SixTrack web page: http://sixtrack.web.cern.ch/SixTrack/ Collsoft repo: terminal line commands: ssh+svn://svn.cern.ch/reps/collsoft Browse through repo (web browser): https://svnweb.cern.ch/cern/wsvn/collsoft SVN quick reference card: https://www.collab.net/sites/default/files/uploads/CollabNet_SVNQuickReferenceCard.pdf HTCondor: CERN manual: http://batchdocs.web.cern.ch/batchdocs/local/index.html Official website: http://research.cs.wisc.edu/htcondor/ Tips on sub file: http://www.iac.es/sieinvens/siepedia/pmwiki.php?n=HOWTOs.CondorSubmitFile CASTOR: offical web site: http://castor.web.cern.ch/ quick tutorial for beginners: https://cern.service-now.com/service-portal/article.do?n=KB0001103 EOS: quick tutorial for beginners: https://cern.service-now.com/service-portal/article.do?n=KB0001998 CERNBOX: manual: http://cernbox.web.cern.ch/cernbox/en/ 21 Mar 2017 A.Mereghetti