Skip to content

[SL21c] Backport TPC RS changes#466

Merged
plexoos merged 4 commits intostar-bnl:SL21cfrom
plexoos:pr/backport_tpc_sim
Dec 23, 2022
Merged

[SL21c] Backport TPC RS changes#466
plexoos merged 4 commits intostar-bnl:SL21cfrom
plexoos:pr/backport_tpc_sim

Conversation

@plexoos
Copy link
Copy Markdown
Member

@plexoos plexoos commented Dec 14, 2022

@plexoos plexoos changed the title Backport TPC RS changes [SL21c] Backport TPC RS changes Dec 14, 2022
@plexoos plexoos added the backport Label for backport changes applied to SLXXy branches label Dec 14, 2022
@starsdong
Copy link
Copy Markdown
Member

Hi Dmitri, could you help take a look the CI build? They seem not successful and likely will need your expert knowledge to investigate. Thanks

@plexoos
Copy link
Copy Markdown
Member Author

plexoos commented Dec 14, 2022

Yes, I wanted to ask you about the PRs you approved and merged.

In particular #417, I don't quite understand the purpose of this file StRoot/StTpcHitMaker/StTpcHitMaker.flow? I'd appreciate if you can clarify this for us.

Another ambiguity (at least for me) is in #429 merged with message "change for yuri". Can you confirm that the run compatibility with run 22 (see the patch) is appropriate for SL21c and does not affect reprocessing of real data should we need to do one in the future?

		}

-		if(do_cuts==1) {	// ADDED in FY22, pp500
+		if(do_cuts==1 && run_compatibility >= 22) {	// ADDED in FY22, pp500
			// kill ONEDPAD unless they fall before the trigger
			if((cl->t_max > 20) && (fla & FCF_ONEPAD)) return ;
		}

Thank you

@starsdong starsdong requested a review from jml985 December 14, 2022 16:41
@starsdong
Copy link
Copy Markdown
Member

Hi Dmitri,

  1. I asked Yuri about the StTpcHitMaker.flow file, and he commented this is for a documentation that he needs this.

  2. I added Jeff in. My understanding is that the change only has an impact for real data in FY22+. But I should let Jeff (re-)confirm this for SL21c library (Jeff is added in the review list).

Thanks

@starsdong starsdong requested a review from zhux97 December 14, 2022 17:49
@starsdong
Copy link
Copy Markdown
Member

Xianglei, thanks to Dmitri for creating this PR to update the SL21c library for embedding. Since you did all the tests before, could you verify all these changes in this PR are consistent with what you tested before? Currently the CI build fails, since you did the test before, so presumably the codes should compile and run on RCF, correct? Thanks

@plexoos plexoos force-pushed the pr/backport_tpc_sim branch from 2bd170c to 267b782 Compare December 14, 2022 19:52
@zhux97
Copy link
Copy Markdown
Contributor

zhux97 commented Dec 15, 2022 via email

@starsdong
Copy link
Copy Markdown
Member

Thank you, Xianglei. That will be great. Cheers

@plexoos plexoos force-pushed the pr/backport_tpc_sim branch from 7f1885d to e431493 Compare December 18, 2022 16:13
fisyak and others added 4 commits December 19, 2022 11:35
star-bnl#417)

…go(..., Clean ups, add prototypes for (i)TPC23

Co-authored-by: Dmitri Smirnov <dmixsmi@gmail.com>
Co-authored-by: Xin Dong <XDong@lbl.gov>
In order to resolve the error:

```
g++ -m64 -fPIC -pipe -Wall -Woverloaded-virtual -std=c++0x -Wno-long-long -pthread -Wno-deprecated-declarations -O2 -g -falign-loops -falign-jumps -falign-functions -Dsl79_gcc485 -D__ROOT__ -DNEW_DAQ_READER -I. -IStRoot/StTpcHitMaker -IStRoot/RTS/src -IStRoot/RTS/include -IStRoot/RTS/trg/include -I. -IStRoot -I.sl79_gcc485/include -I/opt/software/linux-scientific7-x86_64/gcc-4.8.5/root-5.34.38-l3v6vso6qgojm4l2ctwjojs6trbt4hpn/include -c .sl79_gcc485/OBJ/StRoot/StTpcHitMaker/StTpcRTSHitMaker.cxx -o .sl79_gcc485/OBJ/StRoot/StTpcHitMaker/StTpcRTSHitMaker.o
.sl79_gcc485/OBJ/StRoot/StTpcHitMaker/StTpcRTSHitMaker.cxx: In member function 'virtual Int_t StTpcRTSHitMaker::InitRun(Int_t)':
.sl79_gcc485/OBJ/StRoot/StTpcHitMaker/StTpcRTSHitMaker.cxx:216:33: error: invalid conversion from 'const Char_t* {aka const char*}' to 'char*' [-fpermissive]
     if (gain->from_file(fname, 0) < 0) {
                                 ^
In file included from .sl79_gcc485/OBJ/StRoot/StTpcHitMaker/StTpcRTSHitMaker.cxx:49:0:
StRoot/RTS/src/DAQ_TPX/tpxGain.h:142:6: error:   initializing argument 1 of 'int tpxGain::from_file(char*, int)' [-fpermissive]
  int from_file(char *fname, int sector = 0) ;
      ^
.sl79_gcc485/OBJ/StRoot/StTpcHitMaker/StTpcRTSHitMaker.cxx:150:19: warning: unused variable 'fnameITPC' [-Wunused-variable]
     const Char_t *fnameITPC  = "none";
                   ^
cons: *** [.sl79_gcc485/OBJ/StRoot/StTpcHitMaker/StTpcRTSHitMaker.o] Error 1
cons: errors constructing .sl79_gcc485/OBJ/StRoot/StTpcHitMaker/StTpcRTSHitMaker.o
```
@plexoos plexoos force-pushed the pr/backport_tpc_sim branch from 3d85086 to af1626e Compare December 19, 2022 16:36
@zhux97
Copy link
Copy Markdown
Contributor

zhux97 commented Dec 23, 2022

Thanks to Dmitri for assembling the PR#466 code, I have produced a proton test sample for Run19 AuAu19.6 GeV with SL21c + PR #466 (compiled the update RTS and StTpcHitMaker with cons). The QA plots can be found here
https://www.star.bnl.gov/protected/embedding/AutoIndex.php?dir=pr466datamc/
The previous samples, which were produced with SL21c + the whole RTS/StTpcHitMaker from .DEV2, the QA plots are
https://www.star.bnl.gov/protected/embedding/AutoIndex.php?dir=pr463datamc/
I think everything looks consistent between these two datasets.

Yuri and Tommy have confirmed that the TPC clusters from online and offline (with PR #466 code) cluster finders (SL21c) are consistent within 0.5%, see more comparison plots between online/offline cluster finders in this link:
https://www.star.bnl.gov/~ctsang/TbyT_12222022/

With this tests, I think the code in this PR are ready for merging into the SL21c branch.

@plexoos plexoos merged commit a183a11 into star-bnl:SL21c Dec 23, 2022
@plexoos plexoos deleted the pr/backport_tpc_sim branch December 23, 2022 04:55
plexoos added a commit that referenced this pull request Feb 8, 2023
* All codes in PR #466 are included, to fix the offline cluster finder
(PRs #417 and #429), update TpcRS parameter for Run19 (PR #463).
* Codes in PR #281 are included, to fix the gating grid simulation and
to fix the StMcEventMaker for iTPC simulation.

These patches are needed for SL21d based embedding productions (Run18
Isobar st_hf/st_upc, Run19 FXT, Run20 FXT runs).

Co-authored-by: Dmitri Smirnov <dmixsmi@gmail.com>
@plexoos plexoos added the SL21c label Feb 26, 2023
plexoos added a commit that referenced this pull request May 10, 2023
Patches needed for Run18 Isobar (st_physics) embedding are assembled.
The patched codes are extracted from PR #466, PR #481.

---------

Co-authored-by: Dmitri Smirnov <dmixsmi@gmail.com>
Co-authored-by: Gene Van Buren <gene@bnl.gov>
Co-authored-by: Grigory Nigmatkulov <nigmatkulov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Label for backport changes applied to SLXXy branches SL21c

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants