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

Public Member Functions

def add_anode (self, anode, row, column, layer)
 
def add_crate (self, cr, address)
 
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)
 
 crates
 
 crate_links
 
 anodes
 
 anode_links
 

Static Private Attributes

string __tablename__ = "detectors"
 

Detailed Description

One detector, eg protoDUNE/SP, DUNE FD SP module.

Definition at line 116 of file db.py.

Member Function Documentation

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

Definition at line 150 of file db.py.

150  def __repr__(self):
151  return "<Detector: %s>" % self.id
152 
def wirecell.util.wires.db.Detector.add_anode (   self,
  anode,
  row,
  column,
  layer 
)
Add an anode at a given address, return the DetectorAnodeLink.

Definition at line 137 of file db.py.

137  def add_anode(self, anode, row, column, layer):
138  '''
139  Add an anode at a given address, return the DetectorAnodeLink.
140  '''
141  return DetectorAnodeLink(detector=self, anode=anode,
142  row=row, column=column, layer=layer)
143 
def add_anode(self, anode, row, column, layer)
Definition: db.py:137
def wirecell.util.wires.db.Detector.add_crate (   self,
  cr,
  address 
)
Add a create at a given address, return the DetectorCrateLink.

Definition at line 144 of file db.py.

144  def add_crate(self, cr, address):
145  '''
146  Add a create at a given address, return the DetectorCrateLink.
147  '''
148  return DetectorCrateLink(detector=self, crate=cr, address=address)
149 
def add_crate(self, cr, address)
Definition: db.py:144

Member Data Documentation

string wirecell.util.wires.db.Detector.__tablename__ = "detectors"
staticprivate

Definition at line 120 of file db.py.

wirecell.util.wires.db.Detector.anode_links
static
Initial value:
1 = relationship('DetectorAnodeLink',
2  order_by='DetectorAnodeLink.layer, '
3  'DetectorAnodeLink.column, '
4  'DetectorAnodeLink.row',
5  back_populates = "detector")

Definition at line 131 of file db.py.

wirecell.util.wires.db.Detector.anodes
static
Initial value:
1 = relationship('Anode',
2  secondary='detector_anode_links')

Definition at line 129 of file db.py.

wirecell.util.wires.db.Detector.crate_links
static
Initial value:
1 = relationship('DetectorCrateLink',
2  order_by='DetectorCrateLink.address',
3  back_populates="detector")

Definition at line 125 of file db.py.

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

Definition at line 123 of file db.py.

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

Definition at line 121 of file db.py.


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