paris package: practical aspects installation / presentation to run a simulation analysis to add a...

8
Paris package: practical aspects Installation / presentation To run a simulation Analysis To add a new module to Paris

Upload: juniper-dickerson

Post on 14-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Paris package: practical aspects Installation / presentation To run a simulation Analysis To add a new module to Paris Installation / presentation To run

Paris package: practical aspects

Installation / presentation To run a simulation Analysis To add a new module to Paris

Installation / presentation To run a simulation Analysis To add a new module to Paris

Page 2: Paris package: practical aspects Installation / presentation To run a simulation Analysis To add a new module to Paris Installation / presentation To run

Installation / presentation

Download from Paris web site: gunzip Paris1.0.tar.gz; tar -xvf Paris1.0.tar

Installation (tested with geant4.8.2):

cd Paris; make

In the package:doc: User’ guide and documentation of the code doxygen setup: ascii files to configure the simulationanalysis: to read back the files produced by Parisinclude:src:Paris.cc

C++ code

Page 3: Paris package: practical aspects Installation / presentation To run a simulation Analysis To add a new module to Paris Installation / presentation To run

To run a simulation Geometry

ParisParisPhysics

Generator

Output

Selection of the different modules:

setup/global.paris

setup/shell.geo

setup/basic.gene setup/uniform.gene

Page 4: Paris package: practical aspects Installation / presentation To run a simulation Analysis To add a new module to Paris Installation / presentation To run

To run a simulation

To start: Paris (or Paris batch.mac)

Some useful G4 commands:help/control/execute visGL.mac/vis/viewer/set/viewpointThetaPhi 150 15 deg/run/beamOn 10exit

executeseveral

commands

change viewpointRun 10 events

Page 5: Paris package: practical aspects Installation / presentation To run a simulation Analysis To add a new module to Paris Installation / presentation To run

Analysis with root

Root HistogramsOutput2(ascii file)

cd analysiscp Demorootlogon.C rootlogon.Ccp DemoAnalysis.C MyAnalysis.CrootInfo in <TUnixSystem::ACLiC>: creating shared library ./ParisBaseAsciiReader_C.soInfo in <TUnixSystem::ACLiC>: creating shared library ./MyAnalysis_C.so

root [0] DrawInput(”file”,”/path/to/the/file”)

compilethe

reader

compileyour

analysis

run analysis

Page 6: Paris package: practical aspects Installation / presentation To run a simulation Analysis To add a new module to Paris Installation / presentation To run

To add a new module to Paris

New generator: just copy a existing one, and rename(include/NewGene.hh & include/NewGene.cc)

New geometry: just copy a existing one, and rename(include/NewGeo.hh & include/NewGeo.cc)

the following lines are needed:

Better to have a initialization file in setupSend it to me once tested (for the moment)SVN server if important developments …

// sensitive part. Because the sensitive part depends on what we would to extract// for analysis, it asks the OutputManager to give it the sensitive partif ( ParisOutputManager::GetTheOutputManager()->GetTrackerSD(“YourDetName”) ) { alogic->SetSensitiveDetector(

ParisOutputManager::GetTheOutputManager()->GetTrackerSD(“YourDetName”)) );

}

Page 7: Paris package: practical aspects Installation / presentation To run a simulation Analysis To add a new module to Paris Installation / presentation To run

To add a new module to Paris

#include “NewGeo.hh”

Page 8: Paris package: practical aspects Installation / presentation To run a simulation Analysis To add a new module to Paris Installation / presentation To run

To add a new module to Paris

Case 1:

theDetector = new NewGeo();

cout << “ “ << G4endl;

break;

And recompile (make) !!