Skip to content

OutputConfiguration

AndrewEdmonds11 edited this page Sep 4, 2014 · 1 revision

Configuring the Output

Defining Monitors

The monitors are defined in the geometry configure file. e.g:

        B    XT     XT    thT     Target      1     TargetMount Aluminium     M/MonitorSD 0     0     0      0    0    0

where MonitorSD is the name of the Geant4 class that will be used and M is the name of the monitor.

Configuring Monitors

These monitors are configured in configure/output/output_default. In this file there are two sections for each monitor.

One defines the variables that are recorded and their units:

M_SECTION
        nHits
        Ox             cm
        Oy             cm
        Oz             cm
        Ot             ns
        Opx            GeV
        Opy            GeV
        Opz            GeV
        x              cm
        y              cm
        z              cm
        t              ns
        px             GeV
        py             GeV
        pz             GeV
        e              GeV
        edep           GeV
        edepAll        GeV
        stepL          cm
        volID
        volName
        ox             cm
        oy             cm
        oz             cm
        ot             ns
        opx            GeV
        opy            GeV
        opz            GeV
        ovolName
        oprocess
        ppid
        ptid
        tid
        pid
        particleName
#       charge
        stopped
        stop_time      ns
#       killed
#       kill_time      ns
M_SECTION

and another that adds filters to the monitor:

M_FILTERSECTION
        Switch                        //if commented, then program wil not generate any hit
#       neutralCut                    //if not commented, then neutral tracks will not be recorded
#       stopped                       //need to be stopped inside
#       maxn          0               //maximum hits cut, 0 means no limit
#       minp          0      GeV      //minimum momentum cut
#       mine          0      GeV      //minimum energy cut
#       mint          0      ns       //left end of time window, 0 means no lower limit
#       maxt          0      ns       //right end of time window, 0 means no upper limit
        tres          5000   ns       //time resolution
        minedep       -1     GeV      //minimum energy deposition cut
#       WL            13           // Add a PDGEncode to white list. if white list is not empty then only particle on white list will be recorded. 0 means pid<1e7
#       WL            -211         // Add a PDGEncode to white list. if white list is not empty then only particle on white list will be recorded. 0 means pid<1e7
M_FILTERSECTION

Note that there is also a special monitor for McTruth which records all particles created during the simulation(?):

MCTRUTH_SECTION
        nTracks
        pid
        tid
        ptid
        ppid
        time              ns
        px                GeV
        py                GeV
        pz                GeV
        e                 GeV
        x                 cm
        y                 cm
        z                 cm
        charge
        particleName
        process
        volume
        tid2pid
        tid2time
MCTRUTH_SECTION

MCTRUTHFILTER_SECTION
        Switch                     //if commented, then program wil not generate any hit
#       nTracks       1            //maximum tracks cut
#       minp          0      GeV   //minimum momentum cut
#       mine          0      MeV   //minimum momentum cut
#       mint          0      ns    //left end of time window, 0 means no lower limit
#       maxt          0      ns    //right end of time window, 0 means no upper limit
#       WL            0            // Add a PDGEncode to white list. if white list is not empty then only particle on white list will be recorded. 0 means pid<1e7
#       BL            2112
MCTRUTHFILTER_SECTION