Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tutorials to use IOSvc and functional algorithms #21

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

m-fila
Copy link
Contributor

@m-fila m-fila commented Feb 25, 2025

BEGINRELEASENOTES

  • Update algorithms be to functional k4FWCore algortihms
  • Replace k4DataSvc with IOSvc in the tutorials
  • Don't link deprecated and removed GaudiAlg library
  • Fix broken link to documentation

ENDRELEASENOTES

There seems to be two problems:

  • The input file to Gaudi tutorial is outdated and I can't check if this actually runs well with the IOSvc. Can't read tutorial root input file #9
  • In the MarlinWrapper tutorial with IOSvc I get the errors:
    ApplicationMgr       INFO Application Manager Initialized successfully
    ApplicationMgr       INFO Application Manager Started successfully
    MyAIDAProcessor     DEBUG Retrieving LCIO Event for wrapped processor MyAIDAProcessor
    MyAIDAProcessor     DEBUG Registering empty Event for EDM4hep to LCIO conversion event in TES
    ToolSvc.EDM4hep...   INFO Converting all collections from EDM4hep to LCIO
    ToolSvc.EDM4hep...  DEBUG Converting collection BeamCalCollection (storing it as BeamCalCollection)
    ToolSvc.EDM4hep...  DEBUG Converting type edm4hep::CaloHitContribution from input BeamCalCollection
    ToolSvc.EDM4hep...  DEBUG CaloHitContribution collection cannot be converted standalone. SimCalorimeterHit collection to be converted in order to be able to attach to them
    ToolSvc.EDM4hep...  DEBUG Converting collection BeamCalCollectionContributions (storing it as BeamCalCollectionContributions)
    ToolSvc.EDM4hep...  DEBUG Converting type edm4hep::CaloHitContribution from input BeamCalCollectionContributions
    ToolSvc.EDM4hep...  DEBUG CaloHitContribution collection cannot be converted standalone. SimCalorimeterHit collection to be converted in order to be able to attach to them
    ToolSvc.EDM4hep...  DEBUG Converting collection ECalBarrelScHitsEven (storing it as ECalBarrelScHitsEven)
    ToolSvc.EDM4hep...  DEBUG Converting type edm4hep::SimCalorimeterHit from input ECalBarrelScHitsEven
    ToolSvc.EDM4hep...  DEBUG Converting collection ECalBarrelScHitsEvenContributions (storing it as ECalBarrelScHitsEvenContributions)
    ToolSvc.EDM4hep...  DEBUG Converting type edm4hep::CaloHitContribution from input ECalBarrelScHitsEvenContributions
    ToolSvc.EDM4hep...  DEBUG CaloHitContribution collection cannot be converted standalone. SimCalorimeterHit collection to be converted in order to be able to attach to them
    ToolSvc.EDM4hep...  DEBUG Converting collection ECalBarrelScHitsOdd (storing it as ECalBarrelScHitsOdd)
    ToolSvc.EDM4hep...  DEBUG Converting type edm4hep::SimCalorimeterHit from input ECalBarrelScHitsOdd
    ToolSvc.EDM4hep...  DEBUG Converting collection ECalBarrelScHitsOddContributions (storing it as ECalBarrelScHitsOddContributions)
    ToolSvc.EDM4hep...  DEBUG Converting type edm4hep::SimTrackerHit from input ECalBarrelScHitsOddContributions
    MyAIDAProcessor     FATAL  Exception with tag=MetaDataHandle ECalBarrelScHitsOddContributions__CellIDEncoding not (yet?) available is caught 
    MyAIDAProcessor     ERROR MetaDataHandle ECalBarrelScHitsOddContributions__CellIDEncoding not (yet?) available       MetaDataHandle empty handle access      StatusCode=FAILURE
    k4FWCore__Algs      FATAL  Exception with tag=MetaDataHandle ECalBarrelScHitsOddContributions__CellIDEncoding not (yet?) available is caught 
    k4FWCore__Algs      ERROR MetaDataHandle ECalBarrelScHitsOddContributions__CellIDEncoding not (yet?) available       MetaDataHandle empty handle access      StatusCode=FAILURE
    k4FWCore__Seque...  FATAL  Exception with tag=MetaDataHandle ECalBarrelScHitsOddContributions__CellIDEncoding not (yet?) available is caught 
    k4FWCore__Seque...  ERROR MetaDataHandle ECalBarrelScHitsOddContributions__CellIDEncoding not (yet?) available       MetaDataHandle empty handle access      StatusCode=FAILURE
    EventLoopMgr        FATAL .executeEvent(): Exception with tag=MetaDataHandle ECalBarrelScHitsOddContributions__CellIDEncoding not (yet?) available thrown by k4FWCore__Sequencer
    EventLoopMgr        ERROR MetaDataHandle ECalBarrelScHitsOddContributions__CellIDEncoding not (yet?) available       MetaDataHandle empty handle access      StatusCode=FAILURE
    EventLoopMgr      WARNING Execution of algorithm k4FWCore__Sequencer failed
    EventLoopMgr        ERROR Error processing event loop.
    EventLoopMgr        ERROR Terminating event processing loop due to errors
    EventLoopMgr        ERROR Terminating event processing loop due to errors
    ApplicationMgr       INFO Application Manager Stopped successfully
    ...
    ApplicationMgr      ERROR Application Manager Terminated with error code 6
    With k4DataSvc it seems to run without issues. In the file created by following tutorial instructions there is no ECalBarrelScHitsOddContributions__CellIDEncoding metadata

Copy link
Contributor

@andresailer andresailer left a comment

Choose a reason for hiding this comment

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

Thanks!
Minor comment.

Copy link
Contributor

@andresailer andresailer left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@m-fila
Copy link
Contributor Author

m-fila commented Feb 26, 2025

Except that the tutorial using MarlinWrapper is broken with IOSvc as in PR description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants