Fork me on GitHub

source: git/python/DelphesAnalysis/CPconfig.py@ 9cd3a4d

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 9cd3a4d was ae1d49f, checked in by pavel <pavel@…>, 12 years ago

add DelphesAnalysis

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[ae1d49f]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
18 # event selection class
19 eventSelection = ""
20
21 # control plot classes
22 controlPlots = [ ]
23
24 # event content: lists of eventCollection, eventProducer, and eventWeight objects respectively.
25 eventCollections = [ ]
26 eventProducers = [ ]
27 eventWeights = [ ]
28
29class eventDumpConfig:
30 # fine-tuning of the event content for display
31 productsToPrint = [ ] # list of product to display (use the producer label)
32 collectionsToHide = [ ] # collections used in the analysis but not printed (use the collection label)
33
34# import the actual implementation of the configuration
35import os
36theConfig = os.getenv("DelphesAnalysisCfg")
37if theConfig is not None:
38 configImplementation = __import__(os.path.splitext(theConfig)[0])
39 configuration = configImplementation.configuration
40 eventDumpConfig = configImplementation.eventDumpConfig
41
Note: See TracBrowser for help on using the repository browser.