r2 - 13 Oct 2008 - 14:29:39 - KupcoAYou 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 testarea/14.2.20 (mkdir -p testarea/14.2.20)
  • cd testarea/14.2.20
  • Copy source files for Fpmc: cp -r /afs/cern.ch/atlas/project/rp220/juranek/public/FpmcToAthena/External .
  • Copy source files for Fpmc interface: cp -r /afs/cern.ch/atlas/project/rp220/juranek/public/FpmcToAthena/Generators .
  • Copy configuration files for developer setting: cp -r /afs/cern.ch/atlas/project/rp220/juranek/public/FpmcToAthena/cmthome2 .
  • Edit requierments file: change line macro ATLAS_TEST_AREA ${HOME}/rp220/testarea14 to point to right working directory, e.g. macro ATLAS_TEST_AREA ${HOME}/testarea
  • Run initila setup: source /afs/cern.ch/sw/contrib/CMT/v1r20p20080222/mgr/setup.sh
  • Create setup scripts: cd cmthome2; cmt config; cd ..
  • Setup enviroment: source cmthome2/setup.sh -tag=14.2.20,32
  • Compile Fpmc:
        cd External/Fpmc/cmt
        cmt config
        source setup.sh
        gmake
        
  • Compile Fpmc interface:
        cd ../../../Generators/Fpmc_i/cmt
        cmt config
        source setup.sh
        gmake
        
  • Now cmthome2 can be removed: cd ../../..; rm -rf cmthome2
  • Create directory for user setup and copy requirement file: mkdir cmthome; cd cmthome; cp /afs/cern.ch/atlas/project/rp220/juranek/public/FpmcToAthena/cmthome/requirements .
  • Edit requierments file: change line macro ATLAS_TEST_AREA ${HOME}/rp220/testarea14 to point to right working directory, e.g. macro ATLAS_TEST_AREA ${HOME}/testarea
  • Create setup scripts: cmt config
  • Set up user enviroment: source setup.sh -tag=14.2.20
  • Check out Physics analysis package: cd ..; cmt co PhysicsAnalysis/AnalysisCommon/UserAnalysis
  • Done, now for common usage see section bellow

How to run FPMC

  • Log to Lxplus
  • Go to testarea/14.2.20
  • Set up user enviroment: source cmthome/setup.sh -tag=14.2.20
  • Go to Physic analysis package into run directory: cd PhysicsAnalysis/AnalysisCommon/UserAnalysis/run
  • Create python job options scritp e.g. jobOptions.fpmc.py, which should looks like:
    ###############################################################
    #
    # 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
    #
    ###############################################################
       
  • Run job options file: athena jobOptions.fpmc.py

-- VojtechJuranek - 09 Oct 2008

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright &Š by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback