#include "OpParamSD.h"
Definition at line 58 of file OpParamSD.h.
larg4::OpParamSD::OpParamSD |
( |
G4String |
name, |
|
|
std::string |
ModelName, |
|
|
int |
Orientation, |
|
|
std::vector< std::vector< double > > |
Parameters |
|
) |
| |
Definition at line 33 of file OpParamSD.cxx.
References fOpa.
34 : G4VSensitiveDetector(DetectorUniqueName)
37 G4SDManager::GetSDMpointer()->AddNewDetector(
this);
39 if(ModelName ==
"OverlaidWireplanes")
40 fOpa =
new OverlaidWireplanesAction(ModelParameters, Orientation);
42 else if(ModelName ==
"TransparentPlaneAction")
43 fOpa =
new TransparentPlaneAction();
53 throw cet::exception(
"OpParamSD")<<
"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 |
( |
void |
| ) |
|
|
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 61 of file OpParamSD.cxx.
References fOpa, fPhotonAlreadyCrossed, G4BooleanRand(), and larg4::OpParamAction::GetAttenuationFraction().
64 const G4Track* aTrack = aStep->GetTrack();
65 const G4DynamicParticle* aParticle = aTrack->GetDynamicParticle();
68 G4ThreeVector mom = aParticle->GetMomentumDirection();
69 G4ThreeVector pos = aStep->GetPostStepPoint()->GetPosition();
80 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: