ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.subdetectors.lucid.Lucid_Voltage Class Reference
Inheritance diagram for python.subdetectors.lucid.Lucid_Voltage:
Collaboration diagram for python.subdetectors.lucid.Lucid_Voltage:

Public Member Functions

def __init__ (self, folder_name, defect_name, excluded_channels=None)
 
def make_good_iovs (self, iovs)
 

Public Attributes

 defect_name
 
 excluded_channels
 

Detailed Description

Require that /LUCID/DCS/(LV|HV) has powerStatus == True for all modules
which are not in the excluded_channels set

Definition at line 44 of file lucid.py.

Constructor & Destructor Documentation

◆ __init__()

def python.subdetectors.lucid.Lucid_Voltage.__init__ (   self,
  folder_name,
  defect_name,
  excluded_channels = None 
)

Definition at line 50 of file lucid.py.

50  def __init__(self, folder_name, defect_name, excluded_channels=None):
51  super(Lucid_Voltage, self).__init__(folder_name, None)
52  self.defect_name = defect_name
53  self.excluded_channels = excluded_channels
54 

Member Function Documentation

◆ make_good_iovs()

def python.subdetectors.lucid.Lucid_Voltage.make_good_iovs (   self,
  iovs 
)

Definition at line 55 of file lucid.py.

55  def make_good_iovs(self, iovs):
56 
57  # Filter out channels which are permanently dead
58  excluded_channels = self.excluded_channels
59  if excluded_channels:
60  iovs = iovs.empty(i for i in iovs
61  if i.channel not in excluded_channels)
62 
63  chans, iovsets = iovs.chans_iovsets
64 
65  result = IOVSet()
66  for since, until, states in process_iovs(*iovsets):
67  if not all(s and s.powerStatus for s in states):
68  result.add(since, until, self.defect_name, True, "")
69 
70  return result.solidify(DefectIOV)
71 

Member Data Documentation

◆ defect_name

python.subdetectors.lucid.Lucid_Voltage.defect_name

Definition at line 52 of file lucid.py.

◆ excluded_channels

python.subdetectors.lucid.Lucid_Voltage.excluded_channels

Definition at line 53 of file lucid.py.


The documentation for this class was generated from the following file:
python.events.process_iovs
def process_iovs(*iovsets)
Definition: events.py:30
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
Cut::all
@ all
Definition: SUSYToolsAlg.cxx:64