30 def __init__(self, name, intree, outtree=None) -> None:
31 super().
__init__(name, intree, mcBranchName=
"digiCaloScoringPlane2MC", outtree=outtree)
32 cfg = global_variables.ShipGeo.CaloScoringPlane
33 self.
pos_res = cfg.get(
"PositionResolution", 0.0)
36 self.
ignored = {abs(int(p))
for p
in cfg.get(
"IgnoredPdg", [12, 14, 16])}
42 pid_file = getattr(global_variables,
"caloScoringPlanePIDFile",
None)
44 logger.warning(
"CaloScoringPlane PID: no --caloScoringPlanePID file given, using perfect PID")
45 self.
pid = load_pid(pid_file)