LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
shower::HitPosition Class Reference

#include "EMShowerAlg.h"

Public Member Functions

 HitPosition ()
 
 HitPosition (TVector2 wiretick, TVector2 cm)
 
 HitPosition (TVector2 wiretick, geo::PlaneID planeID)
 
TVector2 ConvertWireTickToCm (TVector2 wiretick, geo::PlaneID planeID)
 

Public Attributes

TVector2 WireTick
 
TVector2 Cm
 

Private Attributes

geo::GeometryCore const * fGeom = nullptr
 
detinfo::DetectorProperties const * fDetProp = nullptr
 

Detailed Description

Definition at line 258 of file EMShowerAlg.h.

Constructor & Destructor Documentation

shower::HitPosition::HitPosition ( )

Definition at line 2217 of file EMShowerAlg.cxx.

2218  : fGeom(lar::providerFrom<geo::Geometry>())
2219  , fDetProp(lar::providerFrom<detinfo::DetectorPropertiesService>())
2220  {}
detinfo::DetectorProperties const * fDetProp
Definition: EMShowerAlg.h:285
geo::GeometryCore const * fGeom
Definition: EMShowerAlg.h:284
shower::HitPosition::HitPosition ( TVector2  wiretick,
TVector2  cm 
)
inline

Definition at line 267 of file EMShowerAlg.h.

267  : HitPosition()
268  {
269  WireTick = wiretick;
270  Cm = cm;
271  }
shower::HitPosition::HitPosition ( TVector2  wiretick,
geo::PlaneID  planeID 
)
inline

Definition at line 272 of file EMShowerAlg.h.

272  : HitPosition() {
273  WireTick = wiretick;
274  Cm = ConvertWireTickToCm(wiretick, planeID);
275  }
TVector2 ConvertWireTickToCm(TVector2 wiretick, geo::PlaneID planeID)
Definition: EMShowerAlg.h:277

Member Function Documentation

TVector2 shower::HitPosition::ConvertWireTickToCm ( TVector2  wiretick,
geo::PlaneID  planeID 
)
inline

Definition at line 277 of file EMShowerAlg.h.

References detinfo::DetectorProperties::ConvertTicksToX(), shower::EMShowerAlg::fDetProp, shower::EMShowerAlg::fGeom, and geo::GeometryCore::WirePitch().

277  {
278  return TVector2(wiretick.X() * fGeom->WirePitch(planeID),
279  fDetProp->ConvertTicksToX(wiretick.Y(), planeID));
280  }
detinfo::DetectorProperties const * fDetProp
Definition: EMShowerAlg.h:285
geo::Length_t WirePitch(geo::PlaneID const &planeid) const
Returns the distance between two consecutive wires.
geo::GeometryCore const * fGeom
Definition: EMShowerAlg.h:284
virtual double ConvertTicksToX(double ticks, int p, int t, int c) const =0

Member Data Documentation

TVector2 shower::HitPosition::Cm

Definition at line 262 of file EMShowerAlg.h.

detinfo::DetectorProperties const* shower::HitPosition::fDetProp = nullptr
private

Definition at line 285 of file EMShowerAlg.h.

geo::GeometryCore const* shower::HitPosition::fGeom = nullptr
private

Definition at line 284 of file EMShowerAlg.h.

TVector2 shower::HitPosition::WireTick

Definition at line 261 of file EMShowerAlg.h.


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