CMS 3D CMS Logo

overlapValidationTemplates.py
Go to the documentation of this file.
1 overlapTemplate = """
2 process.analysis = cms.EDAnalyzer("OverlapValidation",
3  usePXB = cms.bool(True),
4  usePXF = cms.bool(True),
5  useTIB = cms.bool(True),
6  useTOB = cms.bool(True),
7  useTID = cms.bool(True),
8  useTEC = cms.bool(True),
9  ROUList = cms.vstring('TrackerHitsTIBLowTof',
10  'TrackerHitsTIBHighTof',
11  'TrackerHitsTOBLowTof',
12  'TrackerHitsTOBHighTof'),
13  trajectories = cms.InputTag("FinalTrackRefitter"),
14  associatePixel = cms.bool(False),
15  associateStrip = cms.bool(False),
16  associateRecoTracks = cms.bool(False),
17  tracks = cms.InputTag("FinalTrackRefitter"),
18  barrelOnly = cms.bool(False)
19 )
20 
21 """
22 
23 overlapValidationSequence = "process.analysis"
24 
25 overlapPlottingTemplate = """
26 
27 import os
28 import ROOT
29 from Alignment.OfflineValidation.TkAlStyle import TkAlStyle
30 
31 TkAlStyle.legendheader = ".oO[legendheader]Oo."
32 TkAlStyle.set(ROOT..oO[publicationstatus]Oo., ROOT..oO[era]Oo., ".oO[customtitle]Oo.", ".oO[customrighttitle]Oo.")
33 
34 try:
35  os.makedirs(".oO[datadir]Oo./.oO[PlotsDirName]Oo./")
36 except OSError:
37  pass
38 try:
39  os.makedirs(".oO[datadir]Oo./.oO[PlotsDirName]Oo./Profiles")
40 except OSError:
41  pass
42 
43 from Alignment.OfflineValidation.overlapValidationPlot import plot
44 
45 subdet_ids=[True,True,True,True,True,True]#(BPIX,FPIX,TIB,TID,TOB,TEC)
46 module_directions=[True,True,True]#(z,r,phi)
47 overlap_directions=[True,True,True]#(z,r,phi)
48 profile_directions=[True,True,True,True]#(histogtam,z-profiles,r-profiles,phi-profiles)
49 
50 
51 plot(".oO[datadir]Oo./.oO[PlotsDirName]Oo./",subdet_ids,module_directions,overlap_directions,profile_directions,.oO[PlottingInstantiation]Oo.)
52 
53 
54 """