Esempio n. 1
0
from Configurables import HepMCConverter
hepmc_converter = HepMCConverter("Converter")
hepmc_converter.DataInputs.hepmc.Path = "hepmc"
hepmc_converter.DataOutputs.genparticles.Path = "allGenParticles"
hepmc_converter.DataOutputs.genvertices.Path = "allGenVertices"

from Configurables import GeoSvc
geoservice = GeoSvc(
    "GeoSvc",
    detector='file:DetectorDescription/Detectors/compact/TestTracker.xml',
    OutputLevel=DEBUG)

from Configurables import GeantSvc
geantservice = GeantSvc("GeantSvc",
                        config="GeantFullSimConfig",
                        detector='DD4hepDetector')

from Configurables import GeantFullSimAlg
geantsim = GeantFullSimAlg("GeantFullSimAlg")
geantsim.DataInputs.genParticles.Path = "allGenParticles"
geantsim.DataOutputs.trackClusters.Path = "clusters"
geantsim.DataOutputs.trackHits.Path = "hits"
geantsim.DataOutputs.trackHitsClusters.Path = "hitClusterAssociation"
geantsim.DataOutputs.caloClusters.Path = "caloClusters"
geantsim.DataOutputs.caloHits.Path = "caloHits"

from Configurables import AlbersWrite, AlbersOutput
out = AlbersOutput("out", OutputLevel=DEBUG)
out.outputCommands = ["keep *"]
Esempio n. 2
0
reader = HepMCReader("Reader", Filename="example_MyPythia.dat")
reader.DataOutputs.hepmc.Path = "hepmc"

from Configurables import HepMCConverter
hepmc_converter = HepMCConverter("Converter")
hepmc_converter.DataInputs.hepmc.Path="hepmc"
hepmc_converter.DataOutputs.genparticles.Path="allGenParticles"
hepmc_converter.DataOutputs.genvertices.Path="allGenVertices"

from Configurables import GeoSvc
geoservice = GeoSvc("GeoSvc", detector='file:DetectorDescription/Detectors/compact/ParametricSimTracker.xml',
                    OutputLevel = DEBUG)

from Configurables import GeantSvc
geantservice = GeantSvc("GeantSvc", config="GeantFastSimConfig", detector='DD4hepDetector')

from Configurables import GeantFastSimAlg, GeantFastSimConfig, SimpleSmear
geantsim = GeantFastSimAlg("GeantFastSimAlg")
geantsim.DataInputs.genParticles.Path="allGenParticles"
geantsim.DataOutputs.particles.Path = "recParticles"
geantsim.DataOutputs.particleassociation.Path = "particleMCparticleAssociation"
fastsimconfig = GeantFastSimConfig("FastSimConfig", smearing = "SimpleSmear")
geantservice.addTool(fastsimconfig)
smear = SimpleSmear("SimpleSmear", sigma = 0.015)
fastsimconfig.addTool(smear)

from Configurables import AlbersWrite, AlbersOutput
out = AlbersOutput("out",
                   OutputLevel=DEBUG)
out.outputCommands = ["keep *"]
Esempio n. 3
0
reader = HepMCReader("Reader", Filename="example_MyPythia.dat")
reader.DataOutputs.hepmc.Path = "hepmc"

from Configurables import HepMCConverter
hepmc_converter = HepMCConverter("Converter")
hepmc_converter.DataInputs.hepmc.Path="hepmc"
hepmc_converter.DataOutputs.genparticles.Path="allGenParticles"
hepmc_converter.DataOutputs.genvertices.Path="allGenVertices"

from Configurables import GeoSvc
geoservice = GeoSvc("GeoSvc", detector='file:DetectorDescription/Detectors/compact/TestTracker.xml',
                    OutputLevel = DEBUG)

from Configurables import GeantSvc, GdmlDetector
det = GdmlDetector("GdmlDetector", gdml = "Sim/SimG4Common/gdml/example.xml")
geantservice = GeantSvc("GeantSvc", config="GeantFullSimConfig", detector="GdmlDetector")
geantservice.addTool(det)

from Configurables import GeantFullSimAlg
geantsim = GeantFullSimAlg("GeantFullSimAlg")
geantsim.DataInputs.genParticles.Path="allGenParticles"
geantsim.DataOutputs.trackClusters.Path = "clusters"
geantsim.DataOutputs.trackHits.Path = "hits"
geantsim.DataOutputs.trackHitsClusters.Path = "hitClusterAssociation"


from Configurables import AlbersWrite, AlbersOutput
out = AlbersOutput("out",
                   OutputLevel=DEBUG)
out.outputCommands = ["keep *"]