Skip to content

Potential bug in the calculation of lost hits #90

@achim1

Description

@achim1

In tof_event.rs

   188   pub fn get_lost_hits(&self) -> u16 {
   189     let mut lost_hits = 0u16;
   190     for rbev in &self.rb_events {
   191       if rbev.header.drs_lost_trigger() {
   192         let mut nhits = rbev.header.get_nchan() as u16;
   193         // FIXME - I don't understand this - that would only work if the RB 
   194         // sees 2 channels, that is 1 hit (?) Potential bug
   195         if nhits > 0 {
   196           nhits -= 1;
   197         }                                                                  
   198         lost_hits += nhits;                                                
   199       }                                                                    
   200     }                                                                      
   201     lost_hits                                                              
   202   }   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions