ATLAS Offline Software
Classes | Variables
ParticleGun_SamplingFraction Namespace Reference

Classes

class  MyParticleSampler
 

Variables

 description
 
 keywords
 
 generators
 
 contact
 
tuple FIRST_DIR = (os.environ['JOBOPTSEARCHPATH']).split(":")[0]
 MC15 style with Generate_tf.py args=jofile.split('.py')[0]. More...
 
list jofiles = [f for f in os.listdir(FIRST_DIR) if (f.startswith('mc') and f.endswith('.py'))]
 
list args = jofiles[0].split('.py')[0]
 parse options from MC job-options filename More...
 
 myMomentum = float(args.split('_Mom')[1].split('_')[0])
 
 myPDGID = int(float(args.split('_pid')[1].split('_')[0].replace('m','-')))
 
float myLowEta = 0.01*float(args.split('eta_')[1].split('_')[0].replace('m','-'))
 
float myHighEta = 0.01*float(args.split('eta_')[1].split('_')[1].replace('m','-'))
 
float myRadius = 0.001*float(args.split('_Radius')[1].split('_')[0])
 
float myZ = 0.001*float(args.split('_Z')[1].split('_')[0])
 
int bec = 1
 
 sampler
 
 momentum
 
 eta1
 
 eta2
 
 pid
 
 radius
 
 z
 

Variable Documentation

◆ args

list ParticleGun_SamplingFraction.args = jofiles[0].split('.py')[0]

parse options from MC job-options filename

Definition at line 61 of file ParticleGun_SamplingFraction.py.

◆ bec

int ParticleGun_SamplingFraction.bec = 1

Definition at line 89 of file ParticleGun_SamplingFraction.py.

◆ contact

ParticleGun_SamplingFraction.contact

Definition at line 5 of file ParticleGun_SamplingFraction.py.

◆ description

ParticleGun_SamplingFraction.description

Definition at line 2 of file ParticleGun_SamplingFraction.py.

◆ eta1

ParticleGun_SamplingFraction.eta1

Definition at line 96 of file ParticleGun_SamplingFraction.py.

◆ eta2

ParticleGun_SamplingFraction.eta2

Definition at line 96 of file ParticleGun_SamplingFraction.py.

◆ FIRST_DIR

tuple ParticleGun_SamplingFraction.FIRST_DIR = (os.environ['JOBOPTSEARCHPATH']).split(":")[0]

MC15 style with Generate_tf.py args=jofile.split('.py')[0].

MC16 style with Gen_tf.py

Definition at line 54 of file ParticleGun_SamplingFraction.py.

◆ generators

ParticleGun_SamplingFraction.generators

Definition at line 4 of file ParticleGun_SamplingFraction.py.

◆ jofiles

list ParticleGun_SamplingFraction.jofiles = [f for f in os.listdir(FIRST_DIR) if (f.startswith('mc') and f.endswith('.py'))]

Definition at line 55 of file ParticleGun_SamplingFraction.py.

◆ keywords

ParticleGun_SamplingFraction.keywords

Definition at line 3 of file ParticleGun_SamplingFraction.py.

◆ momentum

ParticleGun_SamplingFraction.momentum

Definition at line 96 of file ParticleGun_SamplingFraction.py.

◆ myHighEta

ParticleGun_SamplingFraction.myHighEta = 0.01*float(args.split('eta_')[1].split('_')[1].replace('m','-'))

Definition at line 73 of file ParticleGun_SamplingFraction.py.

◆ myLowEta

ParticleGun_SamplingFraction.myLowEta = 0.01*float(args.split('eta_')[1].split('_')[0].replace('m','-'))

Definition at line 70 of file ParticleGun_SamplingFraction.py.

◆ myMomentum

ParticleGun_SamplingFraction.myMomentum = float(args.split('_Mom')[1].split('_')[0])

Definition at line 64 of file ParticleGun_SamplingFraction.py.

◆ myPDGID

ParticleGun_SamplingFraction.myPDGID = int(float(args.split('_pid')[1].split('_')[0].replace('m','-')))

Definition at line 67 of file ParticleGun_SamplingFraction.py.

◆ myRadius

int ParticleGun_SamplingFraction.myRadius = 0.001*float(args.split('_Radius')[1].split('_')[0])

Definition at line 77 of file ParticleGun_SamplingFraction.py.

◆ myZ

float ParticleGun_SamplingFraction.myZ = 0.001*float(args.split('_Z')[1].split('_')[0])

Definition at line 83 of file ParticleGun_SamplingFraction.py.

◆ pid

ParticleGun_SamplingFraction.pid

Definition at line 96 of file ParticleGun_SamplingFraction.py.

◆ radius

ParticleGun_SamplingFraction.radius

Definition at line 96 of file ParticleGun_SamplingFraction.py.

◆ sampler

ParticleGun_SamplingFraction.sampler

Definition at line 96 of file ParticleGun_SamplingFraction.py.

◆ z

ParticleGun_SamplingFraction.z

Definition at line 96 of file ParticleGun_SamplingFraction.py.