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

Add makers and utilities for FST hit processing #266

Merged
merged 40 commits into from
Jan 25, 2022

Conversation

jdbrice
Copy link
Contributor

@jdbrice jdbrice commented Dec 20, 2021

FST additions for offline reconstruction chain - builds on PR#265.
Adds Chain options:
"fstDb" - FST Db Maker
"fstFastSim" - should have been added before, adding now for completeness
"fstRawHit" - FST Raw hit (from DAQ) maker
"fstCluster" - StFstClusterMaker
"fstHit" - StFstHitMaker
"fstUtil" - Loads the Fst Utilities

Test chains (RawHitMaker, populates base StEvent structures):
"in,fstDb,fstRawHit"
data file here: /star/data01/pwg/yezhenyu/FTS/Shenghui/Offline/data/st_fstcosmic_22340057_raw_0000010.daq

Test chain (reco):
"in,fstUtil,fstRawHit,fstDb,fstCluster,fstHit"
/star/u/sunxuhit/ForwardSiliconTracker/Data/FstInstallation/daqtest/351/st_physics_22351023_raw_1500001.daq

jdbrice and others added 28 commits June 11, 2021 10:16
update from upstream on Friday, June 11, 2021
Updated StarGeo.xml to be able to acces this in dev2021
@sunxuhit
Copy link
Contributor

Okay, I have created the remaining Geometry/fst tables as per request: https://drupal.star.bnl.gov/STAR/blog/yezhenyu/FST-Offline-Database

Zhenyu, please proceed with data upload. Examples could be found under: https://online.star.bnl.gov/dbExplorer/

Database initialization timestamps for Run22 could be found here: https://chat.sdcc.bnl.gov/star/pl/z153ij6tcfr3bpo66b99uywxoy

Updated the StFstDbMaker as suggested.

The Calibrations/fst/ is currently empty, and we will start to upload data with daily calibration files and other databases. I hope this shouldn’t prevent this PR to be merged.

The data table under Geometry/fst/ are still under development. To complete, the survey data needs to be correctly put in for FST. The purpose for this PR is to start the fast offline QA so FST data got monitored asap. We are using some hard-coded ideal geometry for now and transfer to the database later.

@dmarkh
Copy link
Contributor

dmarkh commented Jan 10, 2022

Regarding empty calibrations tables - the StFstMaker code will abort if no data is found in the database. STAR requires subsystem experts to upload initial "ideal" calibrations using predefined timestamps before the data taking to avoid chain crashes.

Data upload is easy, examples are provided for each table at:
https://online.star.bnl.gov/dbExplorer/
Calibrations -> FST -> reconV0 ->

@jdbrice
Copy link
Contributor Author

jdbrice commented Jan 12, 2022

I propose an "fstChain" that runs "fstRawHit,fstCluster,fstHit". @jdbrice , either you can do it by mimicking what I did for "fcsChain", or I can provide you with a version of BigFullChain.h with that in place (it's not complicated, so I don't mind doing it).

Otherwise the BFC stuff looks generally OK.

-Gene

@genevb I added this in commit 068a89f

please check that it is done as you expect.

…nd kFstrStop, also remove ununsed old file StFstUtil/StFstConsts.h
@sunxuhit
Copy link
Contributor

Regarding empty calibrations tables - the StFstMaker code will abort if no data is found in the database. STAR requires subsystem experts to upload initial "ideal" calibrations using predefined timestamps before the data taking to avoid chain crashes.

Data upload is easy, examples are provided for each table at: https://online.star.bnl.gov/dbExplorer/ Calibrations -> FST -> reconV0 ->

The Calibration tables are all uploaded, at least the initial version of them.
The Geometry tables are still under development, and will be uploaded in a later time (not in this PR).
I hope the current database is good enough for a test run.
I will clean up the macro and upload all the pedestal files to database in final format later after I am fully confident to do so.

@dmarkh
Copy link
Contributor

dmarkh commented Jan 13, 2022

The Calibration tables are all uploaded, at least the initial version of them. The Geometry tables are still under development, and will be uploaded in a later time (not in this PR). I hope the current database is good enough for a test run. I will clean up the macro and upload all the pedestal files to database in final format later after I am fully confident to do so.

Regarding failing tests - my bad, sorry! The GetTable call comes from the TTable macro, not from StDbTable as I originally thought.

So, please revert GetTableCpy() calls back to the original GetTable(), and remove free() calls.

Regarding uploaded tables - you and I agreed that you will tell me which tables are temporary and should be deleted. Does your reply mean that all tables are okay and nothing needs to be deleted?

@sunxuhit
Copy link
Contributor

The Calibration tables are all uploaded, at least the initial version of them. The Geometry tables are still under development, and will be uploaded in a later time (not in this PR). I hope the current database is good enough for a test run. I will clean up the macro and upload all the pedestal files to database in final format later after I am fully confident to do so.

Regarding failing tests - my bad, sorry! The GetTable call comes from the TTable macro, not from StDbTable as I originally thought.

So, please revert GetTableCpy() calls back to the original GetTable(), and remove free() calls.

Regarding uploaded tables - you and I agreed that you will tell me which tables are temporary and should be deleted. Does your reply mean that all tables are okay and nothing needs to be deleted?

All the GetTableCpy() are switched by to GetTable(), and removed all the free command.

For the tables, those are still temporary. I was wondering is that possible to run some test production with the temporary, so I could adjust accordingly if anything is wrong.
If we need the final table for the test run, I will double check my macro and update the final ones asap.

Copy link
Contributor

@dmarkh dmarkh left a comment

Choose a reason for hiding this comment

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

LGTM. All FST db tables are created, populated, and working.

@starsdong
Copy link
Member

Hongwei, do you have any further comment on the RawHitMaker and DbMaker?

Flemming and Grigory, would be great if you can also take a review of the new commits and comment/approve?

Thanks

@fvidebaek
Copy link
Contributor

fvidebaek commented Jan 17, 2022 via email

}

if(disk == 1) local[2] = 146.6012; //unit: cm
else if(disk == 2) local[2] = 160.1724; //unit: cm
Copy link
Contributor

Choose a reason for hiding this comment

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

please change to (1) 151.750 (2) 165.248 (3) 178.781 from survey document as we agreed upon Monday. With that code is fine

Copy link
Contributor

Choose a reason for hiding this comment

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

update the number in the new commit

@starsdong
Copy link
Member

Thank you Flemming and Hongwei for the approvals.

Gene, are you OK with the chain options? If all OK, I think we can merge this PR into main. Thank you

@genevb
Copy link
Contributor

genevb commented Jan 18, 2022

Gene, are you OK with the chain options? If all OK, I think we can merge this PR into main. Thank you

No. My corrections to BigFullChain.h have not been addressed.

Thanks,
-Gene

@jdbrice
Copy link
Contributor Author

jdbrice commented Jan 25, 2022

@genevb commit 9b5c35b addresses the issues with the BFC. Please let me know if any other changes are needed

Copy link
Contributor

@genevb genevb left a comment

Choose a reason for hiding this comment

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

I'm satisfied with the BFC modifications.

@starsdong
Copy link
Member

Dmitri, the review process for these new makers + chain options is complete. Let us merge this PR into main.

Thanks

@plexoos plexoos changed the title Fst rawhit Add makers and utilities for FST hit processing Jan 25, 2022
@plexoos plexoos merged commit 958cd67 into star-bnl:main Jan 25, 2022
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.

10 participants