CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
PedeSetup Namespace Reference

Functions

def setup
 

Function Documentation

def PedeSetup.setup (   process,
  binary_files,
  tree_files 
)
Pede-specific setup.

Arguments:
- `process`: cms.Process object
- `binary_files`: list of binary files to be read by pede
- `tree_files`: list of ROOT files created in the mille step

Definition at line 4 of file PedeSetup.py.

4 
5 def setup(process, binary_files, tree_files):
6  """Pede-specific setup.
7 
8  Arguments:
9  - `process`: cms.Process object
10  - `binary_files`: list of binary files to be read by pede
11  - `tree_files`: list of ROOT files created in the mille step
12  """
13 
14  # write alignments, APEs, and surface deformations to DB by default
15  # --------------------------------------------------------------------------
16  process.AlignmentProducer.saveToDB = True
17  process.AlignmentProducer.saveApeToDB = True
18  process.AlignmentProducer.saveDeformationsToDB = True
19 
20  # setup database output module
21  # --------------------------------------------------------------------------
22  from CondCore.CondDB.CondDB_cfi import CondDB
23  process.PoolDBOutputService = cms.Service("PoolDBOutputService",
24  CondDB,
25  timetype = cms.untracked.string("runnumber"),
26  toPut = cms.VPSet(
27  cms.PSet(
28  record = cms.string("TrackerAlignmentRcd"),
29  tag = cms.string("Alignments")),
30  cms.PSet(
31  record = cms.string("TrackerAlignmentErrorExtendedRcd"),
32  tag = cms.string("AlignmentErrorsExtended")),
33  cms.PSet(
34  record = cms.string("TrackerSurfaceDeformationRcd"),
35  tag = cms.string("Deformations")),
36  cms.PSet(
37  record = cms.string("SiStripLorentzAngleRcd_peak"),
38  tag = cms.string("SiStripLorentzAngle_peak")),
39  cms.PSet(
40  record = cms.string("SiStripLorentzAngleRcd_deco"),
41  tag = cms.string("SiStripLorentzAngle_deco")),
42  cms.PSet(
43  record = cms.string("SiPixelLorentzAngleRcd"),
44  tag = cms.string("SiPixelLorentzAngle")),
45  cms.PSet(
46  record = cms.string("SiStripBackPlaneCorrectionRcd"),
47  tag = cms.string("SiStripBackPlaneCorrection"))
48  )
49  )
50  process.PoolDBOutputService.connect = "sqlite_file:alignments_MP.db"
51 
52 
53  # Reconfigure parts of the algorithm configuration
54  # --------------------------------------------------------------------------
55  process.AlignmentProducer.algoConfig.mergeBinaryFiles = binary_files
56  process.AlignmentProducer.algoConfig.mergeTreeFiles = tree_files
57 
58 
59  # Set a new source and path.
60  # --------------------------------------------------------------------------
61  process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
62  process.source = cms.Source("EmptySource")
63  process.dump = cms.EDAnalyzer("EventContentAnalyzer")
64  process.p = cms.Path(process.dump)
def setup
Definition: PedeSetup.py:4