#include <IcebergChannelGeo.h>
Definition at line 23 of file IcebergChannelGeo.h.
Definition at line 21 of file IcebergChannelGeo.cxx.
23 const string myname =
"IcebergChannelGeo::ctor: ";
24 if ( pgeo ==
nullptr )
return;
28 cout << myname <<
"WARNING: Iceberg mod is applied to non-Iceberg detector channels." <<
endl;
30 double ylo = 173.819 - 95.23;
33 if ( ends.first.y() > ends.second.y() ) {
34 Point firstPoint = ends.first;
35 ends.first = ends.second;
36 ends.second = firstPoint;
38 Point& plo = ends.first;
39 Point& phi = ends.second;
40 if ( phi.y() < ylo )
continue;
41 if ( plo.y() < ylo ) {
43 double slop = (plo.z() - phi.z())/(plo.y() - phi.y());
44 double zlo = phi.z() + slop*(ylo - phi.y());
48 if (
m_ends.size() == 0 ) {
52 if ( ends.first.y() <
m_bot.y() )
m_bot = ends.first;
std::vector< geo::WireID > ChannelToWire(raw::ChannelID_t const channel) const
Returns a list of wires connected to the specified TPC channel.
unsigned int Nchannels() const
Returns the number of TPC readout channels in the detector.
std::string DetectorName() const
Returns a string with the name of the detector, as configured.
void WireEndPoints(geo::WireID const &wireid, double *xyzStart, double *xyzEnd) const
Fills two arrays with the coordinates of the wire end points.
std::pair< Point, Point > EndPoints
QTextStream & endl(QTextStream &s)
IcebergChannelGeo::IcebergChannelGeo |
( |
Index |
icha | ) |
|
const Point& IcebergChannelGeo::bottom |
( |
| ) |
const |
|
inline |
Index IcebergChannelGeo::channel |
( |
| ) |
const |
|
inline |
bool IcebergChannelGeo::isValid |
( |
| ) |
const |
|
inline |
Index IcebergChannelGeo::nWires |
( |
| ) |
const |
|
inline |
const Point& IcebergChannelGeo::top |
( |
| ) |
const |
|
inline |
Point IcebergChannelGeo::m_bot |
|
private |
Index IcebergChannelGeo::m_icha |
|
private |
Point IcebergChannelGeo::m_top |
|
private |
bool IcebergChannelGeo::m_valid |
|
private |
The documentation for this class was generated from the following files: