ATLAS Offline Software
Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
python.Enums.Project Class Reference
Inheritance diagram for python.Enums.Project:
Collaboration diagram for python.Enums.Project:

Public Member Functions

def determine (cls)
 
def __eq__ (self, other)
 

Static Public Attributes

 Athena
 
 AthAnalysis
 
 AthDerivation
 
 AthGeneration
 
 AthSimulation
 
 AnalysisBase
 

Static Private Attributes

 __hash__
 

Detailed Description

Definition at line 15 of file Enums.py.

Member Function Documentation

◆ __eq__()

def 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()

def 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

◆ __hash__

python.Enums.FlagEnum.__hash__
staticprivateinherited

Definition at line 12 of file Enums.py.

◆ AnalysisBase

python.Enums.Project.AnalysisBase
static

Definition at line 21 of file Enums.py.

◆ AthAnalysis

python.Enums.Project.AthAnalysis
static

Definition at line 17 of file Enums.py.

◆ AthDerivation

python.Enums.Project.AthDerivation
static

Definition at line 18 of file Enums.py.

◆ Athena

python.Enums.Project.Athena
static

Definition at line 16 of file Enums.py.

◆ AthGeneration

python.Enums.Project.AthGeneration
static

Definition at line 19 of file Enums.py.

◆ AthSimulation

python.Enums.Project.AthSimulation
static

Definition at line 20 of file Enums.py.


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