Public Member Functions | Public Attributes | List of all members
WireCell::Response::Schema::FieldResponse Struct Reference

Hold info about multiple plane responses in the detector. More...

#include <Response.h>

Public Member Functions

PlaneResponseplane (int ident)
 
const PlaneResponseplane (int ident) const
 
 FieldResponse ()
 
 FieldResponse (const std::vector< PlaneResponse > &planes, const WireCell::Vector &adir, double o, double t, double p, double s)
 
 ~FieldResponse ()
 

Public Attributes

std::vector< PlaneResponseplanes
 List of PlaneResponse objects. More...
 
WireCell::Vector axis
 
double origin
 
double tstart
 Time at which drift paths begin. More...
 
double period
 The sampling period of the response function. More...
 
double speed
 The nominal drift speed. More...
 

Detailed Description

Hold info about multiple plane responses in the detector.

Definition at line 75 of file Response.h.

Constructor & Destructor Documentation

WireCell::Response::Schema::FieldResponse::FieldResponse ( )
inline

Definition at line 114 of file Response.h.

114 : origin(-999.0), tstart(-999.0), period(0.0), speed(0.0) {}
double tstart
Time at which drift paths begin.
Definition: Response.h:89
double period
The sampling period of the response function.
Definition: Response.h:92
double speed
The nominal drift speed.
Definition: Response.h:95
WireCell::Response::Schema::FieldResponse::FieldResponse ( const std::vector< PlaneResponse > &  planes,
const WireCell::Vector adir,
double  o,
double  t,
double  p,
double  s 
)
inline

Definition at line 115 of file Response.h.

117  : planes(planes), axis(adir), origin(o), tstart(t), period(p), speed(s) {}
double tstart
Time at which drift paths begin.
Definition: Response.h:89
double period
The sampling period of the response function.
Definition: Response.h:92
std::vector< PlaneResponse > planes
List of PlaneResponse objects.
Definition: Response.h:78
p
Definition: test.py:223
static QCString * s
Definition: config.cpp:1042
double speed
The nominal drift speed.
Definition: Response.h:95
Response::Schema::FieldResponse::~FieldResponse ( )

Definition at line 13 of file Response.cxx.

14 {
15 }

Member Function Documentation

PlaneResponse* WireCell::Response::Schema::FieldResponse::plane ( int  ident)
inline

Definition at line 97 of file Response.h.

97  {
98  for (auto& pr : planes) {
99  if (pr.planeid == ident) {
100  return &pr;
101  }
102  }
103  return nullptr;
104  }
std::vector< PlaneResponse > planes
List of PlaneResponse objects.
Definition: Response.h:78
const PlaneResponse* WireCell::Response::Schema::FieldResponse::plane ( int  ident) const
inline

Definition at line 105 of file Response.h.

105  {
106  for (auto& pr : planes) {
107  if (pr.planeid == ident) {
108  return &pr;
109  }
110  }
111  return nullptr;
112  }
std::vector< PlaneResponse > planes
List of PlaneResponse objects.
Definition: Response.h:78

Member Data Documentation

WireCell::Vector WireCell::Response::Schema::FieldResponse::axis

A normalized 3-vector giving direction of axis (anti)parallel to nominal drift direction.

Definition at line 82 of file Response.h.

double WireCell::Response::Schema::FieldResponse::origin

The location on the X-axis where drift paths begin. See PlaneResponse::location.

Definition at line 86 of file Response.h.

double WireCell::Response::Schema::FieldResponse::period

The sampling period of the response function.

Definition at line 92 of file Response.h.

std::vector<PlaneResponse> WireCell::Response::Schema::FieldResponse::planes

List of PlaneResponse objects.

Definition at line 78 of file Response.h.

double WireCell::Response::Schema::FieldResponse::speed

The nominal drift speed.

Definition at line 95 of file Response.h.

double WireCell::Response::Schema::FieldResponse::tstart

Time at which drift paths begin.

Definition at line 89 of file Response.h.


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