ATLAS Offline Software
Loading...
Searching...
No Matches
python.Enums.Project Class Reference
Inheritance diagram for python.Enums.Project:
Collaboration diagram for python.Enums.Project:

Public Member Functions

 determine (cls)
 __eq__ (self, other)

Static Public Attributes

str Athena = 'Athena'
str AthAnalysis = 'AthAnalysis'
str AthDerivation = 'AthDerivation'
str AthGeneration = 'AthGeneration'
str AthSimulation = 'AthSimulation'
str AnalysisBase = 'AnalysisBase'

Private Attributes

 __class__

Static Private Attributes

 __hash__ = Enum.__hash__

Detailed Description

Definition at line 15 of file Enums.py.

Member Function Documentation

◆ __eq__()

python.Enums.FlagEnum.__eq__ ( self,
other )
inherited

Definition at line 7 of file Enums.py.

7 def __eq__(self, other):
8 if not isinstance(other, self.__class__):
9 raise TypeError(f"Invalid comparison of {self.__class__} with {type(other)}")
10 return self is other
11

◆ determine()

python.Enums.Project.determine ( cls)

Definition at line 24 of file Enums.py.

24 def determine(cls):
25 import os
26 if "AthSimulation_DIR" in os.environ:
27 return cls.AthSimulation
28 if "AthGeneration_DIR" in os.environ:
29 return cls.AthGeneration
30 if "AthAnalysis_DIR" in os.environ:
31 return cls.AthAnalysis
32 if "AthDerivation_DIR" in os.environ:
33 return cls.AthDerivation
34 if "AnalysisBase_DIR" in os.environ:
35 return cls.AnalysisBase
36 return cls.Athena
37
38

Member Data Documentation

◆ __class__

python.Enums.FlagEnum.__class__
privateinherited

Definition at line 8 of file Enums.py.

◆ __hash__

python.Enums.FlagEnum.__hash__ = Enum.__hash__
staticprivateinherited

Definition at line 12 of file Enums.py.

◆ AnalysisBase

str python.Enums.Project.AnalysisBase = 'AnalysisBase'
static

Definition at line 21 of file Enums.py.

◆ AthAnalysis

str python.Enums.Project.AthAnalysis = 'AthAnalysis'
static

Definition at line 17 of file Enums.py.

◆ AthDerivation

str python.Enums.Project.AthDerivation = 'AthDerivation'
static

Definition at line 18 of file Enums.py.

◆ Athena

str python.Enums.Project.Athena = 'Athena'
static

Definition at line 16 of file Enums.py.

◆ AthGeneration

str python.Enums.Project.AthGeneration = 'AthGeneration'
static

Definition at line 19 of file Enums.py.

◆ AthSimulation

str python.Enums.Project.AthSimulation = 'AthSimulation'
static

Definition at line 20 of file Enums.py.


The documentation for this class was generated from the following file: