#include "OpParamSD.h"
Definition at line 48 of file OpParamSD.h.
larg4::OpParamSD::OpParamSD |
( |
G4String |
name, |
|
|
std::string |
ModelName, |
|
|
int |
Orientation, |
|
|
std::vector< std::vector< double >> |
Parameters |
|
) |
| |
Definition at line 27 of file OpParamSD.cxx.
References fOpa.
31 : G4VSensitiveDetector(DetectorUniqueName)
34 G4SDManager::GetSDMpointer()->AddNewDetector(
this);
36 if (ModelName ==
"OverlaidWireplanes")
37 fOpa =
new OverlaidWireplanesAction(ModelParameters, Orientation);
39 else if (ModelName ==
"TransparentPlaneAction")
40 fOpa =
new TransparentPlaneAction();
49 <<
"Error: Optical parameterization model " << ModelName <<
" not found.\n";
cet::coded_exception< error, detail::translate > exception
virtual larg4::OpParamSD::~OpParamSD |
( |
| ) |
|
|
inlinevirtual |
virtual void larg4::OpParamSD::clear |
( |
| ) |
|
|
inlinevirtual |
virtual void larg4::OpParamSD::DrawAll |
( |
| ) |
|
|
inlinevirtual |
G4bool larg4::OpParamSD::G4BooleanRand |
( |
const G4double |
prob | ) |
const |
|
inlineprivate |
virtual void larg4::OpParamSD::PrintAll |
( |
| ) |
|
|
inlinevirtual |
G4bool larg4::OpParamSD::ProcessHits |
( |
G4Step * |
aStep, |
|
|
G4TouchableHistory * |
|
|
) |
| |
|
virtual |
Definition at line 55 of file OpParamSD.cxx.
References fOpa, fPhotonAlreadyCrossed, G4BooleanRand(), and larg4::OpParamAction::GetAttenuationFraction().
Referenced by clear().
58 const G4Track* aTrack = aStep->GetTrack();
59 const G4DynamicParticle* aParticle = aTrack->GetDynamicParticle();
61 G4ThreeVector mom = aParticle->GetMomentumDirection();
62 G4ThreeVector pos = aStep->GetPostStepPoint()->GetPosition();
70 aStep->GetTrack()->SetTrackStatus(fStopAndKill);
G4bool G4BooleanRand(const G4double prob) const
std::map< G4int, bool > fPhotonAlreadyCrossed
virtual double GetAttenuationFraction(G4ThreeVector PhotonDirection, G4ThreeVector PhotonPosition)
std::map<G4int, bool> larg4::OpParamSD::fPhotonAlreadyCrossed |
|
private |
The documentation for this class was generated from the following files: