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)
31 overlapValidationSequence =
"process.analysis"
33 overlapPlottingTemplate =
"""
37 from Alignment.OfflineValidation.TkAlStyle import TkAlStyle
39 TkAlStyle.legendheader = ".oO[legendheader]Oo."
40 TkAlStyle.set(ROOT..oO[publicationstatus]Oo., ROOT..oO[era]Oo., ".oO[customtitle]Oo.", ".oO[customrighttitle]Oo.")
43 os.makedirs(".oO[datadir]Oo./.oO[PlotsDirName]Oo./")
47 os.makedirs(".oO[datadir]Oo./.oO[PlotsDirName]Oo./Profiles")
51 from Alignment.OfflineValidation.overlapValidationPlot import plot
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)
59 plot(".oO[datadir]Oo./.oO[PlotsDirName]Oo./",subdet_ids,module_directions,overlap_directions,profile_directions,.oO[PlottingInstantiation]Oo.)