13 <input>PartGunChargedStableGenSim.root</input>
14 <contact>Marcel Hohmann, mhohmann@student.unimelb.edu.au</contact>
15 <description> This steering script fully reconstructs particle gun events for a set of charged stable particles,
16and dumps ECL PID validation info in an ntuple and a set of histograms (one file for each pdgId).</description>
21from reconstruction
import add_reconstruction
22from ROOT
import Belle2
26for idx
in range(len(Belle2.Const.chargedStableSet)):
27 particle = Belle2.Const.chargedStableSet.at(idx)
29 if particle == Belle2.Const.deuteron:
31 pdgId = particle.getPDGCode()
32 chargedStableList.extend([pdgId, -pdgId])
36mergeChargeOfPdgIds = [
37 Belle2.Const.pion.getPDGCode(),
38 Belle2.Const.kaon.getPDGCode(),
39 Belle2.Const.proton.getPDGCode()
43main = basf2.create_path()
46inputFileName =
"../PartGunChargedStableGenSim.root"
47main.add_module(
"RootInput", inputFileName=inputFileName)
50main.add_module(
"Gearbox")
52main.add_module(
"Geometry")
55add_reconstruction(main)
59 "ECLChargedPIDDataAnalysisValidation",
60 outputFileName=
"ECLChargedPid",
61 inputPdgIdList=chargedStableList,
62 mergeChargeOfPdgIds=mergeChargeOfPdgIds)
65main.add_module(
"ProgressBar")
69main.add_module(
'Progress')
71print(basf2.statistics)