Fork me on GitHub

source: svn/trunk/python/topConfig.py@ 1156

Last change on this file since 1156 was 1112, checked in by Pavel Demin, 12 years ago

add DelphesAnalysis

File size: 2.6 KB
RevLine 
[1112]1#configuration of the ControlPlot machinery
2
3from collections import namedtuple
4controlPlot = namedtuple("controlPlot", ["label","module","classname","kwargs"])
5eventCollection = namedtuple("eventCollection",["label","collection"])
6eventProducer = namedtuple("eventProducer", ["label","module","function","kwargs"])
7eventWeight = namedtuple("eventWeight", ["label","module","classname","kwargs"])
8
9class configuration:
10 # default I/O
11 defaultFilename = "controlPlots_ttbar"
12 RDSname = "rds_delphes_ttbar"
13 WSname = "workspace_ras_ttbar"
14
15 # mode: plots or dataset
16 runningMode = "plots"
17 #runningMode = "dataset"
18
19 # event selection class
20 eventSelection = "TtbarEventSelection"
21
22 # control plot classes
23 controlPlots = [ controlPlot("selection","EventSelectionControlPlots","EventSelectionControlPlots", { }),
24 controlPlot("leptons","LeptonControlPlots","LeptonControlPlots", { }),
25 controlPlot("jets","JetControlPlots","JetControlPlots", { }),
26 controlPlot("top","TopControlPlots","TopControlPlots", { })
27 ]
28
29 # event content: lists of eventCollection, eventProducer, and eventWeight objects respectively.
30 eventCollections = [ eventCollection("genEvent","Event"),
31 eventCollection("muons","Muon"),
32 eventCollection("electrons","Electron"),
33 eventCollection("jets","Jet"),
34 eventCollection("MEt","MissingET")
35 ]
36 eventProducers = [ eventProducer("category","TtbarEventSelection","eventCategory",{ }),
37 eventProducer("selectedJets","TopReconstruction","jetSelection",{ "ptcut":20., "etacut":2.4 }),
38 eventProducer("bJets","TopReconstruction","bjets",{}),
39 eventProducer("lJets","TopReconstruction","ljets",{}),
40 eventProducer("topCandidates_L","TopReconstruction","topCandidates",{"leptonic":True,"hadronic":False}),
41 eventProducer("topCandidates_H","TopReconstruction","topCandidates",{"leptonic":False,"hadronic":True}),
42 eventProducer("topPairCandidates","TopReconstruction","topCandidates",{"leptonic":True,"hadronic":True})
43 ]
44 eventWeights = [ ]
45
46class eventDumpConfig:
47 # fine-tuning of the event content for display
48 productsToPrint = [ "category", "topPairCandidates" ] # list of product to display (use the producer label)
49 collectionsToHide = [ ] # collections used in the analysis but not printed (use the collection label)
50
Note: See TracBrowser for help on using the repository browser.