FairShip
Loading...
Searching...
No Matches
UpstreamTaggerDetector.py
Go to the documentation of this file.
1# SPDX-License-Identifier: LGPL-3.0-or-later
2# SPDX-FileCopyrightText: Copyright CERN for the benefit of the SHiP Collaboration
3
4import global_variables
5import ROOT
6from BaseDetector import BaseDetector
7
8
10 def __init__(self, name, intree, outtree=None) -> None:
11 super().__init__(name, intree, outtree=outtree)
12
13 def digitize(self) -> None:
14 ship_geo = global_variables.ShipGeo
15 pos_res = ship_geo.UpstreamTagger.PositionResolution
16 time_res = ship_geo.UpstreamTagger.TimeResolution
17
18 for aMCPoint in self.intree.UpstreamTaggerPoint:
19 aHit = ROOT.UpstreamTaggerHit(aMCPoint, self.intree.t0, pos_res, time_res)
20 self.det.push_back(aHit)
None __init__(self, name, intree, outtree=None)