ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Public Member Functions | |
RE02DetectorConstruction () | |
virtual | ~RE02DetectorConstruction () |
virtual G4VPhysicalVolume * | Construct () |
virtual void | ConstructSDandField () |
void | SetPhantomSize (G4ThreeVector size) |
const G4ThreeVector & | GetPhantomSize () const |
void | SetNumberOfSegmentsInPhantom (G4int nx, G4int ny, G4int nz) |
void | GetNumberOfSegmentsInPhantom (G4int &nx, G4int &ny, G4int &nz) const |
void | SetLeadSegment (G4bool flag=TRUE) |
G4bool | IsLeadSegment () |
Public Member Functions inherited from G4VUserDetectorConstruction | |
G4VUserDetectorConstruction () | |
virtual | ~G4VUserDetectorConstruction () |
virtual void | CloneSD () |
virtual void | CloneF () |
void | RegisterParallelWorld (G4VUserParallelWorld *) |
G4int | ConstructParallelGeometries () |
void | ConstructParallelSD () |
G4int | GetNumberOfParallelWorld () const |
G4VUserParallelWorld * | GetParallelWorld (G4int i) const |
Private Attributes | |
G4ThreeVector | fPhantomSize |
G4int | fNx |
G4int | fNy |
G4int | fNz |
G4bool | fInsertLead |
G4LogicalVolume * | fLVPhantomSens |
Additional Inherited Members | |
Protected Member Functions inherited from G4VUserDetectorConstruction | |
void | SetSensitiveDetector (const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false) |
void | SetSensitiveDetector (G4LogicalVolume *logVol, G4VSensitiveDetector *aSD) |
Uer detector construction class
(Description)
Detector construction for example RE02.
[Geometry] The world volume is defined as 200 cm x 200 cm x 200 cm box with Air. Water phantom is defined as 200 mm x 200 mm x 400 mm box with Water. The water phantom is divided into 100 segments in x,y plane using replication, and then divided into 200 segments perpendicular to z axis using nested parameterised volume. These values are defined at constructor, e.g. the size of water phantom (fPhantomSize), and number of segmentation of water phantom (fNx, fNy, fNz).
By default, lead plates are inserted into the position of even order segments. NIST database is used for materials.
[Scorer] Assignment of G4MultiFunctionalDetector and G4PrimitiveScorer
The collection names of defined Primitives are 0 PhantomSD/totalEDep 1 PhantomSD/protonEDep 2 PhantomSD/protonNStep 3 PhantomSD/chargedPassCellFlux 4 PhantomSD/chargedCellFlux 5 PhantomSD/chargedSurfFlux 6 PhantomSD/gammaSurfCurr000 7 PhantomSD/gammaSurfCurr001 9 PhantomSD/gammaSurdCurr002
Please see README for detail description.
Definition at line 110 of file RE02DetectorConstruction.hh.
View newest version in sPHENIX GitHub at line 110 of file RE02DetectorConstruction.hh
RE02DetectorConstruction::RE02DetectorConstruction | ( | ) |
Definition at line 105 of file RE02DetectorConstruction.cc.
View newest version in sPHENIX GitHub at line 105 of file RE02DetectorConstruction.cc
References fInsertLead, fNx, fNy, fNz, fPhantomSize, mm, CLHEP::Hep3Vector::setX(), CLHEP::Hep3Vector::setY(), CLHEP::Hep3Vector::setZ(), and TRUE.
|
virtual |
Definition at line 117 of file RE02DetectorConstruction.cc.
View newest version in sPHENIX GitHub at line 117 of file RE02DetectorConstruction.cc
|
virtual |
Implements G4VUserDetectorConstruction.
Definition at line 121 of file RE02DetectorConstruction.cc.
View newest version in sPHENIX GitHub at line 121 of file RE02DetectorConstruction.cc
References cm, G4NistManager::FindOrBuildMaterial(), fLVPhantomSens, fNx, fNy, fNz, fPhantomSize, G4cout, G4endl, G4VisAttributes::GetInvisible(), G4Material::GetMaterialTable(), G4NistManager::Instance(), IsLeadSegment(), kUndefined, kXAxis, kYAxis, mm, G4LogicalVolume::SetVisAttributes(), CLHEP::Hep3Vector::setX(), CLHEP::Hep3Vector::setY(), CLHEP::Hep3Vector::setZ(), CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
|
virtual |
Reimplemented from G4VUserDetectorConstruction.
Definition at line 291 of file RE02DetectorConstruction.cc.
View newest version in sPHENIX GitHub at line 291 of file RE02DetectorConstruction.cc
References G4SDParticleWithEnergyFilter::add(), G4SDParticleFilter::add(), G4SDManager::AddNewDetector(), fCurrent_InOut, fFlux_InOut, fLVPhantomSens, fNx, fNy, fNz, G4SDManager::GetSDMpointer(), keV, G4MultiFunctionalDetector::RegisterPrimitive(), G4VPrimitiveScorer::SetFilter(), G4LogicalVolume::SetSensitiveDetector(), and G4SDParticleWithEnergyFilter::show().
|
inline |
Definition at line 130 of file RE02DetectorConstruction.hh.
View newest version in sPHENIX GitHub at line 130 of file RE02DetectorConstruction.hh
Referenced by RE02RunAction::EndOfRunAction().
|
inline |
Definition at line 126 of file RE02DetectorConstruction.hh.
View newest version in sPHENIX GitHub at line 126 of file RE02DetectorConstruction.hh
References fPhantomSize.
|
inline |
Definition at line 134 of file RE02DetectorConstruction.hh.
View newest version in sPHENIX GitHub at line 134 of file RE02DetectorConstruction.hh
References fInsertLead.
Referenced by Construct().
Definition at line 133 of file RE02DetectorConstruction.hh.
View newest version in sPHENIX GitHub at line 133 of file RE02DetectorConstruction.hh
References fInsertLead.
Referenced by main().
Definition at line 128 of file RE02DetectorConstruction.hh.
View newest version in sPHENIX GitHub at line 128 of file RE02DetectorConstruction.hh
Referenced by main().
|
inline |
Definition at line 125 of file RE02DetectorConstruction.hh.
View newest version in sPHENIX GitHub at line 125 of file RE02DetectorConstruction.hh
References fPhantomSize.
Referenced by main().
|
private |
Definition at line 140 of file RE02DetectorConstruction.hh.
View newest version in sPHENIX GitHub at line 140 of file RE02DetectorConstruction.hh
Referenced by IsLeadSegment(), RE02DetectorConstruction(), and SetLeadSegment().
|
private |
Definition at line 141 of file RE02DetectorConstruction.hh.
View newest version in sPHENIX GitHub at line 141 of file RE02DetectorConstruction.hh
Referenced by Construct(), and ConstructSDandField().
|
private |
Definition at line 139 of file RE02DetectorConstruction.hh.
View newest version in sPHENIX GitHub at line 139 of file RE02DetectorConstruction.hh
Referenced by Construct(), ConstructSDandField(), GetNumberOfSegmentsInPhantom(), RE02DetectorConstruction(), and SetNumberOfSegmentsInPhantom().
|
private |
Definition at line 139 of file RE02DetectorConstruction.hh.
View newest version in sPHENIX GitHub at line 139 of file RE02DetectorConstruction.hh
Referenced by Construct(), ConstructSDandField(), GetNumberOfSegmentsInPhantom(), RE02DetectorConstruction(), and SetNumberOfSegmentsInPhantom().
|
private |
Definition at line 139 of file RE02DetectorConstruction.hh.
View newest version in sPHENIX GitHub at line 139 of file RE02DetectorConstruction.hh
Referenced by Construct(), ConstructSDandField(), GetNumberOfSegmentsInPhantom(), RE02DetectorConstruction(), and SetNumberOfSegmentsInPhantom().
|
private |
Definition at line 138 of file RE02DetectorConstruction.hh.
View newest version in sPHENIX GitHub at line 138 of file RE02DetectorConstruction.hh
Referenced by Construct(), GetPhantomSize(), RE02DetectorConstruction(), and SetPhantomSize().