Skip to content
Snippets Groups Projects
Commit ce9c61eb authored by Alex Pearce's avatar Alex Pearce
Browse files

Allow for 2016-style Tesla configuration on 2017 data.

parent 241408b5
No related branches found
No related tags found
2 merge requests!85merge master to future,!66Configuration of Tesla with selective persistence
...@@ -105,6 +105,8 @@ class Tesla(LHCbConfigurableUser): ...@@ -105,6 +105,8 @@ class Tesla(LHCbConfigurableUser):
, 'IgnoredLines' : [ ] # Regexes for lines excluded from the comparison of DecReports and input to TeslaReportsAlgo , 'IgnoredLines' : [ ] # Regexes for lines excluded from the comparison of DecReports and input to TeslaReportsAlgo
, 'FilterMC' : False # Save a subset of the input MC particles and vertices under `Tesla.base, mimicking a microDST writer` , 'FilterMC' : False # Save a subset of the input MC particles and vertices under `Tesla.base, mimicking a microDST writer`
, 'ILinePersistenceSvc' : "TCKLinePersistenceSvc" # Implementation of the ILinePersistenceSvc to use (for >= 2017 data types) , 'ILinePersistenceSvc' : "TCKLinePersistenceSvc" # Implementation of the ILinePersistenceSvc to use (for >= 2017 data types)
, 'CandidatesFromSelReports' : False # If True and DataType >= 2017, take Turbo candidates from Hlt2SelReports rather than
# from the DstData raw bank (i.e. behave as if DataType =< 2016)
} }
_propertyDocDct ={ _propertyDocDct ={
"EvtMax" : "Maximum number of events to process, default all" "EvtMax" : "Maximum number of events to process, default all"
...@@ -150,6 +152,8 @@ class Tesla(LHCbConfigurableUser): ...@@ -150,6 +152,8 @@ class Tesla(LHCbConfigurableUser):
, 'IgnoredLines' : 'Regexes for lines excluded from the comparison of DecReports and input to TeslaReportsAlgo' , 'IgnoredLines' : 'Regexes for lines excluded from the comparison of DecReports and input to TeslaReportsAlgo'
, 'FilterMC' : "Save a subset of the input MC particles and vertices under `Tesla.base`, mimicking a microDST writer" , 'FilterMC' : "Save a subset of the input MC particles and vertices under `Tesla.base`, mimicking a microDST writer"
, 'ILinePersistenceSvc' : "Implementation of the ILinePersistenceSvc to use (for >= 2017 data types)" , 'ILinePersistenceSvc' : "Implementation of the ILinePersistenceSvc to use (for >= 2017 data types)"
, 'CandidatesFromSelReports' : ("If True and DataType >= 2017, take Turbo candidates from Hlt2SelReports rather than "
"from the DstData raw bank (i.e. behave as if DataType =< 2016)")
} }
...@@ -977,7 +981,7 @@ class Tesla(LHCbConfigurableUser): ...@@ -977,7 +981,7 @@ class Tesla(LHCbConfigurableUser):
# /Event/Turbo, else it will be packed # /Event/Turbo, else it will be packed
TurboConf().setProp("RootInTES", "/Event") TurboConf().setProp("RootInTES", "/Event")
if self.getProp('DataType') == '2017': if self.getProp('DataType') == '2017' and not self.getProp('CandidatesFromSelReports'):
# Unpack the DstData raw bank # Unpack the DstData raw bank
TurboConf().setProp("PersistReco", True) TurboConf().setProp("PersistReco", True)
streaming_seq = self._configureOutputTurboSP() streaming_seq = self._configureOutputTurboSP()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment