Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
geo::OfflineChan Class Reference

A (plane, cell) pair. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-10-23/GeometryObjects/OfflineChan.h"

Inheritance diagram for geo::OfflineChan:
dt::Channel trk::LocatedChan

Public Member Functions

 OfflineChan ()
 
 OfflineChan (unsigned short plane, unsigned short cell)
 
int ToDBValidityChan () const
 
unsigned short Plane () const
 
unsigned short Cell () const
 
bool operator== (const OfflineChan &rhs) const
 
bool operator< (const OfflineChan &rhs) const
 

Static Public Member Functions

static OfflineChan FromDBValidityChan (int chan)
 

Protected Attributes

unsigned short fPlane
 
unsigned short fCell
 

Detailed Description

A (plane, cell) pair.

Definition at line 17 of file OfflineChan.h.

Constructor & Destructor Documentation

geo::OfflineChan::OfflineChan ( )
inline

Definition at line 20 of file OfflineChan.h.

Referenced by FromDBValidityChan().

20 : fPlane(0), fCell(0) {}
unsigned short fCell
Definition: OfflineChan.h:41
unsigned short fPlane
Definition: OfflineChan.h:41
geo::OfflineChan::OfflineChan ( unsigned short  plane,
unsigned short  cell 
)
inline

Definition at line 23 of file OfflineChan.h.

References febshutoff_auto::chan, FromDBValidityChan(), and ToDBValidityChan().

24  : fPlane(plane), fCell(cell)
25  {
26  }
unsigned short fCell
Definition: OfflineChan.h:41
unsigned short fPlane
Definition: OfflineChan.h:41

Member Function Documentation

unsigned short geo::OfflineChan::Cell ( ) const
inline
OfflineChan OfflineChan::FromDBValidityChan ( int  chan)
static
bool OfflineChan::operator< ( const OfflineChan rhs) const

Definition at line 27 of file OfflineChan.cxx.

References fCell, and fPlane.

Referenced by operator==().

28  {
29  if(fPlane < rhs.fPlane) return true;
30  if(fPlane > rhs.fPlane) return false;
31  return fCell < rhs.fCell;
32  }
unsigned short fCell
Definition: OfflineChan.h:41
unsigned short fPlane
Definition: OfflineChan.h:41
bool geo::OfflineChan::operator== ( const OfflineChan rhs) const
inline

Definition at line 35 of file OfflineChan.h.

References fCell, fPlane, and operator<().

36  { return fPlane == rhs.fPlane && fCell == rhs.fCell; }
unsigned short fCell
Definition: OfflineChan.h:41
unsigned short fPlane
Definition: OfflineChan.h:41
unsigned short geo::OfflineChan::Plane ( ) const
inline
int OfflineChan::ToDBValidityChan ( ) const

Definition at line 19 of file OfflineChan.cxx.

References fCell, and fPlane.

Referenced by chaninfo::BadChanList::LoadNewData(), nova::dbi::RunHistory::LoadPedestals(), OfflineChan(), std::hash< geo::OfflineChan >::operator()(), calib::AttenFit::WriteDummyCSVRow(), calib::AttenuationFit::WriteDummyCSVRow(), and calib::AttenCurve::WriteToCSVs().

20  {
21  // Cell can never be more than 383.
22  // And this format is fairly human-readable
23  return 1000*fPlane+fCell;
24  }
unsigned short fCell
Definition: OfflineChan.h:41
unsigned short fPlane
Definition: OfflineChan.h:41

Member Data Documentation

unsigned short geo::OfflineChan::fCell
protected

Definition at line 41 of file OfflineChan.h.

Referenced by Cell(), operator<(), operator==(), and ToDBValidityChan().

unsigned short geo::OfflineChan::fPlane
protected

Definition at line 41 of file OfflineChan.h.

Referenced by operator<(), operator==(), Plane(), and ToDBValidityChan().


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