Skip to content

Change --require-tpc-lumi option to --lumi-type <type>#1325

Merged
chiarazampolli merged 1 commit intoAliceO2Group:masterfrom
shahor02:pr_lumitype
Nov 14, 2023
Merged

Change --require-tpc-lumi option to --lumi-type <type>#1325
chiarazampolli merged 1 commit intoAliceO2Group:masterfrom
shahor02:pr_lumitype

Conversation

@shahor02
Copy link
Copy Markdown
Collaborator

Following PR#12205 and PR#12237 instead of boolean switch --require-tpc-lumi one should use --lumi-type <int_type> option with the meaning:
0 : no dynamic scaling
1 : require CTP lumi for TPC correction scaling
2 : require TPC scalers from CCDB for TPC correction scaling

--lumi-type 1 corresponds to previous ALIEN_JDL_INSTIRFORTPC=CTP --lumi-type 2 corresponds to previous ALIEN_JDL_INSTIRFORTPC=IDCCCDB

Following PR#12205 and PR#12237 instead of boolean switch --require-tpc-lumi one should use
--lumi-type <int_type>  option with the meaning:
0 : no dynamic scaling
1 : require CTP lumi for TPC correction scaling
2 : require TPC scalers from CCDB for TPC correction scaling

--lumi-type 1 corresponds to previous ALIEN_JDL_INSTIRFORTPC=CTP
--lumi-type 2 corresponds to previous ALIEN_JDL_INSTIRFORTPC=IDCCCDB
@shahor02
Copy link
Copy Markdown
Collaborator Author

@chiarazampolli this requires both AliceO2Group/AliceO2#12205 and AliceO2Group/AliceO2#12237 merged

@@ -193,8 +193,9 @@ def parse_important_DPL_args(cmds, flat_config):
s2 = extract_args(tokens, '--corrmap-lumi-mean')
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@sawenzel note that the option

if cmd == 'o2-tpcits-match-workflow':
corrstring = ''
s1 = extract_args(tokens, '--corrmap-lumi-inst')
if s1:
corrstring += ' --corrmap-lumi-inst ' + s1
s2 = extract_args(tokens, '--corrmap-lumi-mean')
if s2:
corrstring += ' --corrmap-lumi-mean ' + s2
s3 = extract_args(tokens, '--lumi-type')
if s3:
corrstring += ' --lumi-type ' + s3
# these are some options applied in multiple places (so save them flatly under tpc-corr-scaling)
flat_config['tpc-corr-scaling'] = corrstring
are applicable also to o2-secondary-vertexing-workflow, o2-tof-matcher-workflow, o2-trd-global-tracking and o2-tpc-reco-workflow (and o2-gpu-reco-workflow). If one gets this option then all get it. Perhaps one can write a function to avoid copy-pasting the same line which are prone to change?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hello @sawenzel , @shahor02 ,
Do we want to wait for this, or merge? The PRs in O2 are merged, so this in principle could go in.
Cheers,
Chiara

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Since we don't currently use distortions in the MC, I am not sure what was the point of copying these options from the ITS-TPC matching.
For me it is fine to merge this, but then, it obviously cannot be used on the async-stable w/o porting PR#12205 and PR#12237.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hello @sawenzel ,
Do you agree to merge?
@shahor02 , yes, the dependence to O2 is clear.
Chiara

@chiarazampolli
Copy link
Copy Markdown
Collaborator

Merging, if a better layout with a function can be done, it can be taken later.

@chiarazampolli chiarazampolli merged commit 94ebc44 into AliceO2Group:master Nov 14, 2023
@benedikt-voelkel benedikt-voelkel added 2022pp_apass4 async-2023-pbpb-apass4 Request porting to async-2023-pbpb-apass4 mc labels Feb 20, 2024
@benedikt-voelkel benedikt-voelkel added async-2023-pbpb-apass3-accepted and removed async-2023-pbpb-apass4 Request porting to async-2023-pbpb-apass4 labels Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants