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

Documentation Request: ROOT IO of JAPAN outputs and EPICs data in PANGUIN #68

Open
cameronc137 opened this issue Feb 1, 2019 · 3 comments

Comments

@cameronc137
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
There are many ways to read and write root trees (from JAPAN or otherwise), as well as EPICs data (reading and writing - for stripcharts and alarm handling), and if we could keep all of that information together and in a concise set of examples that would be really helpful.

Describe the solution you'd like
A wiki section in here and also a set of example macros/.cfg files with ROOT IO (reading and writing new root trees I guess) and EPICS calls

Describe alternatives you've considered
Just sticking with data handler manipulation for new data and just using tree Draw() commands forever

Additional context
I like to document everything

@cameronc137
Copy link
Collaborator Author

If we could replicate the CMake procedure for including JAPAN .so files for doing root analyses that was developed for remoll recently that would be great as well.

See JeffersonLab/remoll#159

@cameronc137
Copy link
Collaborator Author

We got an example JAPAN macro that does complex ROOT IO to work in https://github.com/JeffersonLab/japan/tree/feature-panguin-macros

@cameronc137
Copy link
Collaborator Author

A few examples of ROOT IO that work as exemplified in aggregator code:

Get a leaf from a chain:

TLeaf * Leaf = Chain->GetLeaf(branch);

Assign a branch address from a known branch name:
oldTree->SetBranchAddress(branchList[k],&oldValues[k]); // Set old branch addresses

Using a TTreeReader to do the same but more intelligently:
TTreeReaderValue<Double_t> temp1(oldTreeReader,oldManipulatedDataBranchList[iBranch]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant