Jan
FEB
Mar
26
2008
2009
2010
1 capture
26 Feb 09 - 26 Feb 09
Close
Help
E
dit
A
ttach
P
rintable
r2 - 13 Oct 2008 - 14:29:39 -
KupcoA
You are here:
TWiki
>
ATLAS Web
>
AtlasDiffraction
>
FpmcToAthena
---+FPMC interface for Athena ---++How to compile FPMC and interface * Fpmc currnetly works only with relaese 14.2.20 (in rel. 14.2.10., 14.2.22 etc. are some compilation problems, will be solved in near future) * Log to Lxplus * Go to working directory * Create directory <code>testarea/14.2.20</code> (<code>mkdir -p testarea/14.2.20</code>) * <code>cd testarea/14.2.20</code> * Copy source files for Fpmc: <code>cp -r /afs/cern.ch/atlas/project/rp220/juranek/public/FpmcToAthena/External .</code> * Copy source files for Fpmc interface: <code>cp -r /afs/cern.ch/atlas/project/rp220/juranek/public/FpmcToAthena/Generators .</code> * Copy configuration files for developer setting: <code>cp -r /afs/cern.ch/atlas/project/rp220/juranek/public/FpmcToAthena/cmthome2 .</code> * Edit <code>requierments</code> file: change line <code>macro ATLAS_TEST_AREA ${HOME}/rp220/testarea14</code> to point to right working directory, e.g. <code>macro ATLAS_TEST_AREA ${HOME}/testarea</code> * Run initila setup: <code>source /afs/cern.ch/sw/contrib/CMT/v1r20p20080222/mgr/setup.sh</code> * Create setup scripts: <code>cd cmthome2; cmt config; cd ..</code> * Setup enviroment: <code>source cmthome2/setup.sh -tag=14.2.20,32</code> * Compile Fpmc: <pre> cd External/Fpmc/cmt cmt config source setup.sh gmake </pre> * Compile Fpmc interface: <pre> cd ../../../Generators/Fpmc_i/cmt cmt config source setup.sh gmake </pre> * Now <code>cmthome2</code> can be removed: <code>cd ../../..; rm -rf cmthome2</code> * Create directory for user setup and copy requirement file: <code>mkdir cmthome; cd cmthome; cp /afs/cern.ch/atlas/project/rp220/juranek/public/FpmcToAthena/cmthome/requirements .</code> * Edit <code>requierments</code> file: change line <code>macro ATLAS_TEST_AREA ${HOME}/rp220/testarea14</code> to point to right working directory, e.g. <code>macro ATLAS_TEST_AREA ${HOME}/testarea</code> * Create setup scripts: <code>cmt config</code> * Set up user enviroment: <code>source setup.sh -tag=14.2.20</code> * Check out Physics analysis package: <code>cd ..; cmt co !PhysicsAnalysis/AnalysisCommon/UserAnalysis</code> * Done, now for common usage see section bellow ---++How to run FPMC * Log to Lxplus * Go to <code>testarea/14.2.20</code> * Set up user enviroment: <code>source cmthome/setup.sh -tag=14.2.20</code> * Go to Physic analysis package into run directory: <code>cd !PhysicsAnalysis/AnalysisCommon/UserAnalysis/run</code> * Create python job options scritp e.g. <code>jobOptions.fpmc.py</code>, which should looks like: <pre> ############################################################### # # Job options file # #============================================================== #-------------------------------------------------------------- # Private Application Configuration option from AthenaCommon.AppMgr import ServiceMgr ServiceMgr.MessageSvc.OutputLevel = INFO #-------------------------------------------------------------- # Event related parameters #-------------------------------------------------------------- # Number of events to be processed (default is 10) theApp.EvtMax = 100 #-------------------------------------------------------------- # Algorithms Private Options #-------------------------------------------------------------- from AthenaServices.AthenaServicesConf import AtRndmGenSvc ServiceMgr += AtRndmGenSvc() ServiceMgr.AtRndmGenSvc.Seeds = ["FPMC 390020611 821000366", "FPMC_INIT 820021 2347532"] from AthenaCommon.AlgSequence import AlgSequence job=AlgSequence() from Fpmc_i.Fpmc_iConf import Fpmc job +=Fpmc() job.Fpmc.FpmcCommand = ["typepr EXC","typint QCD","iproc 19999","gapspr 0.03","prospr 0.9","cdffac 3.8","nflux 11","ifitpdf 10","rmass 201 120","yjmax 10","isoftm 1","q2wwmn 0.0","q2wwmx 4.0","ywwmax 0.1"] #from TruthExamples.TruthExamplesConf import DumpMC #job += DumpMC() from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream Stream1 = AthenaPoolOutputStream( "Stream1") Stream1.OutputFile = "fpmcOnly.pool.root" Stream1.ItemList += [ 'EventInfo#*', 'McEventCollection#*' ] #============================================================== # # End of job options file # ############################################################### </pre> * Run job options file: <code>athena jobOptions.fpmc.py</code> -- FZU.VojtechJuranek - 09 Oct 2008
E
dit
|
A
ttach
|
P
rintable
|
V
iew topic
|
Backlinks:
We
b
,
A
l
l Webs
|
H
istory
: r2
<
r1
|
M
ore topic actions
ATLAS
Log In
or
Register
Skupiny
Aktuality
Standardní model
Difrakce
Software
Rady do CERNu
Semináře
Webs
ATLAS
AUGER
FZU
ILC
Sandbox
TWiki
VS
ATLAS Web
Create New Topic
Index
Search
Changes
Notifications
Statistics
Preferences
Copyright &Š by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback