Skip to content

Conversation

@sfranchel
Copy link

@sfranchel sfranchel commented Dec 18, 2025

Schedule the Geometric Graph Track Finding algorithm for the IDEA_o1_v03 and ALLEGRO_o1_v03 reconstructions.

  • Update digitizers for SiWr to DDPlanarDigi
  • Add time resolution

Additionally, adds option in ALLEGRO script to specify the path where the files needed for digitization and reco steps are. In this way, if eos access is available, there's no need to copy files around.

@sfranchel sfranchel marked this pull request as draft December 18, 2025 14:46
@sfranchel sfranchel marked this pull request as ready for review December 18, 2025 16:05
@BrieucF
Copy link
Contributor

BrieucF commented Dec 18, 2025

Thanks Stefano! I'll let some time for @giovannimarchiori to take a look, potentially will be merged after the break but I don't think it is super urgent, right?

Comment on lines +293 to +296
"SimTrackHitCollectionName": ["VertexBarrelCollection"],
"SimTrkHitRelCollection": ["VTXBSimDigiLinks"],
"SubDetectorName": "VertexBarrel",
"TrackerHitCollectionName": ["VTXBDigis"],
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need SimTrackHitCollectionName, SimTrkHitRelCollection, TrackerHitCollectionName to be lists instead of strings? if they are lists, maybe better add "s" at the end e.g. "Names" , "Collections", ..
And later, adapt the code accordingly (I see that in L337 for instance you treat SimTrackHitCollectionName as a scalar...

Copy link
Author

@sfranchel sfranchel Jan 5, 2026

Choose a reason for hiding this comment

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

I agree that this one is a bit awkward.

These dictionaries represent the key-value pairs that are used to schedule the DDPlanarDigi algorithm. The latter requires input lists, despite the attributes are named *CollectionName. Passing strings directly, I'm getting the following error:

ValueError: received an instance of <class 'str'>, but <class 'list'> expected for property SimTrackHitCollectionName

Since we are making these dictionaries, I thought it would be worth using them also for the legacy digitizers, for ensuring naming consistency. But as you point out in your comment below, then we need to explicitly pick the list item and cannot pass the list directly to the VTXdigitizer (using strings I get a similar error as above, but complaining about lists arguments that should be str instead).

Even if it's a bit dirty, I think it can be worth keeping this options' mapping for the new digitizers to the legacy ones. But if you prefer to drop it, I can remove it and add back the entries as they were before.

Comment on lines +304 to +307
"SimTrackHitCollectionName": ["VertexEndcapCollection"],
"SimTrkHitRelCollection": ["VTXDSimDigiLinks"],
"SubDetectorName": "VertexDisks",
"TrackerHitCollectionName": ["VTXDDigis"],
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment

Comment on lines +315 to +318
"SimTrackHitCollectionName": ["SiWrBCollection"],
"SimTrkHitRelCollection": ["SiWrBSimDigiLinks"],
"SubDetectorName": "SiWrB",
"TrackerHitCollectionName": ["SiWrBDigis"],
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment

Comment on lines +326 to +329
"SimTrackHitCollectionName": ["SiWrDCollection"],
"SimTrkHitRelCollection": ["SiWrDSimDigiLinks"],
"SubDetectorName": "SiWrD",
"TrackerHitCollectionName": ["SiWrDDigis"],
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment

Comment on lines +337 to +338
inputSimHits=vxd_barrel_digi_args["SimTrackHitCollectionName"][0],
outputDigiHits=vxd_barrel_digi_args["TrackerHitCollectionName"][0],
Copy link
Contributor

Choose a reason for hiding this comment

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

if SimTrackHitCollectionName and TrackerHitCollectionName are lists, shouldn't you use vxd_barrel_digi_args["SimTrackHitCollectionName"][0] and so on?
But probably better make them scalars before...

@giovannimarchiori
Copy link
Contributor

Hi @sfranchel ,
thanks a lot for this PR.
I let you a few comments - please have a look when you have time, probably in January
Ciao,
Giovanni

Co-authored-by: Giovanni Marchiori <[email protected]>
@sfranchel
Copy link
Author

Hi @sfranchel , thanks a lot for this PR. I let you a few comments - please have a look when you have time, probably in January Ciao, Giovanni

Ciao @giovannimarchiori, thanks a lot for the review! Your inline suggestions are all merged, and I've replied more in detail to your comment above. Let me know how you want to proceed on that one!

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.

3 participants