ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/test/GenExample.cfg
Revision: 1.6
Committed: Wed Jul 30 16:39:58 2008 UTC (16 years, 9 months ago) by loizides
Branch: MAIN
Changes since 1.5: +4 -1 lines
Log Message:
Example usage of ObjectService. Added ObjectService to all cfgs.

File Contents

# User Rev Content
1 loizides 1.6 # $Id: GenExample.cfg,v 1.5 2008/07/01 21:11:48 loizides Exp $
2 loizides 1.1
3     process Gen =
4     {
5 paus 1.2 # request 100 events, which is very fast for testing
6 bendavid 1.4 untracked PSet maxEvents = { untracked int32 input = 100 }
7 loizides 1.3
8     #include "FWCore/MessageService/data/MessageLogger.cfi"
9     service = MessageLogger
10     {
11     untracked vstring destinations = {}
12     }
13 loizides 1.1
14 paus 1.2 include "Configuration/StandardSequences/data/SimulationRandomNumberGeneratorSeeds.cff"
15     include "SimGeneral/HepPDTESSource/data/pythiapdt.cfi"
16    
17     # make a minimal but valid parameter set for pythia
18     source = PythiaSource
19     {
20     untracked int32 pythiaPylistVerbosity = 0
21     untracked bool pythiaHepMCVerbosity = false
22     untracked int32 maxEventsToPrint = 0
23     untracked double filterEfficiency = 1.
24    
25 loizides 1.1 PSet PythiaParameters = {
26     vstring parameterSets = {
27     }
28     }
29     }
30 paus 1.2
31     # load generator sequence (VtxSmeared is needed inside, missing dependence)
32     include "Configuration/StandardSequences/data/VtxSmearedBetafuncEarlyCollision.cff"
33     include "Configuration/StandardSequences/data/Generator.cff"
34    
35 loizides 1.6 # define the object service
36     service = ObjectService {}
37    
38 paus 1.2 # define the tree service
39     service = TreeService {
40     untracked vstring fileNames = { "mit-gen" }
41     }
42 loizides 1.1
43 paus 1.2 # customize the MIT filler
44 bendavid 1.4 module MitTreeFiller = FillMitTree {
45 loizides 1.5 untracked bool defactive = false
46 bendavid 1.4 untracked PSet GenParts = {
47     untracked bool active = true
48     untracked string mitName = "GenParticles"
49     untracked string edmName = "source"
50     }
51 paus 1.2 }
52 bendavid 1.4
53 paus 1.2 # standard path of action of the module
54 bendavid 1.4 path p0 = { pgen, MitTreeFiller }
55 paus 1.2
56     # also make Edm output for the events we generate
57     include "Configuration/EventContent/data/EventContent.cff"
58     module FEVT = PoolOutputModule
59     {
60 loizides 1.1 using FEVTSIMEventContent
61 paus 1.2 untracked string fileName = "edm-gen.root"
62     }
63    
64     # output path for the Edm file
65     endpath outpath = { FEVT }
66    
67     # schedule the various path
68     schedule = { p0, outpath }
69 loizides 1.1 }