Modifications to the Threshold Calculator Application Matti Kalliokoski 15 th BLM Thresholds WG Meeting 26/05/2015.

Slides:



Advertisements
Similar presentations
Unit 9. Unit 9: Exponential and Logarithmic Functions and Applications.
Advertisements

BLM Trip Limits Revisited May 28, 2004 Peter Kasper.
EXTRACTION BEAM LOSS AT 1 TEV CM WITH TDR PARAMETERS Y. Nosochkov, G. White August 25, 2014.
DS Quench TEST 2  MOTIVATION and METHOD: 1. Achieve 500kW on beam 1 – TCP7 collimators.(so far 500kW with beam 2 and 235kW over 1s with beam 1 were reached.
Current Status of Virtual Accelerator at J-PARC 3 GeV Rapid Cycling Synchrotron H. Harada*, K. Shigaki (Hiroshima University in Japan), H. Hotchi, F. Noda,
Beam commissioning strategy Global machine checkout Essential 450 GeV commissioning System/beam commissioning Machine protection commissioning.
Collimation MDs LHC Study Working Group Daniel Wollmann for the Collimation-Team, BLM-Team, Impedance-Team, … LHC Study Working Group,
J. Leonard, U. Wisconsin 1 Commissioning the Trigger of the CMS Experiment at the CERN Large Hadron Collider Jessica L. Leonard Real-Time Conference Lisbon,
Wavelet Packets For Wavelets Seminar at Haifa University, by Eugene Mednikov.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
PROBLEM: Radiation Dose Rate in IR2 When IR1 is Operating (and Vice Versa) Muon Dose Rate > 1 mRem/hr for 0.1% Collimated Halo.
CHAPTER 2 ANALYSIS OF ALGORITHMS Part 2. 2 Running time of Basic operations Basic operations do not depend on the size of input, their running time is.
BLM thresholds for MQW magnets V. Raginel, B. Auchmann, D. Wollmann BLM Threshold Working Group meeting, 24/02/2015.
CS1101: Programming Methodology Aaron Tan.
GRD - Collimation Simulation with SIXTRACK - MIB WG - October 2005 LHC COLLIMATION SYSTEM STUDIES USING SIXTRACK Ralph Assmann, Stefano Redaelli, Guillaume.
Mariusz Sapinski BI/BL Acknowledgements: 1 Planning of quench tests - QTSWG Latest news concerning planning of quench tests Quench Test Strategy.
An Example Use Case Scenario
June 19, 2007 GRIDDED MOS STARTS WITH POINT (STATION) MOS STARTS WITH POINT (STATION) MOS –Essentially the same MOS that is in text bulletins –Number and.
2 nd BLMTWG meeting, B. Auchmann, O. Picha, with A. Lechner.
Selection Control Structures. Simple Program Design, Fourth Edition Chapter 4 2 Objectives In this chapter you will be able to: Elaborate on the uses.
Calculation of the Common Noise Paolo Zuccon. CN Algorithms DSP_orig: The algorithm implemented in the DSP take the mean of the good (Status==0) VA channels.
Beam MC activity A.K.Ichikawa for beam group For more details,
Automated Patch Generation Adapted from Tevfik Bultan’s Lecture.
B. Auchmann, O. Picha, Joint CWG/BLMTWG Meeting August
AGS/Booster Status March 11, 2014 Time Meeting Haixin Huang.
Mariusz Sapinski BI/BL Acknowledgements: 1 Planning of quench tests - LMC158 Draft planning of beam induced quench tests at the end of 2013 run LHC Machine.
Monday h34: beam (1020b) lost after 10 Hz RF trim. Fill h56: XPOC to be reset by expert. 08h18: Masked QPS_STATE SIS interlocks for RB.A12.
1 CONSIDERATIONS ON WARM MAGNET MEASURED DOSES 2012 September 3rd Francesco Cerutti for the team key contributions by TE-MSCDavide Tommasini and Pierre.
Simulation comparisons to BLM data E.Skordis On behalf of the FLUKA team Tracking for Collimation Workshop 30/10/2015 E. Skordis1.
Eva Barbara Holzer July 16, LHC MPP Eva Barbara Holzer for the BLM team LHC MPP CERN, July 17, 2010 Proposal on Threshold Corrections for RC Filters.
Improving Collimator Setup Efficiency LHC Beam Operation Committee, G. Valentino, R.W. Assmann, R. Bruce, F. Burkart, M. Cauchi, D. Deboy, S.
Chamonix 2006, B.Dehning 1 Commissioning of Beam Loss Monitors B. Dehning CERN AB/BDI.
Beam Induced Quench Session 2: quench test at LHC B. Dehning, C. Bracco.
Context of the Neutrino Factory Neutrino factory (2018) –4MW proton driver –p +   +   +  e + e  Linear e + e − collider (2014/5) –Leptons at 0.4.
Mutation Testing Breaking the application to test it.
Simulations and BLM Scaling Studies for the Collimation Quench Test (with protons) A. Mereghetti CWG Meeting, CERN, 22 nd Oct 2015.
ERHIC Orbit Correction Studies (Minor Update) Using Oct’14 lattice and dispersion diagnostic January 5, 2015Stephen Brooks, eRHIC FFAG meeting1.
What is the time estimated to change the energy and re-establish stable operation by steps of ~1% (threshold scan), a few%, or more than 10%? Comments.
After Protons from RCS 1 st DeeMe Collaboration Meeting Dec. 10, 2012 Kazami Yamamoto J-PARC Center Accelerator Division.
Maximum Credible Beam Loss in the Main Injector D. Capista January 26, 2012.
Layout and Arcs lattice design A. Chancé, B. Dalena, J. Payet, CEA R. Alemany, B. Holzer, D. Schulte CERN.
2 nd BLMTWG meeting, B. Auchmann, O. Picha, with A. Lechner.
1 st BLMTWG Meeting, , B. Auchmann, O. Picha with help from M. Sapinski, E.B. Holzer, A. Priebe.
Juan F. Esteban Müller P. Baudrenghien, T. Mastoridis, E. Shaposhnikova, D. Valuch IPAC’14 – Acknowledgements: T. Bohl, G. Iadarola, G. Rumolo,
MAIN DUMP LINE: BEAM LOSS SIMULATIONS WITH THE TDR PARAMETERS Y. Nosochkov E. Marin, G. White (SLAC) LCWS14 Workshop, Belgrade, October 7, 2014.
Baseline BDS Design Updates Glen White, SLAC Sept. 4, 2014 Ichinoseki, MDI/CFS Meeting.
2007 IEEE Nuclear Science Symposium (NSS)
BEAM LOSS MONITORING SYSTEM
-9:00: Test IP transverse adjustment (CMS) and optics verification.
Saturday 24 March 2012.
Injection region BLMs – ECR
Tracking System at CERN 06 and 07 test beams
Fast losses at collimators during 16L2 dumps
IP7 losses scaling and impact on forecast for HL-LHC era
Halo scraping and loss rates at collimators
BEAM LOSS MONITORING SYSTEM
LHC Injection and Dump Protection
Agenda 9:00-10:00 Beam Interlock System Changes Following the 2006 Audit Benjamin Todd 10:00-11:00 Beam Dump System follow-up from the 2008 Audit Jan Uythoven.
BLM changes HV software interlock (SIS)
Why do BLMs need to know the Quench Levels?
Warm Magnet Thresholds
Commissioning of the Beam Conditions Monitor of the LHCb Experiment at CERN Ch. Ilgner, October 23, 2008 on behalf of the LHCb BCM group at TU Dortmund:
*** Series 3RS Version 1, ***
Thursday 17/3 Morning: evaluation of the origin of the timing problem occurred over night and the implication on machine protection 09:00 – 12:00 Dry ramp.
Thursday 22nd March 00:20 – 02:40 on longer squeeze function, orbit and chroma correction at 4 TeV 2:40 – 5:30 second cycle with long squeeze 5:46 – 7:00.
Radiation fields During 1st stage beam commissioning
CAL crosstalk issues and their implications
31/3/2010 Difficult day… but at the end stable beams.
Operational Results of LHC Collimator Alignment using Machine Learning
Operational Results of LHC Collimator Alignment using Machine Learning
Presentation transcript:

Modifications to the Threshold Calculator Application Matti Kalliokoski 15 th BLM Thresholds WG Meeting 26/05/2015

Calculation of Maximum Number of Lost Protons for Warm Magnets Old Algorithm Linear weight for energy evolution LinearWeight = (energy – eInjection) / (eColl - eInjection) Calculation of max number of protons in the first running sum at the given energy nShortInj and nShortInj are the given values of NPFAST at injection and collision energy nShort = (nShortInj * (1. - linearWeight)) + (nShortColl * linearWeight) Calculation of max number of protons in the first running sum at the given energy dNdtLongInj and dNdtLongColl are the given values of PRMAX at injection and collision energy nLong = (dNdtLongInj*time * (1. - linearWeight))+(dNdtLongColl*time* linearWeight) Logarithmic difference between last (83 s) and first (40us) integration time dTime = log(time[12]) – log(time[1]) Logarithmic weight for time evolution timeWeight = (log(time) - log(time[1])) / dtTime Calculation of max number of protons Np = ((1. - timeWeight) * nShort) + ( timeWeight * nLong) New Algorithm Calculation of max number of protons in the first running sum at the given energy: nShort = interpolation(Ebeam) where the interpolation algorithm accepts positive and negative exponents (we need fits of the form aShort-1 x-1 + aShort1 x) nLong = interpolation(Ebeam) * time where the interpolation algorithm accepts positive and negative exponents (we need fits of the form aLong-1 x-1 + aLong1 x) Logarithmic difference between last (83 s) and first (40us) integration time dTime = log(time[12]) – log(time[1]) Logarithmic weight for time evolution timeWeight = (log(time) - log(time[1])) / dtTime Calculation of max number of protons Np = ((1. - timeWeight) * nShort) + ( timeWeight * nLong)

Calculation of Maximum Number of Lost Protons for Warm Magnets Old Algorithm New Algorithm

Maximum Number of Lost Protons for Collimators Old Algorithm - FAST LOSS (tfast = 1 s) if (time < tfast){ Calculating energy dependent slope and offset shortSlope = (nShortColl – nShortInj) / (eColl - eInjection) shortOffSet = nShortInj – ( shortSlope * eInjection) Calculating raw max number of protons nProtF = shortOffSet + shortSlope * energy Ultra fast loss correction (only for the first 5 running sums) if (time == time[1]) nProtF *= blmCorrUF[1] if (time == time[2]) nProtF *= blmCorrUF[2] if (time == time[3]) nProtF *= blmCorrUF[3] if (time == time[4]) nProtF *= blmCorrUF[4] if (time == time[5]) nProtF *= blmCorrUF[5] } end ‘if’ fast losses - SLOW LOSSES LOSS (tslow = 10 s) if (time > tfast && time < tslow){ Calculating energy dependent slope and offset mediumSlope = (dNdtMidColl - dNdtMidInj) / (eColl - eInjection) mediumOffset = dNdtMidInj - ( mediumSlope * eInjection) Calculating raw max number of protons nProtF = (mediumOffset + mediumSlope * energy) * time } end ‘if’ slow losses - STEADY STATE LOSS (tslow = 10 s) if ( time > tSteady){ Calculating energy dependent slope and offset (slow loss case) mediumSlope = (dNdtMidColl - dNdtMidInj) / (eColl - eInjection) mediumOffset = dNdtMidInj - ( mediumSlope * eInjection) Calculating energy dependent slope and offset (steady-state case) longSlope = (dNdtLongColl - dNdtLongInj) / (eColl - eInjection) longOffSet = dNdtLongInj - ( longSlope * eInjection) Calculating raw max number of protons nProtF = (mediumOffset + mediumSlope * energy) * tslow nProtF += (time - tslow) *( longOffSet + longSlope * energy) } end ‘if’ steady state losses New Algorithm Calculating the loss rate for each energy level LossRate500kW = 500 kW / E LossRate100kW = 100 kW / E Calculation of number of lost protons if time = time[12] // RS12 nProtE = LossRate100kW * time elseif time = time[9-11] // RS09-11 nProtE = min(time,time[9-11]) * LossRate500kW elseif time=time[7-8] // RS06-07 nProtE = 1 s * LossRate500kW else // RS01-05 nProtE = 0.25 s * LossRate500kW

Maximum Number of Lost Protons for Collimators

2.3.1 Beam Energy Levels Beam EnergyValueUnitsType Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble At the moment the table values start from TeV This value is not used for machine protection We would like to change the first value to match either the second energy level or fix the value to 450 GeV At the bottom the values should be fixed to 7 TeV Would reduce noise issues

2.3.1 Beam Energy Levels Beam EnergyValueUnitsType Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble Energy TeVdouble At the moment the table values start from TeV This value is not used for machine protection We would like to change the first value to match either the second energy level or fix the value to 450 GeV At the bottom the values should be fixed to 7 TeV Would reduce noise issues

3.3 IL Correction Correction IDilCorrection Input ParameterstimeConstant, norm, blmConvBit2Gy DescriptionThe function allows to increase the dump threshold up to norm (value Gy/s) in RS01. The allowed dose in longer running sums corresponds to an exponential decay (with decay time timeConstant). This correction is applied to specific monitors in the injection regions.

3.3 IL Correction Old version 1. Compute normalization. norm /= (1.0 – exp(-1.0 * integrationTime[0] / timeConstant)) 2. Energy [2] loop. for (int energy = 0; energy < 2; energy++) { 3. Integration Time [12] loop. for (int time = 0; time < 12; time++) { 4. Compute injection loss. injectionLoss = (norm / blmConvBit2Gy) * (1.0 – exp(- integrationTime[it] / timeConstant)) 5. Compare injection loss with computed thresholds. if (injectionLoss > ThresholdsValue[energy][time]) { 6. If injection loss is bigger than threshold value, replace threshold value with injection loss. ThresholdsValue[energy][time] = injectionLoss 7. End of 'if' statement. } Fixed version 1. Compute normalization. norm /= exp(-1.0 * integrationTime[0] / timeConstant) 2. Energy [2] loop. for (int energy = 0; energy < 2; energy++) { 3. Integration Time [12] loop. for (int time = 0; time < 12; time++) { 4. Compute injection loss. injectionLoss = (norm / blmConvBit2Gy) * exp(-1.0 * integrationTime[time] /timeConstant) * integrationTime[time] 5. Compare injection loss with computed thresholds. if (injectionLoss > ThresholdsValue[energy][time]) { 6. If injection loss is bigger than threshold value, replace threshold value with injection loss. ThresholdsValue[energy][time] = injectionLoss 7. End of 'if' statement. }

Ad-Hoc Corrections 1. Integration Time [12] loop. for (int rsum = 0; rsum < 12; rsum++) { 2. Energy [32] loop. for (int energyLevel = 0; energyLevel < 32; energyLevel++) { 3. Checks if beam levels are specified. if (beamLevel.isEmpty) { 4. Scaling all beam energy(32) levels by given factor. ThresholdsValue[energyLevel][rsum] *= scaleRS[rsum] 5. Else if, scale only specified beam level positions. } else { 6. Correct specified beam level positions and not all End of 'else if' statement. } 8. End of Energy loop. } 9. End of Integration time loop. }

Ad-Hoc Corrections 1. Integration Time [12] loop. for (int rsum = 0; rsum < 12; rsum++) { 2. Energy [32] loop. for (int energyLevel = 0; energyLevel < 32; energyLevel++) { 3. Checks if beam levels are specified. if (beamLevel.isEmpty) { 4. Scaling all beam energy(32) levels by given factor. ThresholdsValue[energyLevel][rsum] *= scaleRS[rsum] 5. Else if, scale only specified beam level positions. } else { 6. Correct specified beam level positions and not all End of 'else if' statement. } 8. End of Energy loop. } 9. End of Integration time loop. }

3.10 Ad-Hoc Bits Correction Originally empty fields for RS were not allowed Values were looped only over energy, not time Bits Correction could not be used Repetition of other corrections were needed to do a simple change

3.10 Ad-Hoc Bits Correction Modification to the application was made App passes a flag to API to allow empty fields in RS Loop over RS was introduced for Bits correction

Conclusions Series of modifications to the Threshold Calculator is to be made Some bug fixes have already been introduced Corresponding document LHC-BLM-ES- 0002, EDMS No will be updated accordingly All the changes are also reported in JIRA: