Create and pass v0 flag to AOD#12443
Conversation
| } | ||
| if (posTableIdx != -1 and negTableIdx != -1 and collID != -1) { | ||
| v0Cursor(collID, posTableIdx, negTableIdx); | ||
| v0Cursor(collID, posTableIdx, negTableIdx, v0flags); |
There was a problem hiding this comment.
@ddobrigk at the moment compilation fails here with
/home/shahoian/alice/sw/SOURCES/O2/dev/0/Framework/Core/include/Framework/AnalysisHelpers.h: In instantiation of 'void o2::framework::WritingCursor<o2::soa::Table<C ...> >::operator()(T ...) [with T = {int, int, int, unsigned char}; PC = {o2::aod::v0::CollisionId, o2::aod::v0::PosTrackId, o2::aod::v0::NegTrackId}]':
/home/shahoian/alice/sw/SOURCES/O2/dev/0/Detectors/AOD/src/AODProducerWorkflowSpec.cxx:1180:15: required from 'void o2::aodproducer::AODProducerWorkflowDPL::fillSecondaryVertices(const o2::globaltracking::RecoContainer&, V0CursorType&, CascadeCursorType&, Decay3BodyCursorType&) [with V0CursorType = o2::framework::Produces<o2::soa::Table<o2::soa::Index<0, -1>, o2::aod::v0::CollisionId, o2::aod::v0::PosTrackId, o2::aod::v0::NegTrackId> >; CascadeCursorType = o2::framework::Produces<o2::soa::Table<o2::soa::Index<0, -1>, o2::aod::cascade::CollisionId, o2::aod::cascade::V0Id, o2::aod::cascade::BachelorId> >; Decay3bodyCursorType = o2::framework::Produces<o2::soa::Table<o2::soa::Index<0, -1>, o2::aod::decay3body::CollisionId, o2::aod::decay3body::Track0Id, o2::aod::decay3body::Track1Id, o2::aod::decay3body::Track2Id> >]'
/home/shahoian/alice/sw/SOURCES/O2/dev/0/Detectors/AOD/src/AODProducerWorkflowSpec.cxx:2117:24: required from here
/home/shahoian/alice/sw/SOURCES/O2/dev/0/Framework/Core/include/Framework/AnalysisHelpers.h:48:33: error: static assertion failed: Argument number mismatch
48 | static_assert(sizeof...(PC) == sizeof...(T), "Argument number mismatch");
|
Error while checking build/O2/fullCI for d3b0c1e at 2023-12-12 01:04: Full log here. |
d3b0c1e to
22f2093
Compare
|
Thanks a lot, @shahor02 , indeed now the converter is merged so we can switch to |
|
@ddobrigk did a test on 2 TFs, svertexer reports and To me looks reasonable. The only doubt I have is: as far as I understand, in the old AODs the fV0Type will be set to 0, so all v0s will look like saved for the cascade only. Can avoid this with some defaults or shall I swap the bits in the AODProducer to have "0: standard v0, 1: photon v0, 2: v0 for cascade" ? |
Hi @shahor02, no, this is unnecessary here because the default in case this isn't in the AO2D (i.e. for old AO2Ds) is defined in the V0 converter inside O2Physics and isn't necessarily zero. At the moment I set the default to 255, but actually now that we also incorporated the photons, I should set it simply to 1 to flag everything as a standard V0. |
|
Error while checking build/O2/fullCI for 22f2093 at 2023-12-13 11:57: Full log here. |
|
@ddobrigk the fullCI fails in the analysis, could you please check? |
Hi Ruben, yes, see here: AliceO2Group/O2Physics#4156 |
|
tested locally, CIs failing due the fix in the O2Physics not merged yet. |
* Flag standalone and photon V0s in the V0Index * Pass v0 flags to AOD * Set v0s_002 as default --------- Co-authored-by: shahoian <ruben.shahoyan@cern.ch>
* Flag standalone and photon V0s in the V0Index * Pass v0 flags to AOD * Set v0s_002 as default --------- Co-authored-by: shahoian <ruben.shahoyan@cern.ch>
* Flag standalone and photon V0s in the V0Index * Pass v0 flags to AOD * Set v0s_002 as default --------- Co-authored-by: shahoian <ruben.shahoyan@cern.ch>
* Flag standalone and photon V0s in the V0Index * Pass v0 flags to AOD * Set v0s_002 as default --------- Co-authored-by: shahoian <ruben.shahoyan@cern.ch>


No description provided.