Skip to content

No output collections are created if FTDCollection has no SimHits #58

@dudarboh

Description

@dudarboh

Issue

FTDPixelTrackerHit, RelationsFTDPixelTrackerHits, FTD_PIXELCollection,
FTDStripTrackerHit, RelationsFTDStripTrackerHits, FTD_STRIPCollection,
FTDSpacePointRelations, FTDSpacePoints
collections are only present if FTDCollection collection has more than 0 entries.

anajob /pnfs/desy.de/ilc/prod/ilc/mc-2020/ild/rec/1-calib/single/ILD_l5_o1_v02_nobg/v02-02-01/00015417/000/rv02-02-01.sv02-02-01.mILD_l5_o1_v02_nobg.E1-calib.I110081.Ps_pm11_prnd.e0.p0.n001_010.d_rec_00015417_370.slcio | grep -e "^FTD*" -e "^EVENT:*" | head -n 30

Output:

EVENT: 18001
FTDCollection                 SimTrackerHit                    0
EVENT: 18002
FTDCollection                 SimTrackerHit                    1
FTDPixelTrackerHitRelations   LCRelation                       1
FTDPixelTrackerHits           TrackerHitPlane                  1
FTD_PIXELCollection           SimTrackerHit                    1
EVENT: 18003
FTDCollection                 SimTrackerHit                    0
EVENT: 18004
FTDCollection                 SimTrackerHit                    0
EVENT: 18005
FTDCollection                 SimTrackerHit                    0
EVENT: 18006
FTDCollection                 SimTrackerHit                    4
FTDSpacePointRelations        LCRelation                       4
FTDSpacePoints                TrackerHit                       2
FTDStripTrackerHitRelations   LCRelation                       4
FTDStripTrackerHits           TrackerHitPlane                  4
FTD_STRIPCollection           SimTrackerHit                    4
EVENT: 18007
FTDCollection                 SimTrackerHit                    0
EVENT: 18008
FTDCollection                 SimTrackerHit                    0
EVENT: 18009
FTDCollection                 SimTrackerHit                    0
EVENT: 18010
FTDCollection                 SimTrackerHit                    0
EVENT: 18011
FTDCollection                 SimTrackerHit                    0

We agreed we should always produce output collections, even if empty to avoid bugs.
iLCSoft/MarlinReco#93

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions