cernopendata / opendata.cern.ch

Source code for the CERN Open Data portal
http://opendata.cern.ch/
GNU General Public License v2.0
666 stars 148 forks source link

CMS: add documentation for how to compute cross section for a dataset #2476

Open katilp opened 5 years ago

katilp commented 5 years ago

For CMS MC datasets, we can the cross-section values from the McM database, but these values can also be read from the files as well. Good instructions exist for how to read the cross section values in https://twiki.cern.ch/twiki/bin/view/CMS/HowToGenXSecAnalyzer and listing of more precise values (in case of higher order corrections) are available (and should be used whenever possible): https://twiki.cern.ch/twiki/bin/viewauth/CMS/StandardModelCrossSections https://twiki.cern.ch/twiki/bin/viewauth/CMS/StandardModelCrossSectionsat8TeV

Instead of displaying the cross-section value (which may or may not be there, and in many case should be updated with the corrections), we will rather point to more information under "Description"

See the instructions on how calculate the cross section for the physics analysis: CMS Guide to calculating cross sections

katilp commented 5 years ago

This will be only for Run2 as this information is available in the data format only starting from CMSSW_5_3_21:

Indeed, following instructions in https://twiki.cern.ch/twiki/bin/view/CMS/HowToGenXSecAnalyzer work on the Open Data VM:

cmsrel CMSSW_5_3_32
cd CMSSW_5_3_32/src
cmsenv
curl https://raw.githubusercontent.com/syuvivida/generator/master/cross_section/runJob/ana.py  -o ana.py
# change the global tag in ana.py as instructed in http://opendata.cern.ch/docs/cms-guide-for-condition-database + add the symbolic links
ln -sf /cvmfs/cms-opendata-conddb.cern.ch/START53_V27 START53_V27
ln -sf /cvmfs/cms-opendata-conddb.cern.ch/START53_V27.db START53_V27.db
cmsRun ana.py inputFiles="root://eospublic.cern.ch//eos/opendata/cms/MonteCarlo2012/Summer12_DR53X/DiPhotonBorn_Pt-10To25_8TeV_ext-pythia6/AODSIM/PU_RD1_START53_V7N-v2/10000/00E9331C-F1E1-E211-8C43-0025B3E06528.root" maxEvents=-1

This gives a warning:

%MSG-w LocalFileSystem::initFSList():  (NoModuleName) 11-Dec-2018 15:42:27 CET  pre-events
Cannot read '/etc/mtab': No such file or directory (error 2)
%MSG
[......]
-----------------------------------
GenXsecAnalyzer:
------------------------------------
------------------------------------
Cross-section summary not available
------------------------------------
katilp commented 5 years ago

Maybe for now, for Run1 MC, add in "Description"

tiborsimko commented 5 years ago

@katilp We would need a public version of the above page (that is available to CMS only.)

jmhogan commented 9 months ago

Since she's been running XsecAnalyzer, Xiaohe will work on making this page. We'll do something like cms-guide-cross-sections with two main sections:

katilp commented 9 months ago

Thanks! That was checked a while ago with GEN, but it is good to recheck as convenors change: at the time it was OK

jmhogan commented 9 months ago

Oh, good, even better :)