Creating algorithm

Example: Muon

Here I create a test algorithm called MuonSegmentPerformanceAlg _v2.

The setup:

Relevant information provided here This is a setup with detail, for the more seemless setup see next section.

  • Setup git with git atlas init-workdir
  • cd athena
  • Checkout these packages:
  • Add ANY new algorithms to src/components/ directory accordingly!
  • git fetch upstream
  • git checkout -b upstream/21.3 --no-track (or whatever name you want to call your branch)
  • mkdir ../build && cd ../build
  • asetup 21.3,Athena,latest
  • cmake ../athena/Project/WorkDir/
  • make -j
  • mkdir ../run && cd ../run
  • Here you can run any or other test you want. An example below \
    --preExec 'all:from MuonRecFlags import muonRecFlags,muonStandaloneFlags;muonRecFlags.doFastDigitization=True; muonRecFlags.useLooseErrorTuning.set_Value_and_Lock(True);muonRecFlags.doCSCs=False;muonRecFlags.doNSWNewThirdChain=True;muonStandaloneFlags.printSummary=True;muonRecFlags.doTrackPerformance=True;muonRecFlags.TrackPerfSummaryLevel=2;muonRecFlags.TrackPerfDebugLevel=5;rec.doTrigger=False;rec.doInDet=True;rec.doCalo=True;rec.doLArg=True;rec.doEgamma=False;rec.doTile=True;rec.doLucid=False;rec.doZdc=False;rec.doJetMissingETTag=False;from MuonCombinedRecFlags import muonCombinedRecFlags;muonCombinedRecFlags.doCaloTrkMuId=True;muonCombinedRecFlags.doMuGirl=False;muonCombinedRecFlags.doCombinedFit=True;muonCombinedRecFlags.doMuonSegmentTagger=True;svcMgr.MessageSvc.defaultLimit = 100000;svcMgr.MessageSvc.debugLimit = 100000;svcMgr.MessageSvc.verboseLimit = 100000' \
    --postExec 'conddb.addOverride("/GLOBAL/TrackingGeo/LayerMaterialV2","AtlasLayerMat_v21_ATLAS-R2-2016-01")' \
    --outputESDFile 100Evts.newdb.ESD.root \
    --inputRDOFile 100Evts.newdb.rdos.root \
    --autoConfiguration everything \

Seemless setup:

mkdir muon_dev && cd muon_dev

git atlas init-workdir

cd athena

git atlas addpkg MuonRecExample MuonTrackPerformance

git atlas addpkg MuonTrackingGeometry #This might not be necessary in time, check with geometry people (ALaurier)

vim MuonSpectrometer /MuonValidation/MuonRecValidation/MuonTrackPerformance/src/components/MuonTrackPerformance_entries.cxx #add your package and include header

git fetch upstream

git checkout -b upstream/21.3 --no-track

mkdir ../build && cd ../build

asetup 21.3,Athena,latest

cmake ../athena/Project/WorkDir/

make -j

mkdir ../run && cd ../run

-- DaleCharlesAbbott - 2018-06-08

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2018-06-11 - DaleCharlesAbbott
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 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