All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
icarus::trigger::WindowChannelMap::WindowInfo_t Struct Reference

Information of a single window. More...

#include <WindowChannelMap.h>

Inheritance diagram for icarus::trigger::WindowChannelMap::WindowInfo_t:
icarus::trigger::WindowChannelMap::WindowComposition_t icarus::trigger::WindowChannelMap::WindowTopology_t

Public Member Functions

void dump (std::ostream &out, std::string const &indent="") const
 Prints the information content (single line). More...
 
- Public Member Functions inherited from icarus::trigger::WindowChannelMap::WindowComposition_t
bool hasCryostat () const
 Returns whether the window is in a single, known cryostat. More...
 
- Public Member Functions inherited from icarus::trigger::WindowChannelMap::WindowTopology_t
bool hasUpstreamWindow () const
 Returns whether the main window has another upstream of it. More...
 
bool hasDownstreamWindow () const
 Returns whether the main window has another downstream of it. More...
 
bool hasOppositeWindow () const
 Returns whether the main window has another downstream of it. More...
 

Public Attributes

WindowComposition_t composition
 
WindowTopology_t topology
 
- Public Attributes inherited from icarus::trigger::WindowChannelMap::WindowComposition_t
geo::Point_t center
 Center of the window. More...
 
geo::CryostatID cryoid
 Which cryostat the channels are in. More...
 
std::vector< raw::Channel_tchannels
 Optical detector channels covered by this window. More...
 
- Public Attributes inherited from icarus::trigger::WindowChannelMap::WindowTopology_t
WindowIndex_t index
 Index of the window this information is about. More...
 
WindowIndex_t opposite { InvalidWindowIndex }
 Index of the window opposite to this one. More...
 
WindowIndex_t upstream { InvalidWindowIndex }
 Index of the window upstream of this one. More...
 
WindowIndex_t downstream { InvalidWindowIndex }
 Index of the window downstream of this one. More...
 

Detailed Description

Information of a single window.

Definition at line 103 of file WindowChannelMap.h.

Member Function Documentation

void icarus::trigger::WindowChannelMap::WindowInfo_t::dump ( std::ostream &  out,
std::string const &  indent = "" 
) const

Prints the information content (single line).

Definition at line 23 of file WindowChannelMap.cxx.

24 {
25  out << indent << "window #" << index << " at " << center << " cm";
26  if (hasCryostat()) out << " in " << cryoid;
27  else out << " (cryostat undefined)";
28  out << " includes " << channels.size() << " channels";
29  if (!channels.empty())
30  out << " (" << icarus::makeIntegerRanges(channels) << ")";
31  if (hasOppositeWindow()) out << " opposite to [#" << opposite << "]";
32  if (hasUpstreamWindow()) out << " downstream of [#" << upstream << "]";
33  if (hasDownstreamWindow()) out << " upstream of [#" << downstream << "]";
34 } // icarus::trigger::WindowChannelMap::WindowInfo_t::dump()
WindowIndex_t upstream
Index of the window upstream of this one.
bool hasCryostat() const
Returns whether the window is in a single, known cryostat.
bool hasUpstreamWindow() const
Returns whether the main window has another upstream of it.
bool hasDownstreamWindow() const
Returns whether the main window has another downstream of it.
WindowIndex_t downstream
Index of the window downstream of this one.
bool hasOppositeWindow() const
Returns whether the main window has another downstream of it.
IntegerRanges< typename Coll::value_type, CheckGrowing > makeIntegerRanges(Coll const &coll)
geo::CryostatID cryoid
Which cryostat the channels are in.
std::vector< raw::Channel_t > channels
Optical detector channels covered by this window.
WindowIndex_t opposite
Index of the window opposite to this one.
WindowIndex_t index
Index of the window this information is about.

Member Data Documentation

WindowComposition_t icarus::trigger::WindowChannelMap::WindowInfo_t::composition

Definition at line 105 of file WindowChannelMap.h.

WindowTopology_t icarus::trigger::WindowChannelMap::WindowInfo_t::topology

Definition at line 107 of file WindowChannelMap.h.


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