GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — LDMX-scripts/ConfigExamples at master · IncandelaLab/LDMX-scripts

Expand file tree

/

ConfigExamples

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

ConfigExamples

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
electron_gun_config.py
electron_gun_config.py
 
 
hard_brem_only_config.py
hard_brem_only_config.py
 
 

README.md

Outline

Example config files

How to get ldmx-sw

See details in https://ldmx-software.github.io/developing/getting-started.html

Do the setup once:

curl -s https://raw.githubusercontent.com/tomeichlersmith/denv/main/install | sh 
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh |\
  bash -s -- --to ~/.local/bin

Add the following to the .bashrc

module load apptainer
eval "$(just --completions bash)"

Make a project every time you do something new

mkdir Project1
cd Project1
git clone --recursive https://github.com/LDMX-Software/ldmx-sw.git
cd ldmx-sw
just init
just compile

Run a given config file

just fire config.py

Example config files

This repo has a few example config files to run

Hard brem process

The hard_brem_only_config.py has a trigger skim with settings of

recoil_max_p = 3000.,brem_min_e = 5000.

This has an efficiency of 1/10k (0.01%) events and timing of 1 event/100min

Electron gun

The electron_gun_config.py shoots an electron in front of the ECAL into the ECAL. The main settings are in

mpgGen = generators.multi( "mgpGen" )                                                                           
mpgGen.vertex = [ 0., 0., 200. ] # mm                                                                                                                              
mpgGen.nParticles = 1
mpgGen.pdgID = 11
mpgGen.enablePoisson = False #True                                                                                     

# import math
# import numpy as np
# theta = math.radians(5.65)
# beamEnergyMeV=1000*beamEnergy
# px = beamEnergyMeV*math.sin(theta)
# py = 0.;
# pz= beamEnergyMeV*math.cos(theta)
px = 0.
py = 0.
pz= 3000.
mpgGen.momentum = [ px, py, pz ]
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.