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

lcio2edm4hep missing collection patching misses PID collections #90

Closed
Zehvogel opened this issue Aug 21, 2024 · 5 comments
Closed

lcio2edm4hep missing collection patching misses PID collections #90

Zehvogel opened this issue Aug 21, 2024 · 5 comments

Comments

@Zehvogel
Copy link
Contributor

Running the conversion on an ILD mini-DST (can be obtained from the grid) crashes because missing PID collections do not get created empty. At least that is what I think what happens from the error message...
It was possible to convert these files in the past.

[lreichen@pcphsft121 2023-10-17_edm4hep_rdf]$ lcio2edm4hep rv01-16-p10_250.sv01-14-01-p00.mILD_o1_v05.E250-TDR_ws.I106479.Pe2e2h.eL.pR-00001-ILDminiDST.slcio I106479_new.edm4hep.root colls.txt 
Number of events in file: 17143
Number of runs in file: 1
processing RunHeader: 0
processed amount of events: 0% (event: 0)
LCGenericObject is a collection type for which no known conversion exists.
processed amount of events: 0% (event: 1)
LCGenericObject is a collection type for which no known conversion exists.
processed amount of events: 0% (event: 2)
LCGenericObject is a collection type for which no known conversion exists.
processed amount of events: 0% (event: 3)
LCGenericObject is a collection type for which no known conversion exists.
terminate called after throwing an instance of 'std::runtime_error'
  what():  Collection 'Refined2Jets_PID_RefinedVertex' in category 'events' is not available in Frame
Aborted (core dumped)

where colls.txt was created by

check_missing_cols --minimal rv01-16-p10_250.sv01-14-01-p00.mILD_o1_v05.E250-TDR_ws.I106479.Pe2e2h.eL.pR-00001-ILDminiDST.slcio > colls.txt

and contains:

     Refined6Jets                                       ReconstructedParticle                             
     Refined5Jets                                       ReconstructedParticle                             
     IsolatedElectrons                                  ReconstructedParticle                             
     IsolatedMuons                                      ReconstructedParticle                             
     IsolatedPhotons                                    ReconstructedParticle                             
     PandoraPFOs                                        ReconstructedParticle                             
     Refined2Jets                                       ReconstructedParticle                             
     IsolatedTaus                                       ReconstructedParticle                             
     BCALParticles                                      ReconstructedParticle                             
     PrimaryVertex_RP                                   ReconstructedParticle                             
     Refined4Jets                                       ReconstructedParticle                             
     PandoraPFANewReclusterMonitoring                   LCGenericObject                                   
     PrimaryVertex                                      Vertex                                            
     MCParticlesSkimmed                                 MCParticle                                        
     RecoMCTruthLink                                    LCRelation[ReconstructedParticle,MCParticle]      
     Refined3Jets                                       ReconstructedParticle                             
@Zehvogel
Copy link
Contributor Author

Probably expected as the patching of missing collections is done entirely on the lcio side of things. The empty created collection then has no PID attached and during the actual conversion there is nothing to convert. :(

We could try extend the check_missing_cols tool to also check and write out what kind of PIDs are attached to a collection...

@Zehvogel
Copy link
Contributor Author

👀
iLCSoft/LCIO#193

@tmadlener
Copy link
Contributor

How large is the DST file in this case? Since our current test file does not run into any issues here, it might be nice to have a new test file that has this issue to avoid regressing here.

@Zehvogel
Copy link
Contributor Author

Its this one from the mini-DST tutorial

https://syncandshare.desy.de/index.php/s/5LmrjGWqziQfMe7

@tmadlener
Copy link
Contributor

Should be fixed with #94. Re-open if not.

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

No branches or pull requests

2 participants