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

Public Member Functions

def read (self, query_range, folder_base, folder_name)
 

Detailed Description

Different regions are stored in different folders, but they are the same
variable.

Definition at line 18 of file trt.py.

Member Function Documentation

◆ read()

def python.subdetectors.trt.DCSC_Variable_TRT_HV.read (   self,
  query_range,
  folder_base,
  folder_name 
)

Definition at line 24 of file trt.py.

24  def read(self, query_range, folder_base, folder_name):
25  normal_read = super(DCSC_Variable_TRT_HV, self).read
26 
27  iovs_bar = normal_read(query_range, folder_base, "HV/BARREL")
28  iovs_eca = normal_read(query_range, folder_base, "HV/ENDCAPA")
29  iovs_ecc = normal_read(query_range, folder_base, "HV/ENDCAPC")
30 
31  # Filter out unused IDs
32  iovs_bar = [i for i in iovs_bar if 0 < i.channel <= BAR_MAX_ID]
33  iovs_eca = [i for i in iovs_eca if 0 < i.channel <= ECA_MAX_ID]
34  iovs_ecc = [i for i in iovs_ecc if 0 < i.channel <= ECC_MAX_ID]
35 
36  iovs_eca = offset_channelids(iovs_eca, BAR_MAX_ID)
37  iovs_ecc = offset_channelids(iovs_ecc, BAR_MAX_ID + ECA_MAX_ID)
38 
39  return sorted(iovs_bar + iovs_eca + iovs_ecc,
40  key = lambda i: (i.channel, i.since))
41 

The documentation for this class was generated from the following file:
read
IovVectorMap_t read(const Folder &theFolder, const SelectionCriterion &choice, const unsigned int limit=10)
Definition: openCoraCool.cxx:569
python.subdetectors.trt.offset_channelids
def offset_channelids(iovs, offset)
Definition: trt.py:6
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename T::value_type > sorted(T begin, T end)
Helper function to create a sorted vector from an unsorted one.