ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/test/ZmmExample.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: ZmmExample.cfg,v 1.5 2008/07/29 22:54:37 bendavid Exp $
2 paus 1.1
3 paus 1.4 process ZmmTest =
4 paus 1.1 {
5     # request 100 events, which is very fast for testing
6 paus 1.4 untracked PSet maxEvents = { untracked int32 input = 10 }
7 paus 1.1
8     include "FWCore/MessageService/data/MessageLogger.cfi"
9    
10     source = PoolSource {
11     untracked vstring fileNames = {
12     "file:/server/01a/ceballos/CMSSW_2_0_7_ntuples/Zmm/10375028-DD24-DD11-8170-001617E30F4C.root",
13     "file:/server/01a/ceballos/CMSSW_2_0_7_ntuples/Zmm/12CA1A34-DB24-DD11-AA5F-001D09F2426D.root",
14 loizides 1.3 "file:/server/01a/ceballos/CMSSW_2_0_7_ntuples/Zmm/D6B9828D-DE24-DD11-AE72-001D09F2432B.root"
15     }
16 paus 1.1 }
17    
18 paus 1.4 # Geometry
19     include "MagneticField/Engine/data/volumeBasedMagneticField.cfi"
20     include "Geometry/CMSCommonData/data/cmsIdealGeometryXML.cfi"
21     include "Geometry/CommonDetUnit/data/globalTrackingGeometry.cfi"
22     include "Geometry/TrackerGeometryBuilder/data/trackerGeometry.cfi"
23     include "Geometry/TrackerNumberingBuilder/data/trackerNumberingGeometry.cfi"
24     include "RecoTracker/GeometryESProducer/data/TrackerRecoGeometryESProducer.cfi"
25     # Propagator
26     es_module MuonMaterialPropagator = PropagatorWithMaterialESProducer {
27     string ComponentName = "MuonMaterialPropagator"
28     string PropagationDirection = "alongMomentum"
29     double Mass = 0.105
30     double MaxDPhi = 1.6
31     bool useRungeKutta = false
32     }
33     # Crap
34     include "TrackingTools/KalmanUpdators/data/KFUpdatorESProducer.cfi"
35     include "TrackingTools/KalmanUpdators/data/Chi2MeasurementEstimatorESProducer.cfi"
36     include "RecoLocalTracker/SiStripRecHitConverter/data/StripCPEfromTrackAngle.cfi"
37     include "RecoTracker/TransientTrackingRecHit/data/TransientTrackingRecHitBuilder.cfi"
38     include "RecoTracker/TransientTrackingRecHit/data/TransientTrackingRecHitBuilderWithoutRefit.cfi"
39     # Fitters
40     es_module MuonFitterRK = KFTrajectoryFitter from "TrackingTools/TrackFitters/data/KFTrajectoryFitterESProducer.cfi"
41     replace MuonFitterRK.ComponentName = "MuonFitterRK"
42     replace MuonFitterRK.Propagator = "MuonMaterialPropagator"
43    
44     # Smoothers
45     es_module MuonSmootherRK = KFTrajectorySmoother from "TrackingTools/TrackFitters/data/KFTrajectorySmootherESProducer.cfi"
46     replace MuonSmootherRK.ComponentName = "MuonSmootherRK"
47     replace MuonSmootherRK.Propagator = "MuonMaterialPropagator"
48    
49     # FittingSmoothers
50     es_module MuonFittingSmootherRK = KFFittingSmoother from "TrackingTools/TrackFitters/data/KFFittingSmootherESProducer.cfi"
51     replace MuonFittingSmootherRK.ComponentName = "MuonFittingSmootherRK"
52     replace MuonFittingSmootherRK.Fitter = "MuonFitterRK"
53     replace MuonFittingSmootherRK.Smoother = "MuonSmootherRK"
54    
55     module MuonTrackRefitter = TrackRefitter {
56     string Fitter = "MuonFittingSmootherRK"
57     string Propagator = "MuonMaterialPropagator"
58    
59     InputTag src = generalTracks
60     InputTag beamSpot = offlineBeamSpot
61     string TTRHBuilder = "WithoutRefit"
62     bool TrajectoryInEvent = false
63     string constraint = ""
64     bool useHitsSplitting = false
65     string AlgorithmName = "undefAlgorithm"
66     }
67    
68     sequence Refit = { MuonTrackRefitter }
69    
70 loizides 1.6 # define the object service
71     service = ObjectService { }
72    
73 paus 1.1 # define the tree service
74     service = TreeService {
75 loizides 1.2 untracked vstring fileNames = { "mit-zmm-example" }
76 paus 1.1 }
77 paus 1.4
78     # a simple muon maker
79 bendavid 1.5 module MuonsStable = Stable {
80     untracked string iTracks = "generalTracks"
81     untracked int32 oPid = 13
82     untracked double oMass = 0.105658
83     }
84     # a simple J/psi to Mu Mu finder
85     module Jpsi2MuMu = D2SS {
86     untracked string iStables1 = "MuonsStable"
87     untracked string iStables2 = "MuonsStable"
88     untracked int32 oPid = 443
89     untracked double oMass = 3.09687
90 paus 1.4 }
91 paus 1.1
92 loizides 1.2 # include the MIT filler
93     include "MitProd/TreeFiller/data/MitTreeFiller.cfi"
94 paus 1.4
95     # define an output file and drop everything that you don't want.
96     # Make sure to KEEP your producer output
97     module OutputModule = PoolOutputModule {
98     untracked string fileName = "edm-zmm-example.root"
99     untracked vstring outputCommands = {
100     "keep *"
101     }
102     }
103    
104 paus 1.1 # standard path of action of the module
105 bendavid 1.5 path p0 = { MuonsStable, Jpsi2MuMu, MitTreeFiller }
106 paus 1.4
107     endpath end = { OutputModule }
108 paus 1.1
109     # schedule the various path
110 paus 1.4 schedule = { p0, end }
111 paus 1.1 }