#include <B02ImportanceDetectorConstruction.hh>
◆ B02ImportanceDetectorConstruction()
B02ImportanceDetectorConstruction::B02ImportanceDetectorConstruction |
( |
G4String |
worldName | ) |
|
◆ ~B02ImportanceDetectorConstruction()
B02ImportanceDetectorConstruction::~B02ImportanceDetectorConstruction |
( |
| ) |
|
|
virtual |
◆ Construct()
void B02ImportanceDetectorConstruction::Construct |
( |
void |
| ) |
|
|
virtual |
Implements G4VUserParallelWorld.
Definition at line 79 of file B02ImportanceDetectorConstruction.cc.
88 G4cout <<
" B02ImportanceDetectorConstruction:: ghostWorldName = " 114 spanningAngleShield);
127 for (i=1; i<=18; i++) {
133 G4double pos_z = startz + (i-1) * (2*heightShield);
151 innerRadiusShield = 0*
cm;
153 outerRadiusShield = 100*
cm;
156 startAngleShield = 0*
deg;
157 spanningAngleShield = 360*
deg;
164 spanningAngleShield);
G4VPhysicalVolume * fGhostWorld
CLHEP::Hep3Vector G4ThreeVector
G4VPhysicalVolume * GetWorld()
G4String GetCellName(G4int i)
std::vector< G4LogicalVolume *> fLogicalVolumeVector
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
G4LogicalVolume * GetLogicalVolume() const
B02PVolumeStore fPVolumeStore
void AddPVolume(const G4GeometryCell &cell)
◆ ConstructSD()
void B02ImportanceDetectorConstruction::ConstructSD |
( |
| ) |
|
|
virtual |
Reimplemented from G4VUserParallelWorld.
Definition at line 272 of file B02ImportanceDetectorConstruction.cc.
278 G4String concreteSDname =
"ConcreteSD";
297 for (std::vector<G4LogicalVolume *>::iterator it =
G4bool RegisterPrimitive(G4VPrimitiveScorer *)
std::vector< G4LogicalVolume *> fLogicalVolumeVector
void Weighted(G4bool flg=true)
void SetSensitiveDetector(const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
void Weighted(G4bool flg=true)
void SetFilter(G4VSDFilter *value)
void AddNewDetector(G4VSensitiveDetector *aSD)
static G4SDManager * GetSDMpointer()
void MultiplyKineticEnergy(G4bool flg=true)
void DivideByVelocity(G4bool flg=true)
◆ CreateImportanceStore()
G4VIStore * B02ImportanceDetectorConstruction::CreateImportanceStore |
( |
| ) |
|
Definition at line 346 of file B02ImportanceDetectorConstruction.cc.
350 G4cout <<
" B02ImportanceDetectorConstruction:: Creating Importance Store " 354 G4Exception(
"B02ImportanceDetectorConstruction::CreateImportanceStore" 356 ,
"no physical volumes created yet!");
373 for (cell=1; cell<=18; cell++) {
375 G4cout <<
" adding cell: " << cell
378 imp = std::pow(2.0,cell-1);
380 G4cout <<
"Going to assign importance: " << imp <<
", to volume: " 393 imp = std::pow(2.0,17);
G4int GetReplicaNumber() const
G4GeometryCell GetGeometryCell(G4int i)
G4GLOB_DLL std::ostream G4cout
void AddImportanceGeometryCell(G4double importance, const G4GeometryCell &gCell)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4String & GetName() const
static G4IStore * GetInstance()
G4VPhysicalVolume & GetWorldVolumeAddress() const
const G4VPhysicalVolume & GetPhysicalVolume() const
B02PVolumeStore fPVolumeStore
◆ CreateWeightWindowStore()
Definition at line 403 of file B02ImportanceDetectorConstruction.cc.
405 G4cout <<
" B02ImportanceDetectorConstruction:: Creating Importance Store " 409 G4Exception(
"B02ImportanceDetectorConstruction::CreateWeightWindowStore" 411 ,
"no physical volumes created yet!");
423 std::set<G4double, std::less<G4double> > enBounds;
424 enBounds.insert(1 *
GeV);
429 std::vector<G4double> lowerWeights;
431 lowerWeights.push_back(1);
436 for (cell=1; cell<=18; cell++) {
438 G4cout <<
" adding cell: " << cell
442 lowerWeight = 1./std::pow(2., n++);
443 G4cout <<
"Going to assign lower weight: " << lowerWeight
446 lowerWeights.clear();
447 lowerWeights.push_back(lowerWeight);
G4int GetReplicaNumber() const
void AddLowerWeights(const G4GeometryCell &gCell, const std::vector< G4double > &lowerWeights)
G4GeometryCell GetGeometryCell(G4int i)
G4GLOB_DLL std::ostream G4cout
static G4WeightWindowStore * GetInstance()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4String & GetName() const
void SetGeneralUpperEnergyBounds(const std::set< G4double, std::less< G4double > > &enBounds)
G4VPhysicalVolume & GetWorldVolumeAddress() const
const G4VPhysicalVolume & GetPhysicalVolume() const
B02PVolumeStore fPVolumeStore
◆ GetCellName()
G4String B02ImportanceDetectorConstruction::GetCellName |
( |
G4int |
i | ) |
|
◆ GetGeometryCell()
Definition at line 223 of file B02ImportanceDetectorConstruction.cc.
231 G4cout <<
"B02ImportanceDetectorConstruction::GetGeometryCell: " <<
G4endl 232 <<
" couldn't get G4GeometryCell" <<
G4endl;
G4VPhysicalVolume * fGhostWorld
G4String GetCellName(G4int i)
const G4VPhysicalVolume * GetPVolume(const G4String &name) const
G4GLOB_DLL std::ostream G4cout
B02PVolumeStore fPVolumeStore
◆ GetPhysicalVolumeByName()
◆ GetWorldVolume()
◆ GetWorldVolumeAddress()
G4VPhysicalVolume & B02ImportanceDetectorConstruction::GetWorldVolumeAddress |
( |
| ) |
const |
◆ ListPhysNamesAsG4String()
G4String B02ImportanceDetectorConstruction::ListPhysNamesAsG4String |
( |
| ) |
|
◆ SetSensitive()
void B02ImportanceDetectorConstruction::SetSensitive |
( |
| ) |
|
◆ fGhostWorld
◆ fLogicalVolumeVector
std::vector< G4LogicalVolume * > B02ImportanceDetectorConstruction::fLogicalVolumeVector |
|
private |
◆ fPVolumeStore
The documentation for this class was generated from the following files: