Exemplo n.º 1
0
# Give this job a name.  
process = mu2e.Process("G4Test03")

# Maximum number of events to do.
process.maxEvents = mu2e.untracked.PSet(
    input = mu2e.untracked.int32(200)
)

# Load the standard message logger configuration.
# Threshold=Info. Limit of 5 per category; then exponential backoff.
process.load("Config/MessageLogger_cfi")

# Load the service that manages root files for histograms.
process.TFileService = mu2e.Service("TFileService",
                       fileName = mu2e.string("g4test_03.root"),
                       closeFileFast = mu2e.untracked.bool(False)
)

# Initialize the random number sequences.
# This just changes the seed for the global CLHEP random engine.
process.RandomNumberService = mu2e.Service("RandomNumberService",
                            globalSeed=mu2e.untracked.int32(9877),
)                              

# Define the geometry.
process.GeometryService = mu2e.Service("GeometryService",
       inputfile=cms.untracked.string("Mu2eG4/test/geom_03.txt")
)

# Define and configure some modules to do work on each event.
# Modules are just defined for now, the are scheduled later.
Exemplo n.º 2
0
# Define the default configuratio for the framework.
import FWCore.ParameterSet.python.Config as mu2e

# Give this job a name.
process = mu2e.Process("Ex01")

# Maximum number of events to do.
process.maxEvents = mu2e.untracked.PSet(input=mu2e.untracked.int32(300))

# Load the standard message logger configuration.
# Threshold=Info. Limit of 5 per category; then exponential backoff.
process.load("Config/MessageLogger_cfi")

# Load the service that manages root files for histograms.
process.TFileService = mu2e.Service("TFileService",
                                    fileName=mu2e.string("ex01histo.root"),
                                    closeFileFast=mu2e.untracked.bool(False))

# Define and configure some modules to do work on each event.
# Modules are just defined for now, the are scheduled later.

# Read events from a file (made by example 2)
process.source = mu2e.Source(
    "PoolSource",
    fileNames=mu2e.untracked.vstring("ExampleData/ex01Input_1.root"))

# Get the hits out of the event, make plots and printout.
process.hitinspect = mu2e.EDAnalyzer("Ex01InspectHits",
                                     maxFullPrint=mu2e.untracked.int32(10))

# End of the section that defines and configures modules.
Exemplo n.º 3
0
MessageLogger = mu2e.Service(
    "MessageLogger",
    suppressInfo=mu2e.untracked.vstring(),
    debugs=mu2e.untracked.PSet(placeholder=mu2e.untracked.bool(True)),
    suppressDebug=mu2e.untracked.vstring(),
    cout=mu2e.untracked.PSet(placeholder=mu2e.untracked.bool(True)),
    warnings=mu2e.untracked.PSet(
        placeholder=mu2e.untracked.bool(True),
        threshold=mu2e.untracked.string('WARNING'),
        default=mu2e.untracked.PSet(limit=mu2e.untracked.int32(-1), ),
    ),
    default=mu2e.untracked.PSet(limit=mu2e.untracked.int32(-1)),
    errors=mu2e.untracked.PSet(
        placeholder=mu2e.untracked.bool(True),
        threshold=mu2e.untracked.string('ERROR'),
        default=mu2e.untracked.PSet(limit=mu2e.untracked.int32(-1), ),
    ),
    cerr=mu2e.untracked.PSet(

        # Default imit for info level messages
        INFO=mu2e.untracked.PSet(limit=mu2e.untracked.int32(5)),

        # Default imit for debug level messages
        DEBUG=mu2e.untracked.PSet(limit=mu2e.untracked.int32(5)),
        noTimeStamps=mu2e.untracked.bool(False),

        # Per event heartbeat from the InputSource.
        FwkReport=mu2e.untracked.PSet(reportEvery=mu2e.untracked.int32(1),
                                      limit=mu2e.untracked.int32(5)),

        # Defines default for all severities and categories, unless overridden.
        default=mu2e.untracked.PSet(limit=mu2e.untracked.int32(6)),
        Root_NoDictionary=mu2e.untracked.PSet(limit=mu2e.untracked.int32(0)),
        FwkJob=mu2e.untracked.PSet(limit=mu2e.untracked.int32(0)),
        FwkSummary=mu2e.untracked.PSet(reportEvery=mu2e.untracked.int32(1),
                                       limit=mu2e.untracked.int32(10000000)),

        # Open/close file messages.
        fileAction=mu2e.untracked.PSet(reportEvery=mu2e.untracked.int32(1),
                                       limit=mu2e.untracked.int32(-1)),
        threshold=mu2e.untracked.string('INFO')),
    FrameworkJobReport=mu2e.untracked.PSet(
        default=mu2e.untracked.PSet(limit=mu2e.untracked.int32(0)),
        FwkJob=mu2e.untracked.PSet(limit=mu2e.untracked.int32(10000000))),
    suppressWarning=mu2e.untracked.vstring(),
    statistics=mu2e.untracked.vstring('cerr_stats'),
    cerr_stats=mu2e.untracked.PSet(threshold=mu2e.untracked.string('WARNING'),
                                   output=mu2e.untracked.string('cerr')),
    infos=mu2e.untracked.PSet(
        Root_NoDictionary=mu2e.untracked.PSet(limit=mu2e.untracked.int32(0)),
        placeholder=mu2e.untracked.bool(True)),
    destinations=mu2e.untracked.vstring('warnings', 'errors', 'infos',
                                        'debugs', 'cout', 'cerr'),
    debugModules=mu2e.untracked.vstring(),
    categories=mu2e.untracked.vstring('FwkJob', 'FwkReport', 'FwkSummary',
                                      'fileAction', 'Root_NoDictionary'),
    fwkJobReports=mu2e.untracked.vstring('FrameworkJobReport'))
Exemplo n.º 4
0
# Give this job a name.  
process = mu2e.Process("Ex02")

# Maximum number of events to do.
process.maxEvents = mu2e.untracked.PSet(
    input = mu2e.untracked.int32(400)
)

# Load the standard message logger configuration.
# Threshold=Info. Limit of 5 per category; then exponential backoff.
process.load("Config/MessageLogger_cfi")

# Load the service that manages root files for histograms.
process.TFileService = mu2e.Service("TFileService",
                       fileName = mu2e.string("ex02histo.root"),
                       closeFileFast = mu2e.untracked.bool(False)
)

# Define the geometry.
process.GeometryService = mu2e.Service("GeometryService",
       inputfile=cms.untracked.string("Example02/test/ex02geom.txt")
)

# Define and configure some modules to do work on each event.
# Modules are just defined for now, the are scheduled later.

# Start each new event with an empty event.
process.source = mu2e.Source("EmptySource")

# Make some hits and add them to the event.
process.ex02hitmaker = mu2e.EDProducer(