[ae1d49f] | 1 | #configuration of the ControlPlot machinery
|
---|
| 2 |
|
---|
| 3 | from collections import namedtuple
|
---|
| 4 | controlPlot = namedtuple("controlPlot", ["label","module","classname","kwargs"])
|
---|
| 5 | eventCollection = namedtuple("eventCollection",["label","collection"])
|
---|
| 6 | eventProducer = namedtuple("eventProducer", ["label","module","function","kwargs"])
|
---|
| 7 | eventWeight = namedtuple("eventWeight", ["label","module","classname","kwargs"])
|
---|
| 8 |
|
---|
| 9 | class 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 |
|
---|
| 35 | class 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 |
|
---|