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);
211 std::ostringstream os;
231 G4cout <<
"B02ImportanceDetectorConstruction::GetGeometryCell: " <<
G4endl 232 <<
" couldn't get G4GeometryCell" <<
G4endl;
278 G4String concreteSDname =
"ConcreteSD";
297 for (std::vector<G4LogicalVolume *>::iterator it =
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);
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
G4bool RegisterPrimitive(G4VPrimitiveScorer *)
G4String GetPNames() const
virtual ~B02ImportanceDetectorConstruction()
G4VPhysicalVolume * fGhostWorld
CLHEP::Hep3Vector G4ThreeVector
G4VPhysicalVolume * GetWorld()
const G4VPhysicalVolume & GetPhysicalVolumeByName(const G4String &name) const
void AddLowerWeights(const G4GeometryCell &gCell, const std::vector< G4double > &lowerWeights)
B02ImportanceDetectorConstruction(G4String worldName)
G4GeometryCell GetGeometryCell(G4int i)
G4String GetCellName(G4int i)
std::vector< G4LogicalVolume *> fLogicalVolumeVector
void Weighted(G4bool flg=true)
const G4VPhysicalVolume * GetPVolume(const G4String &name) const
void SetSensitiveDetector(const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
void Weighted(G4bool flg=true)
G4GLOB_DLL std::ostream G4cout
void AddImportanceGeometryCell(G4double importance, const G4GeometryCell &gCell)
void SetFilter(G4VSDFilter *value)
static G4WeightWindowStore * GetInstance()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void AddNewDetector(G4VSensitiveDetector *aSD)
const G4String & GetName() const
static G4IStore * GetInstance()
G4VWeightWindowStore * CreateWeightWindowStore()
G4VPhysicalVolume * GetWorldVolume()
static G4SDManager * GetSDMpointer()
void MultiplyKineticEnergy(G4bool flg=true)
void SetGeneralUpperEnergyBounds(const std::set< G4double, std::less< G4double > > &enBounds)
G4VIStore * CreateImportanceStore()
G4LogicalVolume * GetLogicalVolume() const
G4VPhysicalVolume & GetWorldVolumeAddress() const
void DivideByVelocity(G4bool flg=true)
const G4VPhysicalVolume & GetPhysicalVolume() const
virtual void ConstructSD()
B02PVolumeStore fPVolumeStore
Definition of the B02ImportanceDetectorConstruction class.
void AddPVolume(const G4GeometryCell &cell)
G4String ListPhysNamesAsG4String()