LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
readout Namespace Reference

Namespaces

 details
 
 fhicl
 FHiCL objects representing geometry classes as configuration parameters.
 

Classes

struct  ElementLevel
 
class  ROPDataContainer
 Container with one element per readout plane. More...
 
struct  ROPID
 Class identifying a set of planes sharing readout channels. More...
 
class  ROPIDmapper
 Mapping for readout plane identifiers. More...
 
class  TPCsetDataContainer
 Container with one element per readout TPC set. More...
 
struct  TPCsetID
 Class identifying a set of TPC sharing readout channels. More...
 
class  TPCsetIDmapper
 Mapping for TPC set identifiers. More...
 

Typedefs

using CryostatID = geo::CryostatID
 

Functions

std::ostream & operator<< (std::ostream &out, TPCsetID const &sid)
 Generic output of TPCsetID to stream. More...
 
std::ostream & operator<< (std::ostream &out, ROPID const &rid)
 
Readout ID comparison operators

The result of comparison with invalid IDs is undefined.

constexpr bool operator== (TPCsetID const &a, TPCsetID const &b)
 Comparison: the IDs point to the same TPC set (validity is ignored) More...
 
constexpr bool operator!= (TPCsetID const &a, TPCsetID const &b)
 Comparison: the IDs point to different TPC sets (validity is ignored) More...
 
constexpr bool operator< (TPCsetID const &a, TPCsetID const &b)
 Order TPCsetID in increasing Cryo, then TPC set. More...
 
constexpr bool operator== (ROPID const &a, ROPID const &b)
 Comparison: the IDs point to the same ROP (validity is ignored) More...
 
constexpr bool operator!= (ROPID const &a, ROPID const &b)
 Comparison: the IDs point to different ROPs (validity is ignored) More...
 
constexpr bool operator< (ROPID const &a, ROPID const &b)
 Order ROPID in increasing Cryo, then TPC set, then ROP. More...
 

Typedef Documentation

Definition at line 62 of file readout_types.h.

Function Documentation

constexpr bool readout::operator!= ( TPCsetID const &  a,
TPCsetID const &  b 
)
inline

Comparison: the IDs point to different TPC sets (validity is ignored)

Definition at line 261 of file readout_types.h.

References geo::CryostatID::asCryostatID(), and readout::TPCsetID::TPCset.

262  {
263  return (a.asCryostatID() != b.asCryostatID()) || (a.TPCset != b.TPCset);
264  } // operator!= (TPCsetID, TPCsetID)
constexpr bool readout::operator!= ( ROPID const &  a,
ROPID const &  b 
)
inline

Comparison: the IDs point to different ROPs (validity is ignored)

Definition at line 283 of file readout_types.h.

References readout::TPCsetID::asTPCsetID(), and readout::ROPID::ROP.

284  {
285  return (a.asTPCsetID() != b.asTPCsetID()) || (a.ROP != b.ROP);
286  } // operator!= (ROPID, ROPID)
constexpr bool readout::operator< ( TPCsetID const &  a,
TPCsetID const &  b 
)
inline

Order TPCsetID in increasing Cryo, then TPC set.

Definition at line 267 of file readout_types.h.

References geo::CryostatID::asCryostatID(), geo::CryostatID::cmp(), and readout::TPCsetID::TPCset.

268  {
269  int cmp_res = a.asCryostatID().cmp(b);
270  if (cmp_res == 0) // same cryostat: compare TPC set
271  return a.TPCset < b.TPCset;
272  else // return the order of cryostats
273  return cmp_res < 0;
274  } // operator< (TPCsetID, TPCsetID)
constexpr bool readout::operator< ( ROPID const &  a,
ROPID const &  b 
)
inline

Order ROPID in increasing Cryo, then TPC set, then ROP.

Definition at line 289 of file readout_types.h.

References readout::TPCsetID::asTPCsetID(), readout::TPCsetID::cmp(), and readout::ROPID::ROP.

290  {
291  int cmp_res = a.asTPCsetID().cmp(b);
292  if (cmp_res == 0) // same TPC set: compare ROP
293  return a.ROP < b.ROP;
294  else // return the order of TPC set
295  return cmp_res < 0;
296  } // operator< (ROPID, ROPID)
std::ostream& readout::operator<< ( std::ostream &  out,
TPCsetID const &  sid 
)
inline

Generic output of TPCsetID to stream.

Definition at line 304 of file readout_types.h.

References geo::CryostatID::asCryostatID(), and readout::TPCsetID::TPCset.

305  {
306  out << sid.asCryostatID() << " S:" << sid.TPCset;
307  return out;
308  } // operator<< (TPCsetID)
std::ostream& readout::operator<< ( std::ostream &  out,
ROPID const &  rid 
)
inline

Definition at line 310 of file readout_types.h.

References readout::TPCsetID::asTPCsetID(), and readout::ROPID::ROP.

311  {
312  out << rid.asTPCsetID() << " R:" << rid.ROP;
313  return out;
314  } // operator<< (ROPID)
constexpr bool readout::operator== ( TPCsetID const &  a,
TPCsetID const &  b 
)
inline

Comparison: the IDs point to the same TPC set (validity is ignored)

Definition at line 255 of file readout_types.h.

References geo::CryostatID::asCryostatID(), and readout::TPCsetID::TPCset.

256  {
257  return (a.asCryostatID() == b.asCryostatID()) && (a.TPCset == b.TPCset);
258  } // operator== (TPCsetID, TPCsetID)
constexpr bool readout::operator== ( ROPID const &  a,
ROPID const &  b 
)
inline

Comparison: the IDs point to the same ROP (validity is ignored)

Definition at line 277 of file readout_types.h.

References readout::TPCsetID::asTPCsetID(), and readout::ROPID::ROP.

278  {
279  return (a.asTPCsetID() == b.asTPCsetID()) && (a.ROP == b.ROP);
280  } // operator== (ROPID, ROPID)