ATLAS Offline Software
Loading...
Searching...
No Matches
python.plotting.G4DebuggerConfig Namespace Reference

Classes

class  histogramDefs
class  summaryDefs

Functions

 merge_two_dicts (x, y)

Variables

str AtlasStylePath = os.environ['HOME']+'/RootUtils/AtlasStyle'
 AtlasStyle = os.path.exists(AtlasStylePath)
list particles = ["other","gamma","e-","neutron",]
list otherParticles = ["nucleus","proton","e+"]
list egamma = ["gamma","e-","e+"]
list electrons = ["e-","e+"]
list neutrons = ["neutron"]
list hadrons = ["proton","neutron","nucleus"]
dict colors
dict colorsNew
dict styles
list samecolor
dict linecolor
dict translate
dict label
dict labelAllATLAS
 labelAll = merge_two_dicts(label,labelAllATLAS)
 summary = summaryDefs()
 histograms = histogramDefs()

Function Documentation

◆ merge_two_dicts()

python.plotting.G4DebuggerConfig.merge_two_dicts ( x,
y )

Definition at line 4 of file G4DebuggerConfig.py.

4def merge_two_dicts(x, y):
5 z = x.copy() # start with x's keys and values
6 z.update(y) # modifies z with y's keys and values & returns None
7 return z
8

Variable Documentation

◆ AtlasStyle

python.plotting.G4DebuggerConfig.AtlasStyle = os.path.exists(AtlasStylePath)

Definition at line 10 of file G4DebuggerConfig.py.

◆ AtlasStylePath

str python.plotting.G4DebuggerConfig.AtlasStylePath = os.environ['HOME']+'/RootUtils/AtlasStyle'

Definition at line 9 of file G4DebuggerConfig.py.

◆ colors

dict python.plotting.G4DebuggerConfig.colors
Initial value:
1= {
2 'e-':ROOT.kRed-6,
3 'e+':ROOT.kBlack,
4 'neutron':ROOT.kBlue-9,
5 'gamma':ROOT.kGray,
6 'other':ROOT.kGray+1,
7 'proton':ROOT.kBlack,
8 'nucleus':ROOT.kCyan-4,
9 'proton':ROOT.kPink+2,
10}

Definition at line 26 of file G4DebuggerConfig.py.

◆ colorsNew

dict python.plotting.G4DebuggerConfig.colorsNew
Initial value:
1= {
2 'e-':ROOT.kRed-2,
3 'e+':ROOT.kBlack,
4 'neutron':ROOT.kBlue-2,
5 'gamma':ROOT.kGray+2,
6 'other':ROOT.kGray+3,
7 'proton':ROOT.kBlack,
8 'nucleus':ROOT.kCyan,
9 'proton':ROOT.kPink+6,
10}

Definition at line 37 of file G4DebuggerConfig.py.

◆ egamma

list python.plotting.G4DebuggerConfig.egamma = ["gamma","e-","e+"]

Definition at line 21 of file G4DebuggerConfig.py.

◆ electrons

list python.plotting.G4DebuggerConfig.electrons = ["e-","e+"]

Definition at line 22 of file G4DebuggerConfig.py.

◆ hadrons

list python.plotting.G4DebuggerConfig.hadrons = ["proton","neutron","nucleus"]

Definition at line 24 of file G4DebuggerConfig.py.

◆ histograms

python.plotting.G4DebuggerConfig.histograms = histogramDefs()

Definition at line 214 of file G4DebuggerConfig.py.

◆ label

dict python.plotting.G4DebuggerConfig.label
Initial value:
1= {
2'stepLength':'log( step length [mm] )',
3'stepEnergyDeposit':'log( energy deposit [MeV] )',
4'stepSecondaryKinetic':'log( kinetic energy of the secondary [MeV] )',
5'stepEnergyNonIonDeposit':'log( non-ionizing energy deposit [MeV] )',
6'stepKineticEnergy':'log( kinetic energy in current step [MeV] )',
7'stepPseudorapidity':'#eta in current step',
8}

Definition at line 82 of file G4DebuggerConfig.py.

◆ labelAll

python.plotting.G4DebuggerConfig.labelAll = merge_two_dicts(label,labelAllATLAS)

Definition at line 100 of file G4DebuggerConfig.py.

◆ labelAllATLAS

dict python.plotting.G4DebuggerConfig.labelAllATLAS
Initial value:
1= {
2'numberOfSteps':'number of steps',
3'numberOfStepsPerInitialE':'log( Initial kinetic [MeV] )',
4'CumulativeNumberOfStepsPerInitialE':'log( Initial kinetic [MeV] )',
5'InitialE':'log( Initial kinetic [MeV] )',
6'CumulativeInitialE':'log( Initial kinetic [MeV] )',
7'averageNumberOfStepsPerInitialE':'log( Initial kinetic [MeV] )',
8}

Definition at line 91 of file G4DebuggerConfig.py.

◆ linecolor

dict python.plotting.G4DebuggerConfig.linecolor
Initial value:
1= {
2'neutron':ROOT.kBlue,
3'e-':ROOT.kRed+2,
4}

Definition at line 58 of file G4DebuggerConfig.py.

◆ neutrons

list python.plotting.G4DebuggerConfig.neutrons = ["neutron"]

Definition at line 23 of file G4DebuggerConfig.py.

◆ otherParticles

list python.plotting.G4DebuggerConfig.otherParticles = ["nucleus","proton","e+"]

Definition at line 18 of file G4DebuggerConfig.py.

◆ particles

list python.plotting.G4DebuggerConfig.particles = ["other","gamma","e-","neutron",]

Definition at line 17 of file G4DebuggerConfig.py.

◆ samecolor

list python.plotting.G4DebuggerConfig.samecolor
Initial value:
1= [
2'other',
3'gamma',
4'e+',
5]

Definition at line 52 of file G4DebuggerConfig.py.

◆ styles

dict python.plotting.G4DebuggerConfig.styles
Initial value:
1= {
2'gamma': 3354,
3}

Definition at line 48 of file G4DebuggerConfig.py.

◆ summary

python.plotting.G4DebuggerConfig.summary = summaryDefs()

Definition at line 213 of file G4DebuggerConfig.py.

◆ translate

dict python.plotting.G4DebuggerConfig.translate
Initial value:
1= {
2'e-':'electrons',
3'e+':'positrons',
4'gamma':'photons',
5'neutron':'neutrons',
6# 'Section':'Beampipe',
7'Section':'ID services',
8'EMEC':'EM end-cap',
9'EMB':'EM barrel',
10'FC1':'FCal1',
11'FC23':'FCal2/3',
12'FCOther':'other',
13'HEC':'Had. end-cap',
14'LAr':'LAr services',
15'Cryo':'LAr services',
16'Service':'ID services',
17'other':'Other',
18}

Definition at line 63 of file G4DebuggerConfig.py.