# Cross sections and luminosities

**URL:** <https://opendata-forum.cern.ch/t/cross-sections-and-luminosities/54>\
**Category:** Luminosity\
**Created:** [9 March 2021 09:03 UTC](https://opendata-forum.cern.ch/t/cross-sections-and-luminosities/54 "2021-03-09T09:03:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![algomez](https://opendata-forum.cern.ch/user_avatar/opendata-forum.cern.ch/algomez/32/22_2.png) [@algomez](https://opendata-forum.cern.ch/u/algomez)\
**Post date:** [9 March 2021 09:03 UTC](https://opendata-forum.cern.ch/t/cross-sections-and-luminosities/54/1 "2021-03-09T09:03:50Z")

</div>

Hi all

I am trying to create an exercise for one of my classes using CMS Open Data. I tried to look at some data and MC samples, but I cannot find the information about cross sections and luminosities. For instance, for this data sample [1] and this MC sample [2]. Is there an easy way to know this?

As a suggestion, for data maybe it would be easy to know the luminosity per txt file. In that sense I can only process a few txt files and normalized my MC samples to that subset of the total dataset.

Thanks a lot for the help  
cheers,

[1] [CERN Open Data Portal](http://opendata.cern.ch/record/6004)  
[2] [CERN Open Data Portal](http://opendata.cern.ch/record/7719)

---

<div class="post-metadata">

**Author:** ![susmita-sbhaduri](https://opendata-forum.cern.ch/user_avatar/opendata-forum.cern.ch/susmita-sbhaduri/32/14_2.png) [@susmita-sbhaduri](https://opendata-forum.cern.ch/u/susmita-sbhaduri)\
**Post date:** [10 March 2021 06:31 UTC](https://opendata-forum.cern.ch/t/cross-sections-and-luminosities/54/2 "2021-03-10T06:31:57Z")

</div>

for the first one the cross sections and luminosities are in the json file - in the link [CERN Open Data Portal](http://opendata.cern.ch/record/1002).

---

<div class="post-metadata">

**Author:** ![algomez](https://opendata-forum.cern.ch/user_avatar/opendata-forum.cern.ch/algomez/32/22_2.png) [@algomez](https://opendata-forum.cern.ch/u/algomez)\
**Post date:** [10 March 2021 08:32 UTC](https://opendata-forum.cern.ch/t/cross-sections-and-luminosities/54/3 "2021-03-10T08:32:53Z")

</div>

Thanks for the answer @susmita-sbhaduri but in the json file I see the list of good runs, not how much luminosity I get.

The question is about, if I only process RunB for instance, how much luminosity do I have? Or, if I dont want to process the whole RunB and just a subset, how can I calculate the amount of luminosity?  
In current CMSSW we can use `brilcalc`, not sure if it is the same here.

thanks again

---

<div class="post-metadata">

**Author:** ![susmita-sbhaduri](https://opendata-forum.cern.ch/user_avatar/opendata-forum.cern.ch/susmita-sbhaduri/32/14_2.png) [@susmita-sbhaduri](https://opendata-forum.cern.ch/u/susmita-sbhaduri)\
**Post date:** [10 March 2021 09:04 UTC](https://opendata-forum.cern.ch/t/cross-sections-and-luminosities/54/4 "2021-03-10T09:04:00Z")

</div>

Dear @algomez,  
In the latest CMSSW, you must have noticed in the script “demoanalyzer\_cfg.py” that FWCore.PythonUtilities.LumiList utility is imported and Lumisection for each event is extracted with “myLumis = LumiList.LumiList(filename = goodJSON).getCMSSWString().split(’,’)”, where goodJSON is the very json file with good run numbers and corresponding luminosity sections.  
Further you may check other functions of FWCore.PythonUtilities.LumiList for getting luminosity values in the thread [FWCore.PythonUtilities.LumiList broken in CMSSW\_10\_2\_0\_pre6? · Issue #23774 · cms-sw/cmssw · GitHub](https://github.com/cms-sw/cmssw/issues/23774).

Hope this would help you.  
Best  
Susmita

---

<div class="post-metadata">

**Author:** ![algomez](https://opendata-forum.cern.ch/user_avatar/opendata-forum.cern.ch/algomez/32/22_2.png) [@algomez](https://opendata-forum.cern.ch/u/algomez)\
**Post date:** [10 March 2021 09:23 UTC](https://opendata-forum.cern.ch/t/cross-sections-and-luminosities/54/5 "2021-03-10T09:23:27Z")

</div>

thanks again for the reply.  
But I think I am still confused. With the LumiList tool I pass to the code the lumisections to be processed but, as far as I know, that does not compute the amount of integrated luminosity I get with these lumisections. Am I getting this right?

---

<div class="post-metadata">

**Author:** ![mccauley](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/m/ea5d25/32.png) [@mccauley](https://opendata-forum.cern.ch/u/mccauley)\
**Post date:** [10 March 2021 10:09 UTC](https://opendata-forum.cern.ch/t/cross-sections-and-luminosities/54/6 "2021-03-10T10:09:06Z")

</div>

There is information here [CERN Open Data Portal](http://opendata.cern.ch/docs/cms-guide-luminosity-calculation) on how to calculate luminosity for various options.

There is also this tutorial [Luminosity](https://cms-opendata-workshop.github.io/workshop-lesson-luminosity/) available. Chapter 3 is probably the most relevant to your queries.

brilcalc is also available as a docker container (this is not yet documented on the portal). If you have docker installed it’s as simple as

docker run -it --name brilws gitlab-registry.cern.ch/cms-cloud/brilws-docker

which should bring you to the command-line prompt and brilcalc should be available:

bril@48c3625738ff:~$ brilcalc --version  
3.6.2

---

<div class="post-metadata">

**Author:** ![algomez](https://opendata-forum.cern.ch/user_avatar/opendata-forum.cern.ch/algomez/32/22_2.png) [@algomez](https://opendata-forum.cern.ch/u/algomez)\
**Post date:** [10 March 2021 10:36 UTC](https://opendata-forum.cern.ch/t/cross-sections-and-luminosities/54/7 "2021-03-10T10:36:24Z")

</div>

Thanks @mccauley, this is exactly what I need for the luminosity.  
I’ll take a look.

I guess that the comment about the cross sections is still open.

---

<div class="post-metadata">

**Author:** ![mccauley](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/m/ea5d25/32.png) [@mccauley](https://opendata-forum.cern.ch/u/mccauley)\
**Post date:** [10 March 2021 10:45 UTC](https://opendata-forum.cern.ch/t/cross-sections-and-luminosities/54/8 "2021-03-10T10:45:45Z")

</div>

Good to hear @algomez. Yes, cross sections are still an open issue.

---

<div class="post-metadata">

**Author:** ![susmita-sbhaduri](https://opendata-forum.cern.ch/user_avatar/opendata-forum.cern.ch/susmita-sbhaduri/32/14_2.png) [@susmita-sbhaduri](https://opendata-forum.cern.ch/u/susmita-sbhaduri)\
**Post date:** [10 March 2021 11:53 UTC](https://opendata-forum.cern.ch/t/cross-sections-and-luminosities/54/9 "2021-03-10T11:53:40Z")

</div>

You are absolutely correct. I think by now you have run brilcalc in docker from the instructions given in the link [CERN Open Data Portal](http://opendata.cern.ch/docs/cms-guide-luminosity-calculation).  
I was not aware on the tutorial though. Thanks to @mccauley for that.

---

<div class="post-metadata">

**Author:** ![ecarrera](https://opendata-forum.cern.ch/user_avatar/opendata-forum.cern.ch/ecarrera/32/21_2.png) [@ecarrera](https://opendata-forum.cern.ch/u/ecarrera)\
**Post date:** [11 March 2021 22:56 UTC](https://opendata-forum.cern.ch/t/cross-sections-and-luminosities/54/10 "2021-03-11T22:56:10Z")

</div>

Hi @algomez, I am afraid the most precise information regarding cross-sections is still a work in progress for our open data effort. We are making our best efforts to provide this information in a centralized location.

Now, is there a particular reason why you would want to use this particular MC dataset? Note that the DY1JetsToLL has a “at least one jet” restriction. You could use a more [general dataset](http://opendata.cern.ch/record/7730) (for which there is even a nanoAOD-like [derived dataset for outreach](http://opendata.cern.ch/record/12353)). The cross section for this process was well cataloged in a CMS internal report (CMS-SMP-15-008), which was the base for [one of CMS published analyses](https://inspirehep.net/literature/1589287). The number quoted there at NLO is 3503.71 pb (which is also corroborated by [its usage in an outreach H-\>tau tau analysis](https://github.com/cms-opendata-analyses/HiggsTauTauNanoAODOutreachAnalysis/blob/8c8ed61ecf1fd3dd5e4166471d9952fe1b33dd65/skim.cxx#L59)). I believe that this would be enough it is for education purposes. Please let us know if this suits you.

---

<div class="post-metadata">

**Author:** ![algomez](https://opendata-forum.cern.ch/user_avatar/opendata-forum.cern.ch/algomez/32/22_2.png) [@algomez](https://opendata-forum.cern.ch/u/algomez)\
**Post date:** [12 March 2021 08:36 UTC](https://opendata-forum.cern.ch/t/cross-sections-and-luminosities/54/11 "2021-03-12T08:36:54Z")

</div>

Hi @ecarrera

thanks for the information. Yes I can use the more general DY sample that you pointed out. But since I was thinking on some other exercises I was trying to see if any other MC sample listed in opendata has the info about cross sections.

Thanks again for all the help.

cheers,
