|
1 | 1 | # 2010-minimumbias-trackvertex |
2 | 2 | Validation code for 2010 MinimumBias dataset, based on track and vertex spectra |
| 3 | + |
| 4 | +You need to work in a Virtual Machine properly contextualized for CMS. Everything is available on the CERN Open Data Portal: |
| 5 | +http://opendata.cern.ch/VM/CMS/2010. |
| 6 | + |
| 7 | +In order to run the demoanalyzer_cfg.py to create the ROOT files, you need to create a working area and set up a proper |
| 8 | +CMS environment. |
| 9 | + |
| 10 | +## Creating the Working area |
| 11 | +This step is only needed the first time. |
| 12 | +``` |
| 13 | +cmsrel CMSSW_4_2_8 |
| 14 | +``` |
| 15 | +## Cloning the 2010-minimumbias-trackvertex repository from Github |
| 16 | +Type this command to change directory: |
| 17 | +``` |
| 18 | +cd CMSSW_4_2_8/src |
| 19 | +``` |
| 20 | +For cloning type: |
| 21 | +``` |
| 22 | +git clone https://github.com/cms-opendata-validation/2010-minimumbias-trackvertex Validation/TrackVertex_2010 |
| 23 | +``` |
| 24 | +## Setting up the CMS environment |
| 25 | +``` |
| 26 | +cd Validation/TrackVertex_2010 |
| 27 | +cmsenv |
| 28 | +``` |
| 29 | +## Compiling and Running |
| 30 | +``` |
| 31 | +scram b |
| 32 | +cmsRun demoanalyzer_cfg.py |
| 33 | +``` |
| 34 | + |
| 35 | +After analysis, MinBias00val.root file should be created. |
| 36 | +Then, is necessary to change input and also output files in demoanalyzer_cfg.py, to save these changes and to rerun program. |
| 37 | +In the datasets directory in the repository from github are index files with names: |
| 38 | + |
| 39 | +``` |
| 40 | +CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0000_file_index.txt |
| 41 | +CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0001_file_index.txt |
| 42 | +CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0002_file_index.txt |
| 43 | +CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0003_file_index.txt |
| 44 | +CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0004_file_index.txt |
| 45 | +CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0005_file_index.txt |
| 46 | +CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0006_file_index.txt |
| 47 | +``` |
| 48 | +These index files are the same as you can find in the open data portal record http://opendata.cern.ch/record/8 , they are copied here for convenience and also for details of the analysis you can read comments in the analysis code TrackVertexAnalyzer.cc . |
| 49 | +It necessary to note that whole analysis can take around 16 hours! |
| 50 | + |
| 51 | +When you rerun all seven index files you should have seven root files with names: |
| 52 | +``` |
| 53 | +MinBias00val.root |
| 54 | +MinBias01val.root |
| 55 | +MinBias02val.root |
| 56 | +MinBias03val.root |
| 57 | +MinBias04val.root |
| 58 | +MinBias05val.root |
| 59 | +MinBias06val.root |
| 60 | +``` |
| 61 | + |
| 62 | +The last thing what you should do is to merge these seven root files into one root file. |
| 63 | +You do this as follow. In the downloaded repository is also file with name mergeMinBias.C . |
| 64 | +Type command for opening ROOT program: |
| 65 | +``` |
| 66 | +root |
| 67 | +``` |
| 68 | +In this program just type command: |
| 69 | +``` |
| 70 | +.x mergeMinBias.C |
| 71 | +``` |
| 72 | +This merging creates a root file called MinBiasAllval.root . |
| 73 | +To look at this output, write down command in ROOT program: |
| 74 | +``` |
| 75 | +new TBrowser |
| 76 | +``` |
| 77 | +and navigate to relevant file. |
| 78 | +The most interesting histograms are the inclusive track pt spectra: 2.6pt, 2.4pt... - ...0.4pt, 0.2pt corresponding to the |eta| ranges 2.6-2.4, 2.4-2.2, ... , 0.4-0.2, 0.2-0.0 |
0 commit comments