-
Notifications
You must be signed in to change notification settings - Fork 1
/
README_edmpickevents.txt
70 lines (31 loc) · 2.2 KB
/
README_edmpickevents.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
********* Instructions on how to run pickevents *********
In order to create a MiniAOD (or AOD) root file (to be used as input for fireworks) do as follows:
cd in a CMSSW
CMSSW_10_2_X for Run2 pre-Legacy data
CMSSW_10_6_X for Run2 Legacy data (UL)
CMSSW_12_4_X for Run3 data
cd CMSSW_X_X_X/src
mkdir edmPickEvents
cd edmPickEvents/
cmsenv
voms-proxy-init -voms cms
edmPickEvents.py "/JetHT/Run2017F-17Nov2017-v1/MINIAOD" 305814:610:971086788 --crab
where /JetHT/Run2017F-17Nov2017-v1/MINIAOD is the dataset and 305814:610:971086788 is the run:lumi:event of the event you want to pick.
If you want the output root file to have more than one event then do:
edmPickEvents.py "/JetHT/Run2017F-17Nov2017-v1/MINIAOD" events.txt --crab
where events.txt is a text file with one event in each line with the format run:lumi:event
The above command automatically generates a "pickevents_crab.py" script, a "pickevents_runEvents.txt" file with the run and event number of the event(s) and a "pickevents.json" with the lumi of the event(s).
You will then have to modify the "pickevents_crab.py" script before you sumbit the job(s) to crab. If you change the name of the generated "pickevents_runEvents.txt" you will have to change it in the .py script as well. You can also modify the name of the output root file, the name of the workarea folder etc.
You will also have to add the following command in the .py script:
config.JobType.allowUndistributedCMSSW = True
Add it under the "JobType" section.
After you save all the changes to the .py submit the jobs by doing:
crab submit -c pickevents_crab.py
Check the status of the jobs with:
crab status crab_pickevents_XXXX_YYYY/crab_pickEvents/
When jobs are in finished status do:
crab getoutput crab_pickevents_XXXX_YYYY/crab_pickEvents/ --checksum=no
The output root file to be used as input for fireworks is located in the folder crab_pickevents_XXXX_YYYY/crab_pickEvents/results/
This output root file can also be used to display the event in the WEB interface. Move the root file to a folder inside the Exotica EOS and go to:
https://fireworks.cern.ch/cmsShowWeb/revetor.pl
Enter the location of the file and press "Load File EOS". This will create the event display.