Difference between revisions of "Running std aod examples"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
use MissingETEvent MissingETEvent-00-* Reconstruction | use MissingETEvent MissingETEvent-00-* Reconstruction | ||
use BTaggingEvent BTaggingEvent-00-* PhysicsAnalysis/BTaggingID | use BTaggingEvent BTaggingEvent-00-* PhysicsAnalysis/BTaggingID | ||
− | use CompositeParticleEvent CompositeParticleEvent- | + | use CompositeParticleEvent CompositeParticleEvent-01-* PhysicsAnalysis/AnalysisCommon |
use TruthParticleAlgs TruthParticleAlgs-00-* PhysicsAnalysis/AnalysisCommon | use TruthParticleAlgs TruthParticleAlgs-00-* PhysicsAnalysis/AnalysisCommon | ||
use ParticleEventAthenaPool ParticleEventAthenaPool-00-* PhysicsAnalysis/AnalysisCommon | use ParticleEventAthenaPool ParticleEventAthenaPool-00-* PhysicsAnalysis/AnalysisCommon |
Latest revision as of 12:07, 13 May 2005
Setup of the generic example analysis
- Go to ttbar directory: cd /project/atlas/users/<userid>/ttbar
- Check out UserAnalysis package: cmt co -r UserAnalysis-00-02-01 PhysicsAnalysis/AnalysisCommon/UserAnalysis
- cd PhysicsAnalysis/AnalysisCommon/UserAnalysis/UserAnalysis-00-02-01/cmt/
- Edit the requirements as follows
Remove:
use EventKernel EventKernel-00-* Event use CompositeParticleEvent CompositeParticleEvent-01-* PhysicsAnalysis/AnalysisCommon
Insert:
use MissingETEvent MissingETEvent-00-* Reconstruction use BTaggingEvent BTaggingEvent-00-* PhysicsAnalysis/BTaggingID use CompositeParticleEvent CompositeParticleEvent-01-* PhysicsAnalysis/AnalysisCommon use TruthParticleAlgs TruthParticleAlgs-00-* PhysicsAnalysis/AnalysisCommon use ParticleEventAthenaPool ParticleEventAthenaPool-00-* PhysicsAnalysis/AnalysisCommon use AnalysisExamples AnalysisExamples-00-* PhysicsAnalysis/AnalysisCommon
- Execute cmt config
- source setup.csh
- cmt broadcast gmake
- cd ../run
- get_files AnalysisSkeleton_jobOptions.py
- get_files PDGTABLE.MeV
Running the generic example analysis
- Go to ttbar directory: cd /project/atlas/users/<userid>/ttbar/PhysicsAnalysis/AnalysisCommon/UserAnalysis/UserAnalysis-00-02-01/run
- The default job options files looks for an input file named AOD.pool.root. To make a test run, now make a symbolic link from one of our ttbar production files to AOD.pool.root in this directory: ln -s /project/atlas/users/ivov/Rome_project/MCatNLO/AOD/rome.004100.reco.T1_McAtNLO_top._00001.AOD.pool.root AOD.pool.root. Athena can only find data files that are listed in a so called 'pool catalog'. To make the example file visible to Athena we need to create such a catalog file and insert the above file in it: pool_insertFileToCatalog AOD.pool.root. You can ignore all the TClass warning messages. The result is a file called PoolFileCatalog.xml
- Copy job options file to the run-dir: cp ../share/AnalysisSkeleton_jobOptions.py .
- Edit the job options file AnalysisSkeleton_jobOptions.py to add the following line
theApp.Dlls += ["TruthParticleAlgs"]
just above the comment labeled 'the POOL converters' - Run the test job: athena.py AnalysisSkeleton_jobOptions.py. The example job produces a few histograms that are written in the ROOT output file AnalysisSkeleton.root
Running the ttbar example analysis
- Go to ttbar directory: cd /project/atlas/users/<userid>/ttbar/PhysicsAnalysis/AnalysisCommon/UserAnalysis/UserAnalysis-00-02-01/run
- Edit the job options file AnalysisSkeleton_jobOptions.py' as follows add
theApp.Dlls += [ "AnalysisExamples" ] TTBar = Algorithm( "ttbar" ) # The user analysis cuts - default values to changed by the user as needed TTBar.PreSelectedElectrons = "ElectronCollection" TTBar.PreSelectedMuons = "MuonCollection" TTBar.PreSelectedJets = "TauJetCollection" TTBar.PreSelectedBJets = "BJetCollection" # Missing ET options TTBar.MissingEtObject = "MET_Calib" TTBar.MissingEtCut = 18.0*GeV # The event weight - normalization to luminosity and cross section TTBar.EventWeight = 1.0 # set options for the analysis type TTBar.DeltaMjj = 25.0*GeV # histogram folder name TTBar.HistDirectoryName = "ttbar"
and change AnalysisSkeleton into ttbar in the line below:
theApp.TopAlg += [ "AnalysisSkeleton" ]
- Run the ttbar example analysis job: athena.py AnalysisSkeleton_jobOptions.py. The example job produces a few histograms that are written in the ROOT output file AnalysisSkeleton.root