mmfe8_dataformats's People
mmfe8_dataformats's Issues
Exclude non-hits (VMM, CH) = (0, 0) from the TP fitter TTree
Resulting file for combineTPGBT has entries where VMM, MMFE8, etc are 0
There are extraneous entries -can these be removed? They cause the octuplet analysis code to segfault :( @jrfarah
Thanks!
Write concise shell script / readme for running the whole chain
E.g. I start with raw scintillator / MM / TP dat files; I want a combined root file; what do I do?
if(tpfittime > 1495040000) { break; }
Add an integer to the TP fit TTree which says how many hits are present
It would make looping over / drawing hits easier. Suggestion: tpfit_n
.
e.g.
tree->Draw("mxlocal", "tpfit_n==7 || tpfit_n==8")
or
for i in xrange(tree.tpfit_n):
print tree.tpfit_CH[i]
(moved from Alex's issue in trigger_daq)
Add a combined MM SCINT TPSCINT dat format
Rename cloned tree
raw2root and raw2evtdat give inconsistent timestamps
raw2evtdat writes the first fifo timestamp to file:
https://github.com/crogan/MMFE8_DataFormats/blob/master/src/raw2evtdat.C#L145
raw2root writes the last fifo timestamp to file:
https://github.com/crogan/MMFE8_DataFormats/blob/master/src/raw2root.C#L144
I'll bug someone about this tomorrow.
Bug in gbt2root when more than 8 hits are sent to ADDC
I think this is a bug:
MMFE8_DataFormats/src/gbt2root.C
Lines 178 to 180 in 8a59110
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.