-- SajanEaso - 21 Jan 2014

Options for Target study

The tool fires particles into blocks of material and returns information on probability of hadronic interaction and multiplicity and composition of daughters.
To run the tool ensure that you have the latest versions of Sim/GaussTools and Gen/LbPGuns

getpack Sim/SimChecks
cd scripts/Target

Remember to setup Gauss "SetupProject Gauss (your version)"

Single Target

This options can be used to obtain rootfiles for one specific combination of initial particle ID and energy and target material and thickness.
In the next secttion an option to run many combinations at once is described.
To run the tool setup Gauss and then:

cd SingleTarget

gaudirun.py Gauss-LHCb-Target-2013.py Gauss-Job-SingleTarget.py

Inside Gauss-Job-SingleTarget.py you can instead choose number of events generate and name of output files.

Target properties:

Inside Gauss-LHCb-Target-2013.py you can change the target properties by changing the line

target = 'Target_(thickness)mm(material)'

Available targets are 1, 5, 10 mm and availble maretials are 'Al' 'Be' 'Si'. (es. target = 'Target_1mmAl')

Incoming particle properties:

You can copy the file $LBPGUNSROOT/options/TargetMaterialGun.py. This contains the definition of the particle gun.
In particular the following two lines modify ID and energy of the particle.

PdgCode = 2212 (proton)

ModP = 3 * GeV

Before running change the following line in "Gauss-Job-SingleTarget.py" to pick up your pgun option file.

importOptions ("$LBPGUNSROOT/options/TargetMaterialGun.py")

Hadronic interaction model:

You can choose the hadronic interaction model to test by changing the following line in replacint QGSP_BERT with one of the models available in you Gauss version. (es. FTFP_BERT, LHEP)

PhysicsList = {"Em":'NoCuts', "Hadron":'QGSP_BERT', "GeneralPhys":True, "LHCbPhys":True}

Multiple Target

This options file allow to run the tool at once for many patricle types and energies, for many target materials and thicknesses and many hadronic interaction models.

cd MultiTarget

In the file Targer_RunAll.py you'll find the following lines which you can modify to run with your choice of energies, materials, etc.

models=['QGSP_BERT','FTFP_BERT','LHEP'] #any present in the version of Gauss you are using
energies=['1', '5', '10', '50', '100'] #any
materialsTodo=['Al'] # 'Al' 'Be' 'Si'
thicks=['1'] #in mm 1, 5, 10
particlesTodo=['p', 'pbar', 'Piminus', 'Piplus', 'Kminus', 'Kplus'] # Available: 'Piminus' 'Piplus' 'Kminus' 'Kplus' 'p' 'pbar'

Finally to run the tool: python Target_RunAll.py

This creates the histograms in the TargetOutput subdirectory in this area. Inside this a folder structure is created organizing the root files.
A log allows you to visualize the running status of the tool while it runs. You may change the location of the output by changing the variable "path".

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r5 - 2014-01-22 - LucaPescatore
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback