source:
git/python/README@
193c0693
Last change on this file since 193c0693 was a190d94, checked in by , 10 years ago | |
---|---|
|
|
File size: 1.6 KB |
Rev | Line | |
---|---|---|
[ae1d49f] | 1 | Explaining DelphesAnalysis: |
2 | AnalysisEvent.py -> main event class | |
3 | EventSelection.py -> definition of event categories. Must be complemented for a real analysis | |
4 | BaseControlPlots.py -> to be subclassed for each part of the analysis. Std schema: beginJob, process, endJob | |
5 | BaseWeightClass.py -> to be subclassed for each event weight | |
6 | ControlPlots.py -> main program. | |
7 | DumpEventInfo.py -> dump info about a given event. | |
8 | CPconfig.py -> definition of all the components of the analysis. It sources a file provided with the configuration of each analysis. | |
9 | ||
10 | what should be touched to implement an example? | |
11 | * config.py (name given as argument of ControlPlots or set as DelphesAnalysisCfg env var. | |
12 | * specific EventSelection class | |
13 | * specific controlPlots class(es) | |
14 | ||
15 | In the present directory, there are two examples: | |
16 | * Simple analysis. | |
17 | - simpleConfig.py | |
18 | - SimpleEventSelection.py | |
19 | - LeptonControlPlots.py | |
[a190d94] | 20 | * Basic ttbar analysis |
[ae1d49f] | 21 | - topConfig.py |
22 | - TtbarEventSelection.py | |
23 | - TopReconstruction.py | |
24 | - JetControlPlots.py | |
25 | - LeptonControlPlots.py | |
26 | - TopControlPlots.py | |
27 | ||
28 | Commands (starting in Delphes ROOT directory): | |
29 | ||
30 | # setup path | |
31 | . ./DelphesEnv.sh | |
32 | cd python | |
33 | # run the analysis | |
34 | DelphesAnalysis/ControlPlots.py -i ../files/ -o controlPlots_demo.root --all -c topConfig.py | |
35 | # dump a list of events in category 5 (ttbar candidates) | |
36 | export DelphesAnalysisCfg="topConfig.py" | |
37 | python DelphesAnalysis/DumpEventList.py 5 ../delphes_output.root | |
38 | # for each of them, print details | |
39 | for i in `cat eventlist.txt| cut -d' ' -f 2`; { python DelphesAnalysis/DumpEventInfo.py $i ../delphes_output.root; } | |
40 | ||
41 |
Note:
See TracBrowser
for help on using the repository browser.