Public Types | Public Member Functions | Public Attributes | List of all members
WireCell::Gen::Drifter::Xregion Struct Reference

Public Types

typedef std::set< IDepo::pointer, DepoTimeCompareordered_depos_t
 

Public Member Functions

 Xregion (Configuration cfg)
 
bool inside_bulk (double x) const
 
bool inside_response (double x) const
 

Public Attributes

double anode
 
double response
 
double cathode
 
ordered_depos_t depos
 

Detailed Description

Definition at line 160 of file Drifter.h.

Member Typedef Documentation

Definition at line 163 of file Drifter.h.

Constructor & Destructor Documentation

Gen::Drifter::Xregion::Xregion ( Configuration  cfg)

Definition at line 35 of file Drifter.cxx.

36  : anode(0.0)
37  , response(0.0)
38  , cathode(0.0)
39 {
40  auto ja = cfg["anode"];
41  auto jr = cfg["response"];
42  auto jc = cfg["cathode"];
43  if (ja.isNull()) { ja = jr; }
44  if (jr.isNull()) { jr = ja; }
45  anode = ja.asDouble();
46  response = jr.asDouble();
47  cathode = jc.asDouble();
48 }
cfg
Definition: dbjson.py:29

Member Function Documentation

bool Gen::Drifter::Xregion::inside_bulk ( double  x) const

Definition at line 53 of file Drifter.cxx.

54 {
55  return (response < x and x < cathode) or (cathode < x and x < response);
56 }
list x
Definition: train.py:276
bool Gen::Drifter::Xregion::inside_response ( double  x) const

Definition at line 49 of file Drifter.cxx.

50 {
51  return (anode < x and x < response) or (response < x and x < anode);
52 }
list x
Definition: train.py:276

Member Data Documentation

double WireCell::Gen::Drifter::Xregion::anode

Definition at line 162 of file Drifter.h.

double WireCell::Gen::Drifter::Xregion::cathode

Definition at line 162 of file Drifter.h.

ordered_depos_t WireCell::Gen::Drifter::Xregion::depos

Definition at line 164 of file Drifter.h.

double WireCell::Gen::Drifter::Xregion::response

Definition at line 162 of file Drifter.h.


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