Fork me on GitHub

source: git/python/simpleConfig.py@ e5ea42e

Last change on this file since e5ea42e was ae1d49f, checked in by pavel <pavel@…>, 12 years ago

add DelphesAnalysis

  • Property mode set to 100644
File size: 1.7 KB
Line 
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"
12 RDSname = "rds_delphes"
13 WSname = "workspace_ras"
14
15 # mode: plots or dataset
16 runningMode = "plots"
17 #runningMode = "dataset"
18
19 # event selection class
20 eventSelection = "SimpleEventSelection"
21
22 # control plot classes
23 controlPlots = [ controlPlot("selection","EventSelectionControlPlots","EventSelectionControlPlots", { }),
24 controlPlot("leptons","LeptonControlPlots","LeptonControlPlots", { }) ]
25
26 # event content: lists of eventCollection, eventProducer, and eventWeight objects respectively.
27 eventCollections = [ eventCollection("genEvent","Event"),
28 eventCollection("muons","EFlowMuon"),
29 eventCollection("electrons","Electron"),
30 eventCollection("jets","Jet"),
31 eventCollection("tracks","Track")]
32 eventProducers = [ eventProducer("category","SimpleEventSelection","eventCategory",{ }) ]
33 eventWeights = [ ]
34
35class eventDumpConfig:
36 # fine-tuning of the event content for display
37 productsToPrint = [ "category" ] # list of product to display (use the producer label)
38 collectionsToHide = [ "tracks" ] # collections used in the analysis but not printed (use the collection label)
39
Note: See TracBrowser for help on using the repository browser.