Presentation is loading. Please wait.

Presentation is loading. Please wait.

C++ / G4MICE Course Session 6 G4MICE Design and Domains Datacards Configurations (MiceModules) Using existing G4MICE Applications.

Similar presentations


Presentation on theme: "C++ / G4MICE Course Session 6 G4MICE Design and Domains Datacards Configurations (MiceModules) Using existing G4MICE Applications."— Presentation transcript:

1 C++ / G4MICE Course Session 6 G4MICE Design and Domains Datacards Configurations (MiceModules) Using existing G4MICE Applications

2 G4MICE Design The code in G4MICE is separated out into a number of “domains”, each of which have a common purpose. The domains diagram (next slide) shows for each domain what other domains it depends on (including the external libraries such as GEANT4). 2

3 3

4 DataCards The main method of passing information to a G4MICE application at run time is through the “data cards”. This is a text file that contains one or more values that over-ride defaults. The code that sets these defaults can be found in Interface/src/dataCards.cc Some documentation can be found on the web: –http://www.mice.iit.edu/software/DataChallenge/Documentation/dataCards.htmlhttp://www.mice.iit.edu/software/DataChallenge/Documentation/dataCards.html 4

5 An Example Data Card File !****General MiceModel MICEStage1/Stage1.dat ! numEvts 10 ! ZOffsetStart -15 m SigmaX 1.0 mm SigmaXPrime 0.0 SigmaYPrime 0.0 AverageMomentum 240 MeV DeltaEoverE 0.01 ! OutputFile Sim.out.stage6.gz 5

6 Configurations The MiceModule (Config/src/MiceModule.cc) class is used to model each configuration that we wish to use in G4MICE. At the moment, the classes are built up from text files which can be found in MICE/FILES/Models/ Configurations/ contains directories that contain different arrangements of various building blocks. The components themselves are defined in Modules/ 6

7 MiceSchool.dat Download this file and put it in ${MICESRC}/FILES/Models/Configurations/T ests/ This contains the definition of a configuration which we will use to understand how the MiceModules work. It requires two additional files, MiceSchoolBox.dat and MiceSchoolTube.dat, download these and put them in ${MICESRC}/FILES/Models/Modules/Tests/ 7

8 MiceModules Application This application reads in whatever configuration you request in the data cards file and writes information about it to the standard output: –${MICESRC}/Applications/MiceModules/MiceModules cards 8

9 Some More Details By now you may have noticed the use of units and the definitions of materials in the MiceModules files. We will cover these in more detail in the next session. Documentation can be found on the web here: –http://www.mice.iit.edu/software/DataChallenge/Documentation/Units.htmlhttp://www.mice.iit.edu/software/DataChallenge/Documentation/Units.html –http://www.mice.iit.edu/software/DataChallenge/Documentation/Materials.htmlhttp://www.mice.iit.edu/software/DataChallenge/Documentation/Materials.html 9

10 Simulation Application Try running the Simulation executable with cards.sim: –${MICESRC}/Applications/Simulation/Simulation cards.sim 10

11 Before or During Lunch If you do not already have it, you may wish to download and install the HepRAPP viewer. This is a Java program that reads the HepRep format, which is one of the means we use to visualise geometry and events in G4MICE: –http://www.slac.stanford.edu/BFROOT/www/Computing/Graphics/Wired/http://www.slac.stanford.edu/BFROOT/www/Computing/Graphics/Wired/ 11


Download ppt "C++ / G4MICE Course Session 6 G4MICE Design and Domains Datacards Configurations (MiceModules) Using existing G4MICE Applications."

Similar presentations


Ads by Google