#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 28 of file OpParamSD.cxx.
29 : G4VSensitiveDetector(DetectorUniqueName)
32 G4SDManager::GetSDMpointer()->AddNewDetector(
this);
34 if(ModelName ==
"OverlaidWireplanes")
35 fOpa =
new OverlaidWireplanesAction(ModelParameters, Orientation);
37 else if(ModelName ==
"TransparentPlaneAction")
38 fOpa =
new TransparentPlaneAction();
48 throw cet::exception(
"OpParamSD")<<
"Error: Optical parameterization model " << ModelName <<
" not found.\n";
virtual larg4::OpParamSD::~OpParamSD |
( |
| ) |
|
|
inlinevirtual |
virtual void larg4::OpParamSD::clear |
( |
| ) |
|
|
inlinevirtual |
virtual void larg4::OpParamSD::DrawAll |
( |
| ) |
|
|
inlinevirtual |
virtual void larg4::OpParamSD::EndOfEvent |
( |
G4HCofThisEvent * |
| ) |
|
|
inlinevirtual |
G4bool larg4::OpParamSD::G4BooleanRand |
( |
const G4double |
prob | ) |
const |
|
inlineprivate |
Definition at line 84 of file OpParamSD.h.
87 return (G4UniformRand() < prob);
void larg4::OpParamSD::Initialize |
( |
G4HCofThisEvent * |
| ) |
|
|
virtual |
Definition at line 83 of file OpParamSD.cxx.
std::map< G4int, bool > fPhotonAlreadyCrossed
virtual void larg4::OpParamSD::PrintAll |
( |
| ) |
|
|
inlinevirtual |
G4bool larg4::OpParamSD::ProcessHits |
( |
G4Step * |
aStep, |
|
|
G4TouchableHistory * |
|
|
) |
| |
|
virtual |
Definition at line 56 of file OpParamSD.cxx.
59 const G4Track* aTrack = aStep->GetTrack();
60 const G4DynamicParticle* aParticle = aTrack->GetDynamicParticle();
63 G4ThreeVector mom = aParticle->GetMomentumDirection();
64 G4ThreeVector pos = aStep->GetPostStepPoint()->GetPosition();
75 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: