19 from basf2
import create_path, process
20 from simulation
import add_simulation
21 from reconstruction
import add_reconstruction
22 from background
import get_background_files
23 import modularAnalysis
as ma
24 from variables
import variables
30 main.add_module(
'EventInfoSetter', evtNumList=[100])
31 main.add_module(
'EvtGenInput')
32 add_simulation(main, bkgfiles=get_background_files())
33 add_reconstruction(main)
36 ma.fillParticleList(decayString=
'pi+', cut=
'', path=main)
37 ma.matchMCTruth(list_name=
'pi+', path=main)
38 ma.applyCuts(list_name=
'pi+', cut=
'isSignal==1', path=main)
41 variables.addAlias(
'topTOF_kaon',
'topTOFExpert(321)')
42 variables.addAlias(
'topLogLPhotonCountMCMatch',
'topDigitCountIntervalMCMatch(-20, 74.327756)')
62 'topLocalThetaMCMatch',
66 'extrapTrackToTOPimpactZ',
67 'extrapTrackToTOPimpactTheta',
68 'extrapTrackToTOPimpactPhi',
70 'topDigitCountMCMatch',
71 'topDigitCountSignal',
76 'topLogLPhotonCountMCMatch',
77 'topLogLExpectedPhotonCount',
78 'topLogLEstimatedBkgCount',
85 'topBunchIsReconstructed',
90 'topBunchUsedTrackCount',
94 ma.variablesToNtuple(decayString=
'pi+', variables=var_list, treename=
'tree', filename=
'topVars_mc.root', path=main)
97 main.add_module(
'Progress')