Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LHCb
Analysis
Commits
286a41ad
Commit
286a41ad
authored
3 years ago
by
Martina Ferrillo
Committed by
Emmy Gabriel
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updates the methods to read the DST input file
parent
6764dbb7
Branches
emgabrie_FT
No related tags found
No related merge requests found
Pipeline
#3141617
failed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Phys/FunTuple/tests/options/flavour_tag_example.py
+18
-17
18 additions, 17 deletions
Phys/FunTuple/tests/options/flavour_tag_example.py
with
18 additions
and
17 deletions
Phys/FunTuple/tests/options/flavour_tag_example.py
+
18
−
17
View file @
286a41ad
...
...
@@ -13,27 +13,29 @@
Example of tupling with the FunTuple algorithm for LHCb::Particles
"""
from
Configurables
import
CondDB
from
Configurables
import
LHCbApp
from
PhysSelPython.Selections
import
AutomaticData
from
FunTuple
import
MakeDummyParticles
from
Gaudi.Configuration
import
ApplicationMgr
,
NTupleSvc
from
GaudiKernel.Configurable
import
ConfigurableGeneric
as
RFileCnv
import
Functors
as
F
from
FunTuple
import
FunctorCollection
from
FunTuple.NewTupleTools
import
Kinematics
from
FunTuple
import
FunTuple_Particles
as
Funtuple
from
DaVinci
import
options
,
run_davinci
from
DaVinci
import
options
,
run_davinci
from
PyConf.application
import
make_data_with_FetchDataFromFile
from
PyConf.components
import
get_output
from
GaudiConf
import
reading
from
Configurables
import
(
ApplicationMgr
,
DecayTreeTuple
,
LHCbApp
,
createODIN
,
HltANNSvc
,
HltDecReportsDecoder
)
options
.
evt_max
=
10
options
.
input_type
=
'
DS
T
'
options
.
input_files
=
[
'
out_Bs2JpsiPhi_FT.dst
'
]
options
.
evt_max
=
10
options
.
input_type
=
'
ROO
T
'
options
.
input_files
=
[
'
/afs/cern.ch/work/m/mferrill/private/devFunTuple/DVft/Phys/FunTuple/tests/options/
out_Bs2JpsiPhi_FT.dst
'
]
options
.
input_raw_format
=
4.3
options
.
ntuple_file
=
'
DV-example-tupling-basic-ntp.root
'
options
.
histo_file
=
'
DV-example-tupling-basic-his.root
'
options
.
conddb_tag
=
'
sim-20171127-vc-md100
'
options
.
dddb_tag
=
'
dddb-20171126
'
options
.
conddb_tag
=
'
sim-20171127-vc-md100
'
options
.
dddb_tag
=
'
dddb-20171126
'
options
.
simulation
=
True
options
.
data_type
=
'
Upgrade
'
options
.
data_type
=
'
Upgrade
'
print
(
options
)
#define the dictionary of branches, key: branch_name, value: decay_descriptor
...
...
@@ -97,6 +99,7 @@ variables['Jpsi'] = variables_jpsi
#define list of preambles for loki
loki_preamble
=
[
'
TRACK_MAX_PT = MAXTREE(ISBASIC, PT, -1)
'
]
#Configure Funtuple algorithm
algtupledata
=
Funtuple
(
name
=
"
FunTuple
"
,
...
...
@@ -105,11 +108,9 @@ algtupledata = Funtuple(
variables
=
variables
,
loki_preamble
=
loki_preamble
,
make_custom_data
=
False
,
#Set to when make dummy data is being used
inputs
=
'
/Event/HLT2/Hlt2BsToJpsiPhiLine/Particles
'
,
pyconf_alg
=
False
)
algs
=
{
'
FlavourTag
'
:
algtupledata
}
inputs
=
make_data_with_FetchDataFromFile
(
'
/Event/HLT2/Hlt2BsToJpsiPhiLine/Particles
'
),
pyconf_alg
=
True
)
algs
=
{
'
FlavourTag
'
:
[
algtupledata
]}
run_davinci
(
options
,
algs
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment