Upload
yeo-diaz
View
42
Download
3
Embed Size (px)
DESCRIPTION
Validation infrastructure and tuning of the simulation. S. Miglioranzi (CERN) 37th Software Week. -rays Multiple Scattering in MUON system Validation tools for the Simulation G4 Material Scans Geometry bug fix in VELO QMTests. -rays simulation status. - PowerPoint PPT Presentation
Citation preview
16/06/2009 S. Miglioranzi 1
S. Miglioranzi (CERN) 37th Software Week
• -rays • Multiple Scattering in MUON system• Validation tools for the Simulation • G4 Material Scans • Geometry bug fix in VELO• QMTests
Validation infrastructure and tuning of the simulation
16/06/2009 S. Miglioranzi 2
-rays simulation status
• VELO: velo group would like to have some data to check the feasibility of -rays activation. Studies about resolution and occupancy needed.
• OT: no straws simulation. -rays activation cut works on Region-basis -> OT may need to be defined inside a Region if cannot cope with -rays ON.
• ST: no difficulties foreseen to have them ON.
• RICH: no difficulties foreseen to have them ON.
• CALO: no difficulties foreseen to have them ON (only Energy calibration will change) but check if and how the resolution will be affected and variation of CPU time needed.
• MUON: no difficulties foreseen to have them ON (may have to change the low Energy background parametrization).
For MC09 the -rays stay turned OFF (currently only switched ON for RICH Aerogel). In future productions (from Gauss v38r0) the sub-detectors should be prepared to have the -rays turned ON -> more realistic simulation.
From Simulation Applications meeting - 24.04.2009:
16/06/2009 S. Miglioranzi 3
Multiple Scattering in MUON system
• The activation of -rays forces G4 to reduce the step length -> correct description of correlation (side effect)
• Include correlation plots in simulation monitoring...
• need to investigate in trackers as well
• Muon trajectories are dominated by multiples scattering interactions in the Calorimeters and Muon Filters
• The MCS in G4 is not correctly simulated in case of dense material and large step sizes (MUON Filters are a perfect example!) -> correlation between displacement and angular deviation not maintained (see details in Software week 17/03/09)
16/06/2009 S. Miglioranzi 4
Multiple Scattering in MUON system
S. Vecchi - Simulation Application meeting 08/05/2009 • MCS description in G49.1p03 (new G4MuMscModel) slightly improved w.r.t. G4 8.2 (G4MuMultipleScattering), without considering the -rays.• Still correlation between displacement and angle spoiled if -rays are not switched ON
• Gauss v36r2• PDG
Simulation Time:- Default : 1- -rays-LT.opts : 1.4- -rays-HT.opts : 1.2- Default + -rays only in MUON Filters: 1
16/06/2009 S. Miglioranzi 5
Multiple Scattering in MUON system
S. Vecchi - Simulation Application meeting 08/05/2009
New Multiple Scattering Simulation Checking packages:
• in Muon/MuonMuoniSim (MultipleScatteringChecker.cpp(h) - 2D histos MCS) – available in v37r2• in Sim/GaussMonitor (MonitorStepAction.cpp(h) - step length in Muon Filters histos) – not yet included in a release
• Default• -rays (HT/LT)• -rays in MUON Filters• PDG
• RMS(dx).vs.p still slightly underestimated respect PDG by a factor ~0.5-0.6
16/06/2009 S. Miglioranzi 6
Multiple Scattering in MUON system
S. Vecchi - Simulation Application meeting 08/05/2009
• Switching ON the -rays only in the MUON Filters -> no variation in the number of hits.
• MCHits monitoring plots need to be extended to all subdetectors
• Default• -rays (LT)• -rays (HT)• -rays in MUON Filters
16/06/2009 S. Miglioranzi 7
Development of general MC monitoring and validation tools
• First version of monitoring tools already available in:
http://lhcb-release-area.web.cern.ch/LHCb-release-area/DOC/gauss/generator/validation/index.html http://lhcb-release-area.web.cern.ch/LHCb-release-area/DOC/gauss/simulation/validation/index.html• Python scripts to analyse the Gauss log files and rootople
• Comparisons of different Gauss versions and different cuts
• web pages with monitoring plots/tables are created
16/06/2009 S. Miglioranzi 8
Development of general MC monitoring and validation tools
• Set of general scripts to monitor the MC output (for Gauss, Boole, Brunel) during production.
• Unique tools for monitoring production, validation and tuning
• Error handling: run over the full production output to update counters and identify which and how many jobs crashed
• include some info (generator statistics) in File Summary Record (DST) without the necessity to scan the log files (discussion this Friday at the Core Software session)
• Possibility to choose from cumulative or “from a certain date” information (histo, counters, errors...)
• Histogram handling: histos will mantain the Tree structure of the directories in the web page(easier visualization)
• Generator statistics scripts will be included to be run (once a week, cron jobs?)
• use already existing scripts (e.g. bookeeping scripts)
• investigate what can be taken from the DQM
What’s next:
16/06/2009 S. Miglioranzi 9
LHCb material budget (G4 version)
Material budget plots for geometry:
• DDDB=”head-20090112" LHCbCOND="head-20090112"
• DDDB="MC09-20090602" LHCbCOND="head-20090402"
• Stand-alone version DDDB as in:
•https://twiki.cern.ch/twiki/bin/view/LHCb/CondDBHowTo#Generate_XML_Files_from_the_Cont
• PGUN (MaterialEvalGuns.opts) used: originating at (0,0,0) in LHCb ref system, generated in a -grid extending over the whole LHCb acceptance.
•Fake-Detector structure-geometry created modifying the XML (Air planes positioned in subdets gaps)
•Radiation length at planes summing contribution at each G4Step (StepLength/MaterialRadiationLength)
Thomas’ page: http://lhcb-reconstruction.web.cern.ch/lhcb-reconstruction/Python/Radiation_and_Bfield_maps.htm
http://lhcb-release-area.web.cern.ch/LHCb-release-area/DOC/gauss/simulation/matscan/matscan_gen.htmlhttp://lhcb-release-area.web.cern.ch/LHCb-release-area/DOC/gauss/simulation/matscan/matscan_gen.html
MC09
16/06/2009 S. Miglioranzi 10
LHCb material budget (G4 version)
http://lhcb-release-area.web.cern.ch/LHCb-release-area/DOC/gauss/simulation/matscan/matscan_gen.htmlhttp://lhcb-release-area.web.cern.ch/LHCb-release-area/DOC/gauss/simulation/matscan/matscan_gen.html
• BeforeMagnetRegion: 2710 mm (2)• Magnet Region: 7570 mm (3)• After Magnet Region: - 8250 mm (4)- 8950 mm (5) - 9450 mm (6)- 11950 mm (7)- 12320 mm (8)
G4Step does not “see” the overlapping volumes, problem avoided for the moment switching ON/OFF the simulation of specific subdets from SimGeometry.opts (still remaining issues with RICH).
Future: implementation of a G4 Parallel Geometry (feasible from G49.1) in order to create manageable scorer planes.
16/06/2009 S. Miglioranzi 11
LHCb material budget (G4 version)
The radiation length in each eta (phi) bin is averaged in phi (eta).
0.3 X0
0.4 X0
http://lhcb-release-area.web.cern.ch/LHCb-release-area/DOC/gauss/simulation/matscan/matscan_gen.htmlhttp://lhcb-release-area.web.cern.ch/LHCb-release-area/DOC/gauss/simulation/matscan/matscan_gen.html
Radiation Length at Z = 2710 mm (full Before Magnet Region - plane 2 )
16/06/2009 S. Miglioranzi 12
LHCb material budget (G4 version)
From:From:http://lhcb-release-area.web.cern.ch/LHCb-release-area/http://lhcb-release-area.web.cern.ch/LHCb-release-area/DOC/gauss/simulation/matscan/matscan_gen.htmlDOC/gauss/simulation/matscan/matscan_gen.html
the material scan plots (the material scan plots (cumulativecumulative and and plane2planeplane2plane) ) for all the planes available.for all the planes available.
VELO
RICH2 T3
16/06/2009 S. Miglioranzi 13
Gauss “particle stuck” bug
Problems observed:
• Gauss (v37r0) jobs hanging in production (up to 20%)- or n of few MeV ping-ponging between Universe and VELO tank upstream (protection has been introduced to kill this particles)
• jobs stucked in production with error like:
- charged particles of zero steps (G4 pushing them) in the same volume (protection introduced)
Investigation with G4 people.
Problem found:• due to precision problem there is an overlap between the volume (a Polycone) and its mother.• loss in precision of one of the planes of the Polycone
Problem solved:• geometry modified to introduce a small gap (few m) between the Polycone and its mother• corrected plane parameter to avoid precision loss
WARNING - G4PropagatorInField::ComputeStep(): Zero progress for 51 attempted steps.
16/06/2009 S. Miglioranzi 14
Gauss “particle stuck” bug
• likely similar problem in Velo2Rich (the whole event is aborted as the problem is caught by a different G4 class)
• This problem was not detected by the overlaps checking tool
https://twiki.cern.ch/twiki/bin/view/LHCb/GeomOverlap because dependent on optimizer. Moreover overlap-checking not working for polycones volumes (?).
• G4 crew detected the overlap with the overlap check in G4PVPlacement (... , G4bool pSurfChk=false) constructor.
Optional boundary check to activate when new volumes introduced. • Could be set as option when new LHCb->G4 geometry will be put in
place
16/06/2009 S. Miglioranzi 15
Gauss QMTests
• Default QMTest running over few MinBias events • SAM test for checking the installation on remote sites, running one event as the G4 geometry (hence the access) is done during the first event.
• A generator-only test running over 1000 events (B0->KS0J/psi(1S)).
• in preparation: more generator-only tests (to test different signals) running on few events
Gauss (from v37r0) has introduced a set of QMTests to be run in the nightlies:
16/06/2009 S. Miglioranzi 16
Summary
• Sub-detectors need to be prepared to turn the simulation of -rays ON (not for MC09 but sometimes this year, before the data taking)
• MCS: updated correlation studies using recent Gauss version have been produced (S. Vecchi) and set as part of the routine simulation validation
• New Simulation monitoring scripts are foreseen to improve the monitoring of MC production.
• New Material Scans using G4 have been produced (code will be included in next Gauss releases)
• Gauss production bug (geometry overlap) found and solved.
• QMTests for Gauss now available to be run in nightlies.
• Geant4 9.2p01 is going to be built by the end of June (now included in slot lhcb2 in the nightly builds) and a Gauss development version (v38r0) prepared.
16/06/2009 S. Miglioranzi 17
-rays ON
• The activation of -rays forces G4 to reduce the step length -> correct description of correlation (side effect)
• for the MSC starting from g4 9.0 or 9.1 possibility to control the step size but tests needed to understand how to use them inside Gauss/GiGa
• -rays will be turned ON. In the future the “activation cut” on the Electron range (5 mm, see previous slides) can be optimized (larger cut) in order to save CPU time.
• Include correlation plots in simulation monitoring
S. Vecchi-rays OFF
M3 M3
MCS simulation in G4