Skip to content

TrackCosmicExtended reader, attach to InputHelper and RecoContainer - #16017

Merged
shahor02 merged 2 commits into
AliceO2Group:devfrom
shahor02:pr_cosmextprop
Oct 28, 2026
Merged

shahor02 merged 2 commits into
AliceO2Group:devfrom
shahor02:pr_cosmextprop

Conversation

@shahor02

Copy link
Copy Markdown
Collaborator

Reader: new DPL device "cosmic-ext-reader" (TrackCosmicsExtendedReaderSpec) reading the "cosmicsFull" tree of o2_cosmics_full.root written by cosmics-full-writer of @matthias-kleiner, and pushing the same messages the writer receives: GLO/COSMFULL (vector), GLO/COSMFULLTF (CosmicsTFInfo) and GLO/COSMFULLTFID (TFIDInfo).

InputHelper: new InputHelper::addInputSpecsCosmicsExtended(cfgc, specs) attaches the reader (skipped with --disable-root-input). It is also exposed in o2-global-track-cluster-reader via the new option --cosmic-ext.

RecoContainer: the extended cosmics can be requested and retrieved like the old cosmics:

  • request: dataRequest->requestCosmicExtTracks(mc), (mc is a dummy, added for uniformity)
  • retrieve: recoData.getCosmicExtTracks() / getCosmicExtTrack(i), getCosmicExtTFInfo(), getCosmicExtTFID(). The user code must include DataFormatsGlobalTracking/TrackCosmicsExtended.h and CommonDataFormat/TFIDInfo.h. The messages are ROOT-serialized, the deserialized objects are kept alive in the RecoContainer until the next TF.

Co-Authored-By: Claude Sonnet 5.5

Reader: new DPL device "cosmic-ext-reader" (TrackCosmicsExtendedReaderSpec)
reading the "cosmicsFull" tree of o2_cosmics_full.root written by
cosmics-full-writer of @matthias-kleiner, and pushing the same messages the writer receives:
GLO/COSMFULL (vector<TrackCosmicsExtended>), GLO/COSMFULLTF (CosmicsTFInfo)
and GLO/COSMFULLTFID (TFIDInfo).

InputHelper: new InputHelper::addInputSpecsCosmicsExtended(cfgc, specs)
attaches the reader (skipped with --disable-root-input). It is also exposed
in o2-global-track-cluster-reader via the new option --cosmic-ext.

RecoContainer: the extended cosmics can be requested and retrieved like the old cosmics:
  - request:  dataRequest->requestCosmicExtTracks(mc), (mc is a dummy, added for uniformity)
  - retrieve: recoData.getCosmicExtTracks() / getCosmicExtTrack(i),
    getCosmicExtTFInfo(), getCosmicExtTFID(). The user code must include
    DataFormatsGlobalTracking/TrackCosmicsExtended.h and
    CommonDataFormat/TFIDInfo.h.
The messages are ROOT-serialized, the deserialized objects are kept alive
in the RecoContainer until the next TF.

Co-Authored-By: Claude Sonnet 5.5
@shahor02
shahor02 merged commit 63eca50 into AliceO2Group:dev Oct 28, 2026
11 checks passed
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.

2 participants