Skip to content

Add metadata to AOD#7503

Merged
sawenzel merged 6 commits into
AliceO2Group:devfrom
nburmaso:aod-metadata
Nov 9, 2021
Merged

Add metadata to AOD#7503
sawenzel merged 6 commits into
AliceO2Group:devfrom
nburmaso:aod-metadata

Conversation

@nburmaso

@nburmaso nburmaso commented Nov 3, 2021

Copy link
Copy Markdown
Contributor

@jgrosseo, @sawenzel: This is a fixed PR, following #7501

@nburmaso nburmaso mentioned this pull request Nov 3, 2021
…d-metadata

� Conflicts:
�	Detectors/AOD/include/AODProducerWorkflow/AODProducerWorkflowSpec.h
�	Detectors/AOD/src/AODProducerWorkflowSpec.cxx
converterVersion += o2::fullVersion();
converterVersion += " ; root ";
converterVersion += ROOT_RELEASE;
mMetaData.Add(new TObjString("Run3ConverterVersion"), new TObjString(converterVersion));

@jgrosseo jgrosseo Nov 5, 2021

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.

You can rename this to "O2Version" and just put o2::fullVersion there, then let's make an additional one "ROOTVersion" for ROOT_RELEASE

Comment on lines +211 to +214
TString mLPMProdTag{"LHC21Axx"};
TString mAnchorPass{"pass1"};
TString mAnchorProd{"LHC15o"};
TString mRecoPass{"pass1"};

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.

Please put empty defaults. We should not have meaningful defaults (like it was for the run number), this causes trouble often. ;)

LOGF(info, "Metadata: writing into %s", mResFile);
fResFile->WriteObject(&mMetaData, "metaData");
} else {
LOGF(info, "Metadata: target file not found or metadata is already written");

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.

I think this is not the case of file not found. It is just the if (!fResFile->FindObjectAny("metaData"))
Are there valid cases when this is allowed? Otherwise it should be fatal
I think it should also be fatal if the output file is not found

Comment on lines +1408 to +1411
ConfigParamSpec{"lpmp-prod-tag", VariantType::String, "LHC21Axx", {"LPMProductionTag"}},
ConfigParamSpec{"anchor-pass", VariantType::String, "pass1", {"AnchorPassName"}},
ConfigParamSpec{"anchor-prod", VariantType::String, "LHC15o", {"AnchorProduction"}},
ConfigParamSpec{"reco-pass", VariantType::String, "LHC15o", {"RecoPassName"}},

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.

Empty defaults also here

@nburmaso

nburmaso commented Nov 5, 2021

Copy link
Copy Markdown
Contributor Author

Hi @jgrosseo. Thank you for taking a look at the code. I have fixed it according to your comments

@sawenzel

sawenzel commented Nov 5, 2021

Copy link
Copy Markdown
Collaborator

@nburmaso : Can we remove the draft status to trigger the CI?

@nburmaso nburmaso marked this pull request as ready for review November 5, 2021 12:58
@nburmaso nburmaso requested a review from a team as a code owner November 5, 2021 12:58
@nburmaso

nburmaso commented Nov 5, 2021

Copy link
Copy Markdown
Contributor Author

@sawenzel, yes sure. Also, notice that TMap is written separately from tables, and some O2DPG scripts may need tuning because of it (e.g. due to files merging)

@sawenzel

sawenzel commented Nov 5, 2021

Copy link
Copy Markdown
Collaborator

@nburmaso : Could you suggest necessary changes in O2DPG yourself? It's not clear to me what needs to be done.

@nburmaso

nburmaso commented Nov 5, 2021

Copy link
Copy Markdown
Contributor Author

@sawenzel: I'm not sure myself if changes are even needed, it's only my guess. Sorry if it was too bothersome :)

@jgrosseo

jgrosseo commented Nov 5, 2021

Copy link
Copy Markdown
Collaborator

The merger already deals with the meta data correctly.

@sawenzel sawenzel merged commit 90c6dc4 into AliceO2Group:dev Nov 9, 2021
@nburmaso nburmaso deleted the aod-metadata branch November 9, 2021 10:31
ezradlesser pushed a commit to ezradlesser/AliceO2 that referenced this pull request Dec 2, 2021
* Add metadata to AOD

* pass production tags using separate configurables

* set data type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants