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

Changes for FNAL TB 2023 #23

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

pmeridian
Copy link
Contributor

@pmeridian pmeridian commented Apr 10, 2023

-> Adding preprocessor (needed to read directly FNAL TB data). Previous configs should be fully backward compatibles
-> Dynamic tree has been fixed to specificy MAX_SIZE when not creating H4Tree from a TTree. Fixed also a bug for unsigned long long not present in the typeId map (separate pull request to DynamicTree for this)
-> Possibility to run without a trgInstance (using PHYS as standard trig Type)
-> Several improvements to the WFClassClock: baseline subtraction from a templatefit, inclusion of polarity (to also use trailing edge for independent clock measurement)
-> WFCLass CropWF: create a cropped copy of another WFClass, can be used to create indipendent shorter copies of the original WF (eg for clock phase precision estimation)

cfg/ECAL_H4_Oct2021/ECAL_H4_Phase1_base.cfg Show resolved Hide resolved
DynamicTTree Outdated
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changed should be pushed to the submodule repo: https://github.com/simonepigazzini/DynamicTTree and not directly here. In H4analysis we should just change the commit to which the submodule point to.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will push also there, but this pull request needs to know which version of DynamicTree to be used

@pmeridian
Copy link
Contributor Author

Forgot to mention, that I've briefly tested this branch on a previous H4Tree config and everything should be bwk compatible (default dataType and preprocessor is set to H4Tree)

+++ Adding file /eos/cms/store/group/dpg_ecal/comm_ecal/upgrade/testbeam/ECALTB_H4_Oct2021/DataTree/15001/0035.root
+++ Adding file /eos/cms/store/group/dpg_ecal/comm_ecal/upgrade/testbeam/ECALTB_H4_Oct2021/DataTree/15001/0036.root
+++ Adding file /eos/cms/store/group/dpg_ecal/comm_ecal/upgrade/testbeam/ECALTB_H4_Oct2021/DataTree/15001/0037.root
+++ Adding file /eos/cms/store/group/dpg_ecal/comm_ecal/upgrade/testbeam/ECALTB_H4_Oct2021/DataTree/15001/0043.root
+++ Added 38
Loaded H4DAQPreProcessor: 1

Loading plugin
Loaded DigitizerReco: 1
Registering Shared Data DigiReco_MCP1
Processing H4DAQ run #15001 <<<
Error in TTree::SetBranchAddress: unknown branch -> digiSampleTime
Processed spills: 1/38
Processed events: 0
-----Machine stats---current/max-----
CPU(%): 31.3/31.3
MEM(%): 2.3/2.3
VSZ(M): 1017.07/1017.07
RSS(M): 169.316/169.316
time lasted: 0:00
-----Machine stats---current/max-----
CPU(%): 43.4/43.4
MEM(%): 2.6/2.6
VSZ(M): 820.496/1017.07
RSS(M): 195.22/195.22
time lasted: 0:02

The only thing is a warning for digiSampleTime missing, as I've added this branch to directly fill time from FNAL scope data, as it seem to come from some scope calibration (it's not regularly spaced)

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

Successfully merging this pull request may close these issues.

2 participants