CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EnsembleCalibrationLA_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("MACRO")
4 process.add_(cms.Service("MessageLogger"))
5 process.source = cms.Source("EmptySource")
6 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
7 
8 from CalibTracker.SiStripLorentzAngle.MeasureLA_cff import METHOD_WIDTH, METHOD_PROB1, METHOD_AVGV2, METHOD_AVGV3, METHOD_RMSV2, METHOD_RMSV3
9 
10 process.load('Configuration.Geometry.GeometryIdeal_cff')
11 
12 process.calibration = cms.EDAnalyzer(
13  "sistrip::EnsembleCalibrationLA",
14  InputFiles = cms.vstring([]),
15  InFileLocation = cms.string('/calibrationTree/tree'),
16  Samples = cms.uint32(10),
17  NBins = cms.uint32(5),
18  LowBin = cms.double(-0.16),
19  HighBin = cms.double(-0.0),
20  Prefix = cms.untracked.string("peak_"),
21  #MaxEvents = cms.untracked.uint32(9000),
22  Methods = cms.vint32(METHOD_WIDTH.value(), METHOD_PROB1.value(), METHOD_AVGV2.value(), METHOD_AVGV3.value(), METHOD_RMSV2.value(), METHOD_RMSV3.value())
23  )
24 
25 process.calibration.InputFiles += ["/d1/bbetchar/LorentzAngle/calibration/ttbar_peak/calibTree_peak.root"]
26 
27 process.path = cms.Path(process.calibration)