DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
tpreplay_application.__main__.ROUPlaneData Class Reference

Public Member Functions

None add_value (self, str rou, int plane)
 
set[int] get_values (self, str rou)
 
int total_plane_count (self)
 

Static Public Attributes

dict data = field(default_factory=lambda: defaultdict(set))
 

Detailed Description

Definition at line 50 of file __main__.py.

Member Function Documentation

◆ add_value()

None tpreplay_application.__main__.ROUPlaneData.add_value ( self,
str rou,
int plane )

Definition at line 53 of file __main__.py.

53 def add_value(self, rou: str, plane: int) -> None:
54 self.data[rou].add(plane)
55

◆ get_values()

set[int] tpreplay_application.__main__.ROUPlaneData.get_values ( self,
str rou )

Definition at line 56 of file __main__.py.

56 def get_values(self, rou: str) -> set[int]:
57 return self.data.get(rou, set())
58

◆ total_plane_count()

int tpreplay_application.__main__.ROUPlaneData.total_plane_count ( self)

Definition at line 59 of file __main__.py.

59 def total_plane_count(self) -> int:
60 return sum(len(planes) for planes in self.data.values())
61
62# custom type to hold variables for TPStream, used later to sort & update db
63@dataclass

Member Data Documentation

◆ data

dict tpreplay_application.__main__.ROUPlaneData.data = field(default_factory=lambda: defaultdict(set))
static

Definition at line 51 of file __main__.py.


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