Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
wirecell.util.wires.db.Crate Class Reference
Inheritance diagram for wirecell.util.wires.db.Crate:
Base

Public Member Functions

def add_wib (self, wib, slot)
 
def __repr__ (self)
 
- Public Member Functions inherited from Base
virtual std::string who () const
 
virtual ~Base () noexcept=default
 

Static Public Attributes

 id = Column(Integer, primary_key=True)
 
 detectors
 
 detector_links
 
 wibs
 
 wib_links
 

Static Private Attributes

string __tablename__ = "crates"
 

Detailed Description

One crate of a detector holding WIBs.

Definition at line 256 of file db.py.

Member Function Documentation

def wirecell.util.wires.db.Crate.__repr__ (   self)

Definition at line 280 of file db.py.

280  def __repr__(self):
281  return "<Crate: %s>" % self.id
282 
def wirecell.util.wires.db.Crate.add_wib (   self,
  wib,
  slot 
)
Add a WIB into the slot of this crate.

Definition at line 274 of file db.py.

274  def add_wib(self, wib, slot):
275  '''
276  Add a WIB into the slot of this crate.
277  '''
278  return CrateWibLink(crate=self, wib=wib, slot=slot)
279 
def add_wib(self, wib, slot)
Definition: db.py:274

Member Data Documentation

string wirecell.util.wires.db.Crate.__tablename__ = "crates"
staticprivate

Definition at line 260 of file db.py.

wirecell.util.wires.db.Crate.detector_links
static
Initial value:
1 = relationship('DetectorCrateLink',
2  back_populates = "crate")

Definition at line 265 of file db.py.

wirecell.util.wires.db.Crate.detectors
static
Initial value:
1 = relationship('Detector',
2  secondary='detector_crate_links')

Definition at line 263 of file db.py.

wirecell.util.wires.db.Crate.id = Column(Integer, primary_key=True)
static

Definition at line 261 of file db.py.

wirecell.util.wires.db.Crate.wib_links
static
Initial value:
1 = relationship('CrateWibLink',
2  order_by = 'CrateWibLink.slot',
3  back_populates = 'crate')

Definition at line 270 of file db.py.

wirecell.util.wires.db.Crate.wibs
static
Initial value:
1 = relationship('Wib',
2  secondary = 'crate_wib_links')

Definition at line 268 of file db.py.


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