Skip to content

Detector coordinates in cluster object #146

@153957

Description

@153957

In the example below the horizontal station distances are correctly different, however, the detector distances are equal, which is incorrect. Though their total distance should not change, the horizontal distance should be different because the station is further from the ENU origin, and the different ENU plane has a different tilt. This is related #142. This mostly reinforces the argument for using local Cluster objects for coincidence reconstruction and other analyses.

from sapphire import HiSPARCStations

# Only two stations
c = HiSPARCStations([14001, 14002], force_stale=True)
c.calc_horizontal_distance_between_stations(14001, 14002)
#5787.6 m
s = c.get_station(14001)
s.calc_rphiz_for_detectors(0, 1)[0]
#4.456 m
s.calc_rphiz_for_detectors(0, 3)[0]
#14.530 m

# Different reference station far away
c = HiSPARCStations([20001, 14001, 14002], force_stale=True)
c.calc_horizontal_distance_between_stations(14001, 14002)
#5734.1 m
s = c.get_station(14001)
s.calc_rphiz_for_detectors(0, 1)[0]
#4.456 m
s.calc_rphiz_for_detectors(0, 3)[0]
#14.530 m

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