Skip to content

Make optical flash information filling detector-agnostic #282

@PetrilloAtWork

Description

@PetrilloAtWork

The code filling the optical flashes was written with ICARUS in mind (see also the review in PR #273).
While this is good for short term, the code needs to be updated.
Incriminated code:

int countingOffset = 0;
if ( cryo == 1 ) countingOffset += 180;
for ( int PMT = 0 ; PMT < 180 ; PMT++ ) {
if ( PMT <= 89 ) sumEast += flash.PEs().at(PMT + countingOffset);
else sumWest += flash.PEs().at(PMT + countingOffset);
}

In addition there is somewhere ICARUS-specific code that relies on an unofficial convention (assigning cryostat number according to the data product label); that should also be fixed.

Relevant people:

  • @JackSmedley: original code
  • @PetrilloAtWork: can propose geometry-based algorithms
  • anybody from SBND (@ikatza?): make sure we don't mess up with east/west wall and other concepts

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions