Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LHCb
DaVinci
Commits
9f98e15a
Commit
9f98e15a
authored
Oct 21, 2021
by
Federico Leo Redi
Browse files
Fixed comments
parent
06359af9
Pipeline
#3149272
passed with stage
in 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Phys/StrippingCache/options/DV-Stripping28r2p1-Stripping.py
View file @
9f98e15a
...
...
@@ -9,45 +9,37 @@
# or submit itself to any jurisdiction. #
###############################################################################
"""
Options for building Stripping28r2p1
.
Options for building Stripping28r2p1
for 2016 data
"""
#use CommonParticlesArchive
# use CommonParticlesArchive
stripping
=
'stripping28r2p1'
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
#
# Fix for TrackEff lines
from
Configurables
import
DecodeRawEvent
DecodeRawEvent
().
setProp
(
"OverrideInputs"
,
4.3
)
#
# Build the streams and stripping object
#
from
StrippingConf.Configuration
import
StrippingConf
from
StrippingSettings.Utils
import
strippingConfiguration
from
StrippingArchive.Utils
import
buildStreams
from
StrippingArchive
import
strippingArchive
#
g
et the configuration dictionary from the database
#
G
et the configuration dictionary from the database
config
=
strippingConfiguration
(
stripping
)
#
g
et the line builders from the archive
#
G
et the line builders from the archive
archive
=
strippingArchive
(
stripping
)
streams
=
buildStreams
(
stripping
=
config
,
archive
=
archive
)
#
# Remove the MCwNoPID lines from B2OC
# Remove the MCwNoPID lines from B2OC
for
stream
in
streams
:
stream
.
lines
=
[
line
for
line
in
stream
.
lines
if
"MCwNoPID"
not
in
line
.
name
()]
...
...
@@ -72,13 +64,7 @@ sc = StrippingConf( Streams = streams,
DSTStreams
=
dstStreams
,
MicroDSTStreams
=
mdstStreams
)
#from Configurables import StrippingReport
#sr = StrippingReport(Selections = sc.selections())
#sr.ReportFrequency = 1000
#
# Configure the dst writers for the output
#
enablePacking
=
True
from
DSTWriters.microdstelements
import
*
...
...
@@ -89,17 +75,13 @@ from DSTWriters.Configuration import ( SelDSTWriter,
stripMicroDSTElements
,
stripCalibMicroDSTStreamConf
)
#
# Configuration of MicroDST
# per-event an per-line selective writing of the raw event is active (selectiveRawEvent=True)
#
mdstStreamConf
=
stripMicroDSTStreamConf
(
pack
=
enablePacking
,
selectiveRawEvent
=
True
)
mdstElements
=
stripMicroDSTElements
(
pack
=
enablePacking
)
#
# Configuration of SelDSTWriter
# per-event an per-line selective writing of the raw event is active (selectiveRawEvent=True)
#
SelDSTWriterElements
=
{
'default'
:
stripDSTElements
(
pack
=
enablePacking
),
charmMicroDSTname
:
mdstElements
,
...
...
@@ -107,7 +89,6 @@ SelDSTWriterElements = {
bhadronMicroDSTname
:
mdstElements
,
}
SelDSTWriterConf
=
{
'default'
:
stripDSTStreamConf
(
pack
=
enablePacking
,
selectiveRawEvent
=
True
),
charmMicroDSTname
:
mdstStreamConf
,
...
...
@@ -131,10 +112,7 @@ caloProtoReprocessLocs = ["/Event/pRec/ProtoP#99", "/Event/pRec/Calo#99"]
# Make sure they are present on full DST streams
SelDSTWriterConf
[
'default'
].
extraItems
+=
caloProtoReprocessLocs
#
# DaVinci Configuration
#
from
Configurables
import
DaVinci
from
Configurables
import
HCRawBankDecoderHlt
Hlt1LowMult_HCRawBankDecoderHlt
=
HCRawBankDecoderHlt
(
'hcrawbankdecoder'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment