Skip to content

remove dependence on VTPBank collection#209

Merged
mgignac merged 2 commits intoJeffersonLab:masterfrom
sarahgaiser:fix_event_processor_trigger
Apr 4, 2025
Merged

remove dependence on VTPBank collection#209
mgignac merged 2 commits intoJeffersonLab:masterfrom
sarahgaiser:fix_event_processor_trigger

Conversation

@sarahgaiser
Copy link
Copy Markdown
Collaborator

The VTPBank collection is not used for both MC and data. Currently, the collection does not exist in MC and will be removed for data in future passes. However, the EventProcessor currently defaults to querying the trigger information from the EventHeader (2016 style) if the VTPBank collection cannot be found. For 2019 and 2021, we would like to instead use the TSBank collection to get the trigger information.

To ensure that the correct collection is used for the trigger information, I have added a year_ variable to the EventProcessor instead of having some faulty automatic determination. year_ is set to 2021 per default but can be configured to any other year.

Copy link
Copy Markdown
Collaborator

@mgignac mgignac left a comment

Choose a reason for hiding this comment

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

Thanks @sarahgaiser ! Code looks good to me!

We should probably also disable this from the config level too, otherwise the vtpCollLcio/Root will be set: https://github.com/JeffersonLab/hpstr/blob/master/processors/config/recoTuple_noHitColl_cfg.py#L58 (and also the nominal recoTuple_cfg.py, which is used for MC).

@mgignac mgignac self-requested a review April 3, 2025 00:43
Copy link
Copy Markdown
Collaborator

@bloodyyugo bloodyyugo 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!

@mgignac mgignac merged commit 05e17df into JeffersonLab:master Apr 4, 2025
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