20 <output>muon-KLMValidation.root</output>
21 <contact>Laura.Salutari@uniroma3.it</contact>
22 <description>Create events
with 1 muon track
for BKLM
and EKLM validation.</description>
28import simulation as sim
29import reconstruction as rec
31basf2.set_random_seed(981543)
32basf2.set_log_level(basf2.LogLevel.ERROR)
34output_filename = '../muon-KLMValidation.root'
35basf2.B2INFO('The output file name is ' + output_filename)
37main_path = basf2.create_path()
39main_path.add_module('EventInfoSetter', evtNumList=2000)
41main_path.add_module('Progress')
42main_path.add_module('ProgressBar')
44main_path.add_module('ParticleGun',
48 momentumGeneration='uniform',
49 momentumParams=[0.5, 5.0],
50 thetaGeneration=
'uniformCos',
51 thetaParams=[18., 155.],
52 phiGeneration=
'uniform',
54 vertexGeneration=
'fixed',
59sim.add_simulation(path=main_path)
60rec.add_reconstruction(path=main_path)
62main_path.add_module(
'RootOutput',
63 outputFileName=output_filename,
64 branchNames=[
'MCParticles',
'KLMMuidLikelihoods',
'KLMDigits',
'KLMHit2ds',
'EventT0'])
66main_path.add_module(
'Progress')
67basf2.process(main_path)
68print(basf2.statistics)