Fork me on GitHub

source: git/python/README@ f3598d0

ImprovedOutputFile Timing dual_readout llp
Last change on this file since f3598d0 was a190d94, checked in by Pavel Demin <pavel.demin@…>, 10 years ago

fix formatting

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[ae1d49f]1Explaining DelphesAnalysis:
2AnalysisEvent.py -> main event class
3EventSelection.py -> definition of event categories. Must be complemented for a real analysis
4BaseControlPlots.py -> to be subclassed for each part of the analysis. Std schema: beginJob, process, endJob
5BaseWeightClass.py -> to be subclassed for each event weight
6ControlPlots.py -> main program.
7DumpEventInfo.py -> dump info about a given event.
8CPconfig.py -> definition of all the components of the analysis. It sources a file provided with the configuration of each analysis.
9
10what 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
15In 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
28Commands (starting in Delphes ROOT directory):
29
30# setup path
31. ./DelphesEnv.sh
32cd python
33# run the analysis
34DelphesAnalysis/ControlPlots.py -i ../files/ -o controlPlots_demo.root --all -c topConfig.py
35# dump a list of events in category 5 (ttbar candidates)
36export DelphesAnalysisCfg="topConfig.py"
37python DelphesAnalysis/DumpEventList.py 5 ../delphes_output.root
38# for each of them, print details
39for 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.