Beispiel #1
0
import os

from Gaudi.Configuration import *

from Configurables import LcioEvent, EventDataSvc, MarlinProcessorWrapper
algList = []
evtsvc = EventDataSvc()

read = LcioEvent()
read.OutputLevel = DEBUG
read.Files = ["$TEST_DIR/inputFiles/muons.slcio"]
algList.append(read)

# assign parameters by hand, in future parse Marlin.xml file in python
# and convert to list of processors and parameters
procA = MarlinProcessorWrapper("AidaProcessor")
procA.OutputLevel = DEBUG
procA.ProcessorType = "AIDAProcessor"
procA.Parameters = {"FileName": ["histograms"],
                    "FileType": ["root"],
                    "Compress": ["1"],
                    "Verbosity": ["DEBUG"],
                    }
algList.append(procA)


proc0 = MarlinProcessorWrapper("EventNumber")
proc0.OutputLevel = DEBUG
proc0.ProcessorType = "Statusmonitor"
proc0.Parameters = {"HowOften": ["1"],
                    "Verbosity": ["DEBUG"],
Beispiel #2
0
import os

from Gaudi.Configuration import *

from Configurables import LcioEvent, EventDataSvc, MarlinProcessorWrapper
algList = []
evtsvc = EventDataSvc()

read = LcioEvent()
read.OutputLevel = DEBUG
read.Files = ["$TEST_DIR/inputFiles/muons.slcio"]
algList.append(read)

Output_DST = MarlinProcessorWrapper("Output_DST")
Output_DST.OutputLevel = WARNING
Output_DST.ProcessorType = "LCIOOutputProcessor"
Output_DST.Parameters = {
    "DropCollectionNames": [],
    "DropCollectionTypes": [
        "MCParticle", "LCRelation", "SimCalorimeterHit", "CalorimeterHit",
        "SimTrackerHit", "TrackerHit", "TrackerHitPlane", "Track",
        "ReconstructedParticle", "LCFloatVec", "Clusters"
    ],
    "FullSubsetCollections":
    ["EfficientMCParticles", "InefficientMCParticles", "MCPhysicsParticles"],
    "KeepCollectionNames": [
        "MCParticlesSkimmed", "MCPhysicsParticles", "RecoMCTruthLink",
        "SiTracks", "SiTracks_Refitted", "PandoraClusters", "PandoraPFOs",
        "SelectedPandoraPFOs", "LooseSelectedPandoraPFOs",
        "TightSelectedPandoraPFOs", "LE_SelectedPandoraPFOs",
        "LE_LooseSelectedPandoraPFOs", "LE_TightSelectedPandoraPFOs",
Beispiel #3
0
from Gaudi.Configuration import *

from Configurables import LcioEvent, EventDataSvc, MarlinProcessorWrapper
algList = []
evtsvc = EventDataSvc()

read = LcioEvent()
read.OutputLevel = DEBUG
read.Files = ["$k4MarlinWrapper_tests_DIR/inputFiles/muons.slcio"]
algList.append(read)

END_TAG = "END_TAG"

# assign parameters by hand, in future parse Marlin.xml file in python
# and convert to list of processors and parameters
procA = MarlinProcessorWrapper("AidaProcessor")
procA.OutputLevel = DEBUG
procA.ProcessorType = "AIDAProcessor"
procA.Parameters = [
    "FileName",
    "histograms",
    END_TAG,
    "FileType",
    "root",
    END_TAG,
    "Compress",
    "1",
    END_TAG,
    "Verbosity",
    "DEBUG",
    END_TAG,
Beispiel #4
0
    'DD4hepXMLFile_subPath':
    "/cvmfs/sw.hsf.org/spackages/linux-centos7-x86_64/gcc-8.3.0/lcgeo-0.16.6-vbidketl5esynx6pmkrdnqrnfyf3m2vf/share/lcgeo/compact/CLIC/%(MyCompact)s/%(DetectorModel)s/%(DetectorModel)s.xml",
    'MyResTest': "0.003",
    'MyResTest2': "003",
    'MyResTest3': "0.",
    'MyResArrayTest': ["0.002", "%(MyResTest)s", "0.004", "0.005"],
}

parseConstants(CONSTANTS)

read = LcioEvent()
read.OutputLevel = DEBUG
read.Files = ["$TEST_DIR/inputFiles/muons.slcio"]
algList.append(read)

AidaProcessor = MarlinProcessorWrapper("AidaProcessor")
AidaProcessor.OutputLevel = DEBUG
AidaProcessor.ProcessorType = "AIDAProcessor"
AidaProcessor.Parameters = {
    "Compress": ["1"],
    "FileName": ["histograms"],
    "FileType": ["root"]
}

EventNumber = MarlinProcessorWrapper("EventNumber")
EventNumber.OutputLevel = DEBUG
EventNumber.ProcessorType = "Statusmonitor"
EventNumber.Parameters = {"HowOften": ["1"]}

InitDD4hep = MarlinProcessorWrapper("InitDD4hep")
InitDD4hep.OutputLevel = DEBUG