Skip to content
Snippets Groups Projects
Commit 43bd62e3 authored by Eduardo Rodrigues's avatar Eduardo Rodrigues
Browse files

Merge branch 'S29r1Cache' into 'master'

Add StrippingCache for S29r1

See merge request !99
parents 5eb10a1c 31b58e59
No related branches found
No related tags found
2 merge requests!106Merged master into future,!99Add StrippingCache for S29r1
...@@ -42,7 +42,7 @@ if ( NOT "$ENV{CMTCONFIG}" STREQUAL "x86_64-slc6-gcc48-do0" ) ...@@ -42,7 +42,7 @@ if ( NOT "$ENV{CMTCONFIG}" STREQUAL "x86_64-slc6-gcc48-do0" )
set ( conf_deps ${deps} DaVinciConfUserDB ) set ( conf_deps ${deps} DaVinciConfUserDB )
# Build the cache only for the most recent stripping. # Build the cache only for the most recent stripping.
foreach(strip 29) foreach(strip 29r1)
# Stripping cache name # Stripping cache name
set ( sname S${strip}FunctorCache ) set ( sname S${strip}FunctorCache )
......
...@@ -5,6 +5,11 @@ ...@@ -5,6 +5,11 @@
! Created : 2015-02-04 ! Created : 2015-02-04
! ----------------------------------------------------------------------------- ! -----------------------------------------------------------------------------
!======================== StrippingCache v1r10p1 2017-09-13 =====================
! 2017-09-13 - Michael Alexander
- Add cache for S29r1.
!======================== StrippingCache v1r10 2017-06-13 ======================= !======================== StrippingCache v1r10 2017-06-13 =======================
! 2017-05-30 - Michael Alexander ! 2017-05-30 - Michael Alexander
......
"""
Options for building Stripping29r1.
"""
stripping='stripping29r1'
#use CommonParticlesArchive
from CommonParticlesArchive import CommonParticlesArchiveConf
CommonParticlesArchiveConf().redirect(stripping)
from Gaudi.Configuration import *
MessageSvc().Format = "% F%30W%S%7W%R%T %0W%M"
#
# Disable the cache in Tr/TrackExtrapolators
#
from Configurables import TrackStateProvider
TrackStateProvider().CacheStatesOnDemand = False
#
# Fix for TrackEff lines
#
from Configurables import DecodeRawEvent
DecodeRawEvent().setProp("OverrideInputs",4.2)
#
# Build the streams and stripping object
#
from StrippingConf.Configuration import StrippingConf, StrippingStream
from StrippingSettings.Utils import strippingConfiguration
from StrippingArchive.Utils import buildStreams
from StrippingArchive import strippingArchive
#get the configuration dictionary from the database
config = strippingConfiguration(stripping)
#get the line builders from the archive
archive = strippingArchive(stripping)
streams = buildStreams(stripping = config, archive = archive)
leptonicMicroDSTname = 'Leptonic'
charmMicroDSTname = 'Charm'
pidMicroDSTname = 'PID'
bhadronMicroDSTname = 'Bhadron'
mdstStreams = [ leptonicMicroDSTname,charmMicroDSTname,pidMicroDSTname,bhadronMicroDSTname ]
dstStreams = [ "BhadronCompleteEvent", "CharmCompleteEvent", "Dimuon",
"EW", "Semileptonic", "Calibration", "MiniBias", "Radiative" ]
stripTESPrefix = 'Strip'
from Configurables import ProcStatusCheck
# Fix for removal of default constructor for AALLSAMEBPV after DV v41r3.
# Thi has been fixed from S28 onwards.
#from Gaudi.Configuration import allConfigurables
#for conf in allConfigurables.values() :
# if hasattr(conf, 'CombinationCut') and 'AALLSAMEBPV' in conf.CombinationCut :
# conf.CombinationCut = conf.CombinationCut.replace('AALLSAMEBPV', 'AALLSAMEBPV(-1, -1, -1)')
sc = StrippingConf( Streams = streams,
MaxCandidates = 2000,
MaxCombinations = 10000000,
AcceptBadEvents = False,
BadEventSelection = ProcStatusCheck(),
TESPrefix = stripTESPrefix,
ActiveMDSTStream = True,
Verbose = True,
DSTStreams = dstStreams,
MicroDSTStreams = mdstStreams )
from Configurables import ApplicationMgr, AuditorSvc, SequencerTimerTool
# Initial IOV time
# http://www.onlineconversion.com/unix_time.htm
# values in ns (so multiply values from above link by 1e9)
#from Configurables import EventClockSvc
#EventClockSvc().EventTimeDecoder = "OdinTimeDecoder"
appMgr = ApplicationMgr()
appMgr.OutputLevel = 6
appMgr.ExtSvc += [ 'ToolSvc', 'AuditorSvc' ]
appMgr.HistogramPersistency = "ROOT"
ntSvc = NTupleSvc()
appMgr.ExtSvc += [ ntSvc ]
from Configurables import ( LHCbApp, PhysConf, AnalysisConf,
DstConf, LumiAlgsConf, DDDBConf )
LHCbApp().DDDBtag = "dddb-20150724"
LHCbApp().CondDBtag = "cond-20170510"
# Can be enabled for next full stack release
PhysConf().OutputLevel = appMgr.OutputLevel
#AnalysisConf().OutputLevel = appMgr.OutputLevel
datatype = "2017"
PhysConf().DataType = datatype
AnalysisConf().DataType = datatype
LumiAlgsConf().DataType = datatype
DDDBConf().DataType = datatype
inputType = "RDST"
LumiAlgsConf().InputType = inputType
PhysConf().InputType = inputType
unPack = ["Reconstruction"]
PhysConf().EnableUnpack = unPack
DstConf().EnableUnpack = unPack
lumiSeq = GaudiSequencer("LumiSeq")
LumiAlgsConf().LumiSequencer = lumiSeq
appMgr.TopAlg += [ PhysConf().initSequence(),
AnalysisConf().initSequence(),
sc.sequence(), lumiSeq ]
#from Configurables import DaVinci
#DaVinci().ProductionType = "Stripping"
#DaVinci().DataType = datatype
#DaVinci().DDDBtag = LHCbApp().DDDBtag
#DaVinci().CondDBtag = LHCbApp().CondDBtag
#DaVinci().appendToMainSequence( [ sc.sequence() ] )
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