Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Luter 345 Experiments
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Geant4 Simulation with Version 11.2.1
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
The edit appears to have already been undone.
Anti-spam check. Do
not
fill this in!
==Installing Geant4== '''CERN Geant4 Guide''': See [https://geant4-userdoc.web.cern.ch/UsersGuides/InstallationGuide/html/index.html here] for a walkthrough to install geant4. ==Geometry Setup== The geometry for the Geant4 simulation is defined in /home/jlabdaq/CDetMC/src/DetectorConstruction.cc ===General Construction=== * G4 GeometryManager *# Opens the geometry and removes optimizations (optionally, related to just the specified logical-volume). G4GeometryManager::OpenGeometry(G4VPhysicalVolume* pVolume) * G4LogicalVolume *# Constructor - sets member data and adds to logical Store, voxel pointer for optimization set to 0 by default.Initializes daughter vector to 0 length. G4LogicalVolume::G4LogicalVolume ( G4VSolid * pSolid, G4Material * pMaterial, const G4String & name, G4FieldManager * pFieldMgr = 0, G4VSensitiveDetector * pSDetector = 0, G4UserLimits * pULimits = 0, G4bool optimise = true) [[File:G4LogicalVolume2.png|frame|center|alt=a|An example of the G4LogicalVolume constructor]] * G4LogicalSkinSurface *# Constructor for skin surface of material G4LogicalSkinSurface::G4LogicalSkinSurface ( const G4String & name, G4LogicalVolume * vol, G4SurfaceProperty * surfaceProperty) [[File:G4LogicalSkinSurface.png|frame|center|alt=a|An example of the G4LogicalSkinSurface constructor]] *G4PVPlacement *# Constructor for the placement of the object G4PVPlacement::G4PVPlacement ( G4RotationMatrix * pRot, const G4ThreeVector & tlate, G4LogicalVolume * pCurrentLogical, const G4String & pName, G4LogicalVolume * pMotherLogical, G4bool pMany, G4int pCopyNo, G4bool pSurfChk = false) [[File:G4PVPlacement.png|frame|center|alt=a|An example of the G4LogicalSkinSurface constructor]] *G4OpticalSurface *# Constructor for a optical surface G4OpticalSurface::G4OpticalSurface ( const G4String & name, G4OpticalSurfaceModel model = glisur, G4OpticalSurfaceFinish finish = polished, G4SurfaceType type = dielectric_dielectric, G4double value = 1.0) [[File:G4OpticalSurface.png|frame|center|alt=a|An example of one of the Optical Surface constructions in the DetectorConstruction.cc file]] ===General Material Construction=== * G4Element ** Constructor to generate an element from scratch G4Element::G4Element ( const G4String & name, const G4String & symbol, G4double Zeff, G4double Aeff) [[File:ElementCreation.png|frame|center|alt=a|An example of the element creation used in the DetectorConstruction.cc file]] *G4Material ** Constructor to generate a material from scratch G4Material::G4Material ( const G4String & name, G4double z, G4double a, G4double density, G4State state = kStateUndefined, G4double temp = CLHEP::STP_Temperature, G4double pressure = CLHEP::STP_Pressure) [[File:AddElement.png|frame|center|alt=a|From the DetectorConstruction.cc file. Line 231 shows the creation of a new G4Material, while the lines below add elements to the newly created material.]] *G4Material (continued) **Add element to a material void G4Material::AddElement ( G4Element * element, G4int nAtoms) *G4Material (continued) **Add property to a material G4MaterialPropertyVector * G4MaterialPropertiesTable::AddProperty ( const char * key, G4double * photonEnergies, G4double * propertyValues, G4int numEntries, G4bool createNewKey = false, G4bool spline = false) [[File:AddProperty.png|frame|center|alt=a|An example usage of the AddProperty function in the DetectorConstruction.cc file]] ===Scintillator=== [[File:G4Scintillator.png|1200x1200px|center|alt=a|An example of the scintillator construction in the DetectorConstruction.cc file]] ===Light Guide=== [[File:G4LightGuide.png|1200x1200px|center|alt=a|An example of one of the light guide constructions in the DetectorConstruction.cc file]] ===Phototube=== [[File:G4Phototube.png|1200x1200px|center|alt=a|An example of the Phototube construction in the DetectorConstruction.cc file]] ==Graph Analysis== Found in /home/CDetMC/analysis/plots/ {| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;" |+ Graph Analysis of Tests |- ! Plot Title !! scope="col" style="width: 25em;" | Description !! Plot |- | C1 || Position of incident muons in the x, y, and z coordinates, and the time of impacts. we guess Β―\_(γ)_/Β― || [[File:c1_pdf.png|450x450px|center|alt=a]] |- | C2RA || The truth values used in the simulation. Primitive energy. The Theta and Phi angles when measured. The particle pdg value. || [[File:c2RA-pdf.png|450x450px|center|alt=a |Placeholder]] |- | C3RA || The simulation results. Detector of hits on the scintillators. The measured mass of the particle is the interpreted PDG value. fingerID shows the event counts and which finger the events occur at. fingerED shows the energy deposited and how many times it occurred. fingerPMTID shows the PMTID's related to each scintillator and the number of incidents for each. Finger PMT Time shows the distribution of time values. || [[File:c3RA-pdf.png|450x450px|center|alt=a |Placeholder]] |- | C4RA || Histograms for energy deposition and number of photo electrons || [[File:c4RA-pdf.png|450x450px|center|alt=a |Placeholder]] |- | C7RA || Energy deposition vs number of photons || [[File:c7RA-pdf.png|450x450px|center|alt=a |Placeholder]] |- | C8RA || Energy deposition vs number of photons || [[File:c8RA-pdf.png|450x450px|center|alt=a |Placeholder]] |- | C12 || Shows the momentum of particles in each of the directions. || [[File:c12-pdf.png|450x450px|center|alt=a |Placeholder]] |- | C13 || Event impact point distribution || [[File:c13-pdf.png|450x450px|center|alt=a |Placeholder]] |- | C14 || Recorded incident impact points in the x, y, and z directions. || [[File:c14-pdf.png|450x450px|center|alt=a |Placeholder]] |- | C33RA || Angle of incident Β± Ο/2 || [[File:c33RA-pdf.png|450x450px|center|alt=a |Placeholder]] |}
Summary:
Please note that all contributions to Luter 345 Experiments may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Luter 345 Experiments:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)