Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secondary Vertex Example for BPhysics #10

Open
gordonwatts opened this issue Jan 31, 2022 · 0 comments
Open

Secondary Vertex Example for BPhysics #10

gordonwatts opened this issue Jan 31, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@gordonwatts
Copy link
Member

  • Make sure we can get at the secondary vertex banks located in a typical physics file
  • Make sure we can access the decorations (which are used quite heavily) in the file.

From Peter O:

Use this b-physics xAOD file: root://eosatlas.cern.ch//eos/atlas/user/d/daits/mc16_13TeV/DAOD_BPHY4/mc16.999031.P8BEG_23lo_ggX18p4_Upsilon1Smumu_4mu_3pt2.deriv.DAOD_BPHY4.e8304_a875_r10724_r10726_p3712_pUM999999/DAOD_BPHY4.999031._000001.pool.root.1

Some example PyROOT code:

PyROOT code example

for event in xrange(nEntries):
    t.GetEntry(event)
    
    for BPHY4Quads in t.BPHY4Quads:
        mass = BPHY4Quads.auxdataConst['float']('QUAD_mass')
        mindices = [int() for  in BPHY4Quads.auxdataConst['string']('CombinationCode')]
...
    closevalue = sorted(((_.chiSquared(), ) for  in t.BPHY4Quads if _.auxdataConst['string']('ChargeCode').count('+')==2),
                        )
@gordonwatts gordonwatts added the enhancement New feature or request label Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant