Coder Social home page Coder Social logo

mmfe8_dataformats's People

Contributors

alexandertuna avatar crogan avatar jrfarah avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

mmfe8_dataformats's Issues

Rename cloned tree

@jrfarah

Minor request: could you rename the cloned tree to inform the downstream stuff that it's looking at a combined TP root file? Specifically, this expects it.

Could you add:

combdata->SetName("TPcomb_data");

after cloning?

Bug in gbt2root when more than 8 hits are sent to ADDC

I think this is a bug:

if (!Aflag)
for (int k = 0; k < nhitscycle; k++)
gbt_BCID.push_back(TPbcid);

nhitscycle takes the number of hits received by the ADDC per BC. But the number of hits processed by the ADDC is limited to 8. So gbt_BCID can be filled too many times. Like, if there are 16 hits sent to the ADDC, the gbt_BCID branch will be filled 16 times, but it should only be filled 8 times.

Here's an example from 3550:

> f = ROOT.TFile.Open("mmtp_test_21.decode.root")
> tr = f.Get("GBT_data")
> tr.GetEntry(1)
> print len(tr.gbt_CH), len(tr.gbt_VMM), len(tr.gbt_MMFE8), len(tr.gbt_BCID)
59 59 59 72

I'll make a patch and a pull request.

Eternal damnation and combineTPGBT.py

combineTPGBT.py loops eternally at the end of its running.

Once it reaches the last fit packet (j == nfit), the GBT iterator (i += 1) never increments, because there is a continue just before incrementing. Mamma mia.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.