Skip to content

Commit

Permalink
Merge pull request #1 from Lukas9318/master
Browse files Browse the repository at this point in the history
Mu_Mumonitor
  • Loading branch information
katilp authored Aug 14, 2016
2 parents 71b6fc1 + 6d1c7eb commit 75cb8fe
Show file tree
Hide file tree
Showing 13 changed files with 4,144 additions and 1 deletion.
12 changes: 12 additions & 0 deletions BuildFile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<use name="FWCore/Framework"/>
<use name="FWCore/PluginManager"/>
<use name="FWCore/ParameterSet"/>
<use name="DataFormats/TrackReco"/>
<use name="CommonTools/UtilAlgos"/>
<use name="PhysicsTools/UtilAlgos"/>
<use name="DataFormats/MuonReco"/>
<use name="RecoMuon/TrackingTools"/>
<flags EDM_PLUGIN="1"/>
<export>
<lib name="1"/>
</export>
80 changes: 79 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,80 @@
# 2010-mu-mumonitor-dimuon
Validation code for 2010 Mu and MuMonitor datasets, based on dimuon mass spectrum
Validation code for 2010 Mu and MuMonitor datasets, based on dimuon mass spectrum.

You need to work in a Virtual Machine properly contextualized for CMS.
Everything is available on the CERN Open Data Portal http://opendata.cern.ch/VM/CMS/2010.

In order to run the demoanalyzer_cfg.py to create the Commissioning ROOT files,
you need to create a working area and set up a proper CMS environment.

## Creating the Working Area

This step is only needed the first time.
```
cmsrel CMSSW_4_2_8
```
## Cloning the 2010-commissioning-dimuon repository from Github
Type this command to change directory:
```
cd CMSSW_4_2_8/src
```
For cloning type:
```
git clone https://github.com/cms-opendata-validation/2010-mu-mumonitor-dimuon Validation/Mu_Mumonitor_dimuon_2010
```

## Setting up the CMS environment
```
cd Validation/Mu_Mumonitor_dimuon_2010
cmsenv
```

## Compiling and Running
```
scram b
cmsRun demoanalyzer_cfg.py
```

After analysis, Mu00.root file should be created.
Then, is necessary to change input and also output files in demoanalyzer_cfg.py, to save these changes and to rerun program.
In the datesets directory in the repository from github are index files with names:

```
CMS_Run2010B_Mu_AOD_Apr21ReReco-v1_0000_file_index.txt
CMS_Run2010B_Mu_AOD_Apr21ReReco-v1_0001_file_index.txt
CMS_Run2010B_Mu_AOD_Apr21ReReco-v1_0002_file_index.txt
CMS_Run2010B_Mu_AOD_Apr21ReReco-v1_0003_file_index.txt
CMS_Run2010B_Mu_AOD_Apr21ReReco-v1_0004_file_index.txt
CMS_Run2010B_Mu_AOD_Apr21ReReco-v1_0005_file_index.txt
```

These index files are the same as you can find in the open data portal record http://opendata.cern.ch/record/14 , they are copied here for convenience and also for details of the
analysis you can read comments in the analysis code Mu_MumonitorAnalyzer.cc .
It necessary to note that whole analysis can take around 21 hours!

When you rerun all six index files you should have six root files with names:
```
Mu00val.root
Mu01val.root
Mu02val.root
Mu03val.root
Mu04val.root
Mu05val.root
```

The last thing what you should do is to merge these six root files into one root file.
You do this as follow. In the downloaded repository is also file with name mergeMu.C .
Press command for opening ROOT program:
```
root
```
In this programe just type command:
```
.x mergeMu.C .
```
This merging creates a root file called MuAllval.root .
To look at this output, write down command in ROOT program:
```
new TBrowser
```
and navigate to relevant file. The most interesting histogram is GM_mass_log. This is the validation histogram.
704 changes: 704 additions & 0 deletions datasets/CMS_Run2010B_Mu_AOD_Apr21ReReco-v1_0000_file_index.txt

Large diffs are not rendered by default.

489 changes: 489 additions & 0 deletions datasets/CMS_Run2010B_Mu_AOD_Apr21ReReco-v1_0001_file_index.txt

Large diffs are not rendered by default.

412 changes: 412 additions & 0 deletions datasets/CMS_Run2010B_Mu_AOD_Apr21ReReco-v1_0002_file_index.txt

Large diffs are not rendered by default.

553 changes: 553 additions & 0 deletions datasets/CMS_Run2010B_Mu_AOD_Apr21ReReco-v1_0003_file_index.txt

Large diffs are not rendered by default.

388 changes: 388 additions & 0 deletions datasets/CMS_Run2010B_Mu_AOD_Apr21ReReco-v1_0004_file_index.txt

Large diffs are not rendered by default.

438 changes: 438 additions & 0 deletions datasets/CMS_Run2010B_Mu_AOD_Apr21ReReco-v1_0005_file_index.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"136035": [[1, 53], [55, 207], [209, 259]], "136066": [[181, 297], [299, 319], [321, 321], [323, 336], [338, 348], [350, 366], [368, 529], [532, 544], [546, 595], [597, 719], [721, 1004], [1006, 1184]], "136080": [[249, 250], [252, 255]], "136082": [[1, 173], [175, 422], [477, 504], [506, 506]], "136087": [[250, 265], [267, 277], [279, 310], [312, 314]], "136088": [[1, 3], [6, 17], [19, 39], [41, 47], [50, 50], [52, 52], [54, 63], [65, 65], [67, 89], [91, 113], [115, 131], [133, 137], [139, 184], [187, 191], [193, 194], [196, 206], [208, 208], [210, 262]], "136097": [[1, 1], [3, 3], [5, 5], [7, 7], [9, 9], [11, 12], [14, 78]], "136098": [[1, 10]], "136100": [[1, 94]], "136119": [[1, 35]], "137027": [[98, 146], [149, 162], [165, 187]], "137028": [[1, 107], [111, 157], [163, 169], [171, 180], [184, 200], [203, 209], [211, 232], [234, 274], [276, 338], [341, 475], [478, 484]], "138564": [[1, 4]], "138571": [[1, 13]], "138572": [[1, 213]], "138737": [[1, 66]], "138738": [[1, 10]], "138739": [[1, 13]], "138742": [[1, 20], [22, 38]], "138744": [[1, 24]], "138745": [[1, 10]], "138746": [[1, 129]], "138747": [[1, 71], [73, 131]], "138750": [[1, 46], [49, 208], [210, 623], [626, 709]], "138751": [[1, 110], [112, 146]], "138919": [[62, 150]], "138920": [[1, 55]], "138921": [[1, 165], [168, 181], [183, 191]], "138923": [[1, 2]], "138924": [[1, 62]], "138937": [[1, 26]], "138939": [[1, 26]], "139020": [[227, 316], [319, 617]], "139096": [[193, 210], [212, 233], [235, 236], [239, 239], [242, 267]], "139098": [[1, 92], [94, 121], [123, 160], [162, 179]], "139100": [[1, 13], [15, 15], [17, 19], [21, 102], [104, 104], [106, 205], [207, 307]], "139102": [[1, 12], [14, 55]], "139103": [[7, 154], [157, 414], [416, 416], [418, 449]], "139195": [[9, 14], [16, 29], [31, 81], [83, 92]], "139239": [[164, 214], [217, 217], [219, 222], [224, 225], [227, 270]], "139347": [[214, 357], [359, 516]], "139356": [[175, 186], [188, 192]], "139360": [[1, 30]], "139364": [[1, 48], [51, 72]], "139365": [[1, 9], [12, 14], [16, 82], [84, 84], [86, 112], [114, 166], [168, 179], [181, 250]], "139368": [[1, 34], [36, 100], [102, 150], [152, 166]], "139370": [[1, 175], [177, 254], [257, 445], [447, 468], [472, 504], [506, 562], [564, 581], [583, 619], [622, 645]], "139372": [[20, 46], [48, 173], [175, 194]], "139375": [[1, 47]], "139399": [[75, 89], [94, 107], [109, 109], [114, 117], [125, 125]], "139400": [[1, 22]], "139407": [[1, 976], [978, 1074], [1076, 1251]], "139411": [[4, 67], [69, 135]], "139457": [[1, 73]], "139458": [[1, 103], [107, 326], [329, 395]], "139459": [[1, 2], [4, 55]], "139779": [[4, 52]], "139780": [[4, 75]], "139781": [[4, 200]], "139783": [[4, 36]], "139784": [[4, 71]], "139786": [[4, 101]], "139788": [[4, 35]], "139789": [[4, 112]], "139790": [[4, 21]], "139965": [[209, 213]], "139966": [[1, 51]], "139967": [[1, 55]], "139968": [[1, 5]], "139969": [[1, 78]], "139971": [[1, 304]], "139972": [[1, 38]], "139973": [[1, 118]], "139974": [[1, 53]], "139975": [[1, 15], [17, 54]], "140058": [[111, 224]], "140059": [[1, 610], [613, 1160]], "140070": [[1, 11]], "140076": [[1, 60]], "140124": [[1, 390], [392, 938], [940, 1733]], "140126": [[1, 322]], "140158": [[5, 404]], "140159": [[1, 379]], "140160": [[1, 217]], "140180": [[1, 55]], "140181": [[1, 13]], "140331": [[222, 544], [546, 614], [626, 626], [635, 749]], "140359": [[1, 35], [40, 43]], "140361": [[1, 151]], "140362": [[1, 354]], "140379": [[123, 244]], "140381": [[16, 37]], "140382": [[1, 128], [131, 214]], "140383": [[1, 276], [281, 447], [453, 487]], "140385": [[1, 4], [26, 30], [50, 185]], "140386": [[1, 23]], "140387": [[7, 137]], "140388": [[1, 114]], "140399": [[1, 251], [257, 283], [285, 708]], "140401": [[1, 265]], "141880": [[1, 200]], "141881": [[1, 572], [575, 707]], "141956": [[202, 445], [447, 548]], "141957": [[1, 87]], "141958": [[1, 34]], "141959": [[6, 86]], "141960": [[1, 285]], "141961": [[41, 117]], "142035": [[305, 738]], "142036": [[1, 273]], "142038": [[1, 185], [187, 830]], "142039": [[1, 7]], "142040": [[1, 341]], "142076": [[381, 398], [403, 536]], "142128": [[226, 239]], "142129": [[1, 45]], "142130": [[1, 787], [789, 789], [791, 816]], "142132": [[1, 62], [64, 85], [88, 111], [113, 236]], "142135": [[1, 128], [130, 151]], "142136": [[1, 224]], "142137": [[1, 477], [496, 815]], "142187": [[207, 302]], "142189": [[1, 252]], "142191": [[1, 204], [206, 247]], "142265": [[1, 187]], "142303": [[138, 229]], "142304": [[1, 11]], "142305": [[1, 262]], "142308": [[1, 43]], "142309": [[1, 108], [110, 110], [116, 116]], "142311": [[1, 638]], "142312": [[1, 185], [204, 342]], "142313": [[1, 149]], "142413": [[133, 222]], "142414": [[8, 145]], "142417": [[1, 8]], "142418": [[1, 40]], "142419": [[1, 243]], "142422": [[1, 1298]], "142513": [[1, 101], [107, 107]], "142514": [[1, 124]], "142523": [[140, 197]], "142524": [[4, 306], [327, 348]], "142525": [[1, 181]], "142528": [[1, 976]], "142530": [[1, 82]], "142535": [[1, 118]], "142537": [[1, 114], [139, 217]], "142557": [[118, 237]], "142558": [[1, 429]], "142657": [[1, 2]], "142658": [[1, 5]], "142659": [[1, 64]], "142660": [[1, 16]], "142661": [[1, 17]], "142662": [[1, 186]], "142663": [[1, 167]], "142664": [[1, 80]], "142928": [[383, 578], [617, 721], [724, 1046]], "142933": [[1, 92], [194, 203], [228, 1077]], "142935": [[1, 47]], "142936": [[1, 16]], "142953": [[88, 333], [342, 342]], "142954": [[1, 240]], "142970": [[124, 266]], "142971": [[1, 1701]], "143004": [[215, 299]], "143005": [[1, 239]], "143006": [[1, 117]], "143007": [[1, 863]], "143008": [[113, 155]], "143179": [[113, 169]], "143181": [[1, 679], [681, 1055]], "143187": [[1, 329]], "143191": [[1, 109], [111, 164], [166, 172]], "143192": [[1, 48]], "143193": [[1, 76]], "143318": [[106, 157]], "143319": [[8, 34], [36, 60]], "143320": [[1, 171]], "143321": [[1, 46], [95, 95]], "143322": [[1, 15], [30, 42], [66, 118], [130, 131], [139, 202]], "143323": [[1, 49], [81, 607]], "143326": [[1, 264]], "143327": [[1, 228]], "143328": [[1, 404]], "143657": [[210, 516], [518, 2034]], "143665": [[1, 306]], "143727": [[1, 135], [143, 355]], "143731": [[1, 23]], "143827": [[1, 219], [221, 672]], "143833": [[1, 900]], "143835": [[1, 284]], "143953": [[123, 250], [271, 621]], "143954": [[1, 187]], "143955": [[1, 68]], "143956": [[1, 41]], "143957": [[1, 52], [54, 147]], "143959": [[1, 102], [104, 124]], "143960": [[1, 107]], "143961": [[1, 308]], "143962": [[1, 352], [354, 359]], "144010": [[1, 8], [10, 73], [77, 77]], "144011": [[1, 18], [22, 398]], "144086": [[1, 196], [198, 242], [244, 265], [267, 298]], "144089": [[1, 114], [117, 161], [163, 172], [174, 1605], [1607, 1693]], "144112": [[136, 236], [238, 381], [383, 437], [439, 1489], [1491, 1711], [1713, 1737]], "144114": [[1, 79]], "146428": [[1, 2], [11, 52], [55, 92]], "146430": [[1, 12], [18, 47], [50, 62], [65, 90]], "146431": [[1, 23]], "146436": [[1, 532]], "146437": [[1, 798]], "146510": [[1, 339]], "146511": [[1, 63], [65, 778]], "146513": [[1, 1], [3, 15]], "146514": [[1, 545], [548, 871]], "146589": [[34, 248]], "146644": [[89, 117], [119, 565], [567, 867], [869, 1032], [1034, 2171], [2369, 2465]], "146698": [[155, 180], [186, 189]], "146710": [[1, 49], [114, 115], [117, 214]], "146712": [[1, 69]], "146713": [[1, 48], [50, 256]], "146715": [[1, 125]], "146721": [[1, 6]], "146724": [[1, 106], [109, 109], [112, 150], [152, 159]], "146804": [[111, 148], [150, 520], [522, 789], [791, 822], [824, 905]], "146807": [[132, 362], [365, 420], [422, 469]], "146944": [[177, 669]], "147043": [[161, 500]], "147048": [[94, 484]], "147114": [[180, 187], [227, 240], [247, 667]], "147115": [[1, 546]], "147116": [[1, 54]], "147196": [[1, 90]], "147214": [[1, 79]], "147216": [[1, 63]], "147217": [[1, 193]], "147218": [[1, 45]], "147219": [[1, 293], [309, 320]], "147222": [[1, 444]], "147284": [[32, 306]], "147390": [[1, 478], [480, 837]], "147450": [[80, 166]], "147451": [[1, 116], [118, 129]], "147452": [[1, 44]], "147453": [[1, 146]], "147454": [[1, 97]], "147754": [[1, 167], [170, 377]], "147755": [[81, 231]], "147757": [[1, 359]], "147926": [[77, 548]], "147927": [[1, 152]], "147929": [[1, 266], [272, 618], [620, 643]], "148002": [[92, 203]], "148029": [[50, 483], [485, 569], [571, 571]], "148031": [[1, 341], [472, 757], [759, 855]], "148032": [[1, 199]], "148058": [[1, 97]], "148822": [[1, 446]], "148829": [[1, 73], [75, 240], [244, 303]], "148860": [[1, 39]], "148862": [[1, 18], [20, 108], [110, 149], [151, 165], [224, 258], [262, 297], [299, 366], [368, 504], [512, 679]], "148864": [[1, 31], [33, 141], [224, 236], [238, 476], [478, 680]], "148952": [[70, 257]], "148953": [[1, 100]], "149003": [[84, 238]], "149011": [[1, 341], [343, 706]], "149058": [[1, 65]], "149063": [[1, 102]], "149181": [[229, 1840], [1844, 1920]], "149291": [[79, 79], [82, 786], [788, 788], [790, 790], [794, 794]], "149294": [[1, 171]]}

Loading

0 comments on commit 75cb8fe

Please sign in to comment.