Skip to content
Snippets Groups Projects

DaVinci example to show how to get charged particles in a DaVinci script

Closed Guillaume Max Pietrzyk requested to merge guillaume_davinci_example into master
1 file
+ 2
5
Compare changes
  • Side-by-side
  • Inline
@@ -27,9 +27,6 @@ This script assumes persistreco for every event.
def main(options: Options):
## Line definitions
line = 'Hlt2TrackEff_Velo2Long_B2JpsiK_MuonProbe_VELO' #Just an example
from RecoConf.reconstruction_objects import reconstruction, upfront_reconstruction
# TODO, ideally it should work without an explicit bind by the user
with reconstruction.bind(from_file=True, spruce=True):
@@ -41,8 +38,8 @@ def main(options: Options):
unpack_data = upfront_reconstruction()
algs = {
"B02JpsiK": unpack_data +
[long_muons, long_electrons, long_kaons, long_pions],
"B02JpsiK":
unpack_data + [long_muons, long_electrons, long_kaons, long_pions],
}
return make_config(options, algs)
Loading