Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:45:59

0001 overlapTemplate = """
0002 # Use compressions settings of TFile
0003 # see https://root.cern.ch/root/html534/TFile.html#TFile:SetCompressionSettings
0004 # settings = 100 * algorithm + level
0005 # level is from 1 (small) to 9 (large compression)
0006 # algo: 1 (ZLIB), 2 (LMZA)
0007 # see more about compression & performance: https://root.cern.ch/root/html534/guides/users-guide/InputOutput.html#compression-and-performance
0008 compressionSettings = 207
0009 process.analysis = cms.EDAnalyzer("OverlapValidation",
0010     usePXB = cms.bool(True),
0011     usePXF = cms.bool(True),
0012     useTIB = cms.bool(True),
0013     useTOB = cms.bool(True),
0014     useTID = cms.bool(True),
0015     useTEC = cms.bool(True),
0016     compressionSettings = cms.untracked.int32(compressionSettings),
0017     ROUList = cms.vstring('TrackerHitsTIBLowTof',
0018         'TrackerHitsTIBHighTof',
0019         'TrackerHitsTOBLowTof',
0020         'TrackerHitsTOBHighTof'),
0021     trajectories = cms.InputTag("FinalTrackRefitter"),
0022     associatePixel = cms.bool(False),
0023     associateStrip = cms.bool(False),
0024     associateRecoTracks = cms.bool(False),
0025     tracks = cms.InputTag("FinalTrackRefitter"),
0026     barrelOnly = cms.bool(False)
0027 )
0028 
0029 """
0030 
0031 overlapValidationSequence = "process.analysis"
0032 
0033 overlapPlottingTemplate = """
0034 
0035 import os
0036 import ROOT
0037 from Alignment.OfflineValidation.TkAlStyle import TkAlStyle
0038 
0039 TkAlStyle.legendheader = ".oO[legendheader]Oo."
0040 TkAlStyle.set(ROOT..oO[publicationstatus]Oo., ROOT..oO[era]Oo., ".oO[customtitle]Oo.", ".oO[customrighttitle]Oo.")
0041 
0042 try:
0043   os.makedirs(".oO[datadir]Oo./.oO[PlotsDirName]Oo./")
0044 except OSError:
0045   pass
0046 try:
0047   os.makedirs(".oO[datadir]Oo./.oO[PlotsDirName]Oo./Profiles")
0048 except OSError:
0049   pass
0050 
0051 from Alignment.OfflineValidation.overlapValidationPlot import plot
0052 
0053 subdet_ids=[True,True,True,True,True,True]#(BPIX,FPIX,TIB,TID,TOB,TEC)
0054 module_directions=[True,True,True]#(z,r,phi)
0055 overlap_directions=[True,True,True]#(z,r,phi)
0056 profile_directions=[True,True,True,True]#(histogtam,z-profiles,r-profiles,phi-profiles)
0057 
0058 
0059 plot(".oO[datadir]Oo./.oO[PlotsDirName]Oo./",subdet_ids,module_directions,overlap_directions,profile_directions,.oO[PlottingInstantiation]Oo.)
0060 
0061 
0062 """