Skip to content
Snippets Groups Projects
Commit 956c323b authored by Vanya Belyaev's avatar Vanya Belyaev
Browse files

DaVinci:

 - Set "CondDB ( Upgdade = True)"  for DataType='Upgrade'
parent 34e2137d
No related branches found
No related tags found
2 merge requests!121Merged master into future,!113DaVinci:
...@@ -8,6 +8,11 @@ ...@@ -8,6 +8,11 @@
! !
!----------------------------------------------------------------------------- !-----------------------------------------------------------------------------
! 2017-11-07 - Vanya Belyaev
- DaVinci
- Set "CondDB ( Upgdade = True)" for DataType='Upgrade'
! 2017-01-12 - Vanya Belyaev ! 2017-01-12 - Vanya Belyaev
- DaVinci: - DaVinci:
issue warning message if DDDBtag/CondDBtag are not specified for simulated data issue warning message if DDDBtag/CondDBtag are not specified for simulated data
......
...@@ -555,6 +555,21 @@ class DaVinci(LHCbConfigurableUser) : ...@@ -555,6 +555,21 @@ class DaVinci(LHCbConfigurableUser) :
log.info("Creating Moni Algorithms") log.info("Creating Moni Algorithms")
self.appendToMoniSequence( self.getProp("MoniSequence") ) self.appendToMoniSequence( self.getProp("MoniSequence") )
## Specific action for DataType='Upgrade'
def _upgradeAction ( self ) :
""" Define specific action for DataType='Upgrade'
"""
if self.getProp('DataType').upper() == 'UPGRADE' :
from Configurables import CondDB
_db = CondDB()
if _db.isPropertySet('Upgrade') :
if not _db.getProp('Upgrade') :
log.warning('Inconsistent configuration: CondDB ( Upgrade = False ) is set explicitely')
else :
log.info ('Define CondDB( Upgrade = True ) ')
_db.Upgrade = True
################################################################################ ################################################################################
# Append to Moni sequence # Append to Moni sequence
# #
...@@ -581,7 +596,8 @@ class DaVinci(LHCbConfigurableUser) : ...@@ -581,7 +596,8 @@ class DaVinci(LHCbConfigurableUser) :
'SDST' : 1 } 'SDST' : 1 }
inputType = self.getProp('InputType').upper() inputType = self.getProp('InputType').upper()
IODataManager().setProp('AgeLimit', depthMap.get(inputType, 0)) IODataManager().setProp('AgeLimit', depthMap.get(inputType, 0))
################################################################################ ################################################################################
# Apply configuration # Apply configuration
# #
...@@ -625,6 +641,7 @@ class DaVinci(LHCbConfigurableUser) : ...@@ -625,6 +641,7 @@ class DaVinci(LHCbConfigurableUser) :
self._defineEvents() self._defineEvents()
self._defineInput() self._defineInput()
self._rootFiles() self._rootFiles()
self._upgradeAction()
# Add main sequence to TopAlg # Add main sequence to TopAlg
self._mainSequence () self._mainSequence ()
......
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