LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
larg4::SimpleWireplaneAction Class Reference

#include "OpParamAction.h"

Inheritance diagram for larg4::SimpleWireplaneAction:
larg4::OpParamAction

Public Member Functions

 SimpleWireplaneAction (TVector3 WireDirection, TVector3 PlaneNormal, double WirePitch, double WireDiameter)
 
 SimpleWireplaneAction (std::vector< std::vector< double > >, int)
 
 ~SimpleWireplaneAction ()
 
double GetAttenuationFraction (G4ThreeVector PhotonDirection, G4ThreeVector PhotonPosition)
 

Private Attributes

G4ThreeVector fWireDirection
 
G4ThreeVector fPlaneNormal
 
double fDPRatio
 

Detailed Description

Definition at line 76 of file OpParamAction.h.

Constructor & Destructor Documentation

larg4::SimpleWireplaneAction::SimpleWireplaneAction ( TVector3  WireDirection,
TVector3  PlaneNormal,
double  WirePitch,
double  WireDiameter 
)

Definition at line 45 of file OpParamAction.cxx.

46  {
47  fWireDirection = G4ThreeVector(WireDirection.X(),
48  WireDirection.Y(),
49  WireDirection.Z()).unit();
50  fPlaneNormal = G4ThreeVector(PlaneNormal.X(),
51  PlaneNormal.Y(),
52  PlaneNormal.Z()).unit();
53  fDPRatio = WireDiameter/WirePitch;
54  }
larg4::SimpleWireplaneAction::SimpleWireplaneAction ( std::vector< std::vector< double > >  ,
int   
)
larg4::SimpleWireplaneAction::~SimpleWireplaneAction ( )

Definition at line 58 of file OpParamAction.cxx.

59  {
60  }

Member Function Documentation

double larg4::SimpleWireplaneAction::GetAttenuationFraction ( G4ThreeVector  PhotonDirection,
G4ThreeVector  PhotonPosition 
)
virtual

Reimplemented from larg4::OpParamAction.

Definition at line 68 of file OpParamAction.cxx.

69  {
70  G4ThreeVector ProjDirection = PhotonDirection - fWireDirection*(fWireDirection.dot(PhotonDirection));
71  double CosTheta = std::abs(fPlaneNormal.dot(ProjDirection));
72  if(CosTheta < fDPRatio)
73  return 0;
74  else
75  return (1.0 - fDPRatio / CosTheta);
76  }

Member Data Documentation

double larg4::SimpleWireplaneAction::fDPRatio
private

Definition at line 88 of file OpParamAction.h.

G4ThreeVector larg4::SimpleWireplaneAction::fPlaneNormal
private

Definition at line 87 of file OpParamAction.h.

G4ThreeVector larg4::SimpleWireplaneAction::fWireDirection
private

Definition at line 86 of file OpParamAction.h.


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