CMS 3D CMS Logo

overlapValidationTemplates.py
Go to the documentation of this file.
1 overlapTemplate = """
2 # Use compressions settings of TFile
3 # see https://root.cern.ch/root/html534/TFile.html#TFile:SetCompressionSettings
4 # settings = 100 * algorithm + level
5 # level is from 1 (small) to 9 (large compression)
6 # algo: 1 (ZLIB), 2 (LMZA)
7 # see more about compression & performance: https://root.cern.ch/root/html534/guides/users-guide/InputOutput.html#compression-and-performance
8 compressionSettings = 207
9 process.analysis = cms.EDAnalyzer("OverlapValidation",
10  usePXB = cms.bool(True),
11  usePXF = cms.bool(True),
12  useTIB = cms.bool(True),
13  useTOB = cms.bool(True),
14  useTID = cms.bool(True),
15  useTEC = cms.bool(True),
16  compressionSettings = cms.untracked.int32(compressionSettings),
17  ROUList = cms.vstring('TrackerHitsTIBLowTof',
18  'TrackerHitsTIBHighTof',
19  'TrackerHitsTOBLowTof',
20  'TrackerHitsTOBHighTof'),
21  trajectories = cms.InputTag("FinalTrackRefitter"),
22  associatePixel = cms.bool(False),
23  associateStrip = cms.bool(False),
24  associateRecoTracks = cms.bool(False),
25  tracks = cms.InputTag("FinalTrackRefitter"),
26  barrelOnly = cms.bool(False)
27 )
28 
29 """
30 
31 overlapValidationSequence = "process.analysis"
32 
33 overlapPlottingTemplate = """
34 
35 import os
36 import ROOT
37 from Alignment.OfflineValidation.TkAlStyle import TkAlStyle
38 
39 TkAlStyle.legendheader = ".oO[legendheader]Oo."
40 TkAlStyle.set(ROOT..oO[publicationstatus]Oo., ROOT..oO[era]Oo., ".oO[customtitle]Oo.", ".oO[customrighttitle]Oo.")
41 
42 try:
43  os.makedirs(".oO[datadir]Oo./.oO[PlotsDirName]Oo./")
44 except OSError:
45  pass
46 try:
47  os.makedirs(".oO[datadir]Oo./.oO[PlotsDirName]Oo./Profiles")
48 except OSError:
49  pass
50 
51 from Alignment.OfflineValidation.overlapValidationPlot import plot
52 
53 subdet_ids=[True,True,True,True,True,True]#(BPIX,FPIX,TIB,TID,TOB,TEC)
54 module_directions=[True,True,True]#(z,r,phi)
55 overlap_directions=[True,True,True]#(z,r,phi)
56 profile_directions=[True,True,True,True]#(histogtam,z-profiles,r-profiles,phi-profiles)
57 
58 
59 plot(".oO[datadir]Oo./.oO[PlotsDirName]Oo./",subdet_ids,module_directions,overlap_directions,profile_directions,.oO[PlottingInstantiation]Oo.)
60 
61 
62 """