14from b2test_utils 
import skip_test_if_light, clean_working_directory
 
   17from simulation 
import add_simulation
 
   18from reconstruction 
import add_reconstruction
 
   21main.add_module(
'EventInfoSetter', evtNumList=[5])
 
   22main.add_module(
'ParticleGun', pdgCodes=[211, -211, 321, -321], nTracks=2)
 
   25components = [
'MagneticField', 
'BeamPipe', 
'CDC']
 
   26simulation_components = [
'CDC']
 
   27add_simulation(main, simulation_components)
 
   28add_reconstruction(main, simulation_components)
 
   29basf2.set_module_parameters(main, type=
"Geometry", useDB=
False, components=components)
 
   32main.add_module(
'RootOutput', outputFileName=
'streamer_test.root')
 
   34with clean_working_directory():
 
   38    tfile = TFile(
'streamer_test.root')
 
   39    tree = tfile.Get(
'tree')
 
   42    tree.Project(
"", 
"MCParticles.m_pdg")
 
   46    tree.Project(
"", 
"abs(MCParticles.m_pdg)")
 
   50    tree.Project(
"", 
"ZZZ.Doesnt.Exist")
 
   53    tree.Project(
"", 
"GF2Tracks.getNumPoints()")