Newer
Older
TB_Chris / TbSimulation / options / .svn / text-base / simulation.py.svn-base
  1. # Run with:
  2. # gaudirun.py $KEPLERROOT/options/simulation.py
  3.  
  4. from Gaudi.Configuration import *
  5.  
  6. from Configurables import Kepler
  7.  
  8. # Set the number of events to run over
  9. Kepler().EvtMax = 100
  10.  
  11. # Change the sequence of code that is run ---------------
  12. def sim():
  13. seq = GaudiSequencer("Telescope")
  14. # TestMC options.
  15. from Configurables import TbTestMC
  16. TbTestMC().doMisAlign = False
  17. TbTestMC().NTracks = 200
  18. TbTestMC().RunDuration = 10000
  19. TbTestMC().NNoiseClusters = 0
  20. TbTestMC().HitTimeJitter = 20
  21. TbTestMC().ClusterPosnError = 0.001
  22. TbTestMC().ClusterADCMPV = 300.0 # Ish.
  23. TbTestMC().ChargeSharingWidth = 0.033 # Best not to change much.
  24. TbTestMC().ThresholdCut = 20
  25. TbTestMC().ForceEfficiency = True
  26. #TbTestMC().InitAlignment = "Alignment_perfect.dat"
  27. #TbTestMC().InitAlignment = Alignment_raw.dat
  28.  
  29. # TbClustering options.
  30. from Configurables import TbClustering
  31. TbClustering().TimeWindow = 200
  32.  
  33. # TbTracking options.
  34. from Configurables import TbTracking
  35. TbTracking().TimeWindow = 300
  36. TbTracking().SearchRadius = 1
  37. TbTracking().MinNClusters = 7
  38. TbTracking().Monitoring = True
  39. TbTracking().SearchVolume = "cylinder" # {cylinder, diabolo}
  40. # TbTracking speed options.
  41. TbTracking().nComboCut = 1000 # O(10) for speed.
  42. TbTracking().SearchVolumeFillAlgorithm = "adap_seq" # {seq, adap_seq}. Adap faster.
  43. seq.Members = [TbTestMC(), TbClustering(), TbTracking()]
  44. seq = GaudiSequencer("Monitoring")
  45. from Configurables import TbClusterPlots, TbTrackPlots
  46. seq.Members = [TbClusterPlots(), TbTrackPlots()]
  47. appendPostConfigAction(sim)
  48.  
  49.