Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:46:00

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ##
0004 ## Set standard binning for the DMR histograms
0005 ##
0006 from Alignment.OfflineValidation.TrackerOfflineValidationSummary_cfi import *
0007 
0008 # do the parameter setting before cloning, so the clone gets these values
0009 TrackerOfflineValidationSummary.TH1DmrXprimeStripModules.Nbinx = 50
0010 TrackerOfflineValidationSummary.TH1DmrXprimeStripModules.xmin = -0.005
0011 TrackerOfflineValidationSummary.TH1DmrXprimeStripModules.xmax = 0.005
0012 
0013 TrackerOfflineValidationSummary.TH1DmrYprimeStripModules.Nbinx = 50
0014 TrackerOfflineValidationSummary.TH1DmrYprimeStripModules.xmin = -0.005
0015 TrackerOfflineValidationSummary.TH1DmrYprimeStripModules.xmax = 0.005
0016 
0017 TrackerOfflineValidationSummary.TH1DmrXprimePixelModules.Nbinx = 50
0018 TrackerOfflineValidationSummary.TH1DmrXprimePixelModules.xmin = -0.005
0019 TrackerOfflineValidationSummary.TH1DmrXprimePixelModules.xmax = 0.005
0020 
0021 TrackerOfflineValidationSummary.TH1DmrYprimePixelModules.Nbinx = 50
0022 TrackerOfflineValidationSummary.TH1DmrYprimePixelModules.xmin = -0.005
0023 TrackerOfflineValidationSummary.TH1DmrYprimePixelModules.xmax = 0.005
0024 
0025 # First clone
0026 TrackerOfflineValidationSummaryBinned = TrackerOfflineValidationSummary.clone()
0027 
0028 ##
0029 ## TrackerOfflineValidation (DQM mode)
0030 ##
0031 from Alignment.OfflineValidation.TrackerOfflineValidation_Standalone_cff import TrackerOfflineValidationBinned
0032 TrackerOfflineValidationDqm = TrackerOfflineValidationBinned.clone(
0033     useInDqmMode              = True,
0034     moduleDirectoryInOutput   = "Alignment/Tracker",
0035     Tracks =  'TrackRefitterForOfflineValidation'
0036 )
0037 
0038 ##
0039 ## TrackerOfflineValidationSummary
0040 ##
0041 TrackerOfflineValidationSummaryDqm = TrackerOfflineValidationSummaryBinned.clone(
0042     minEntriesPerModuleForDmr = 100
0043 )
0044 
0045 ##
0046 ## Output File Configuration
0047 ##
0048 # DQM backend
0049 from DQMServices.Core.DQM_cfg import *
0050 # DQM file saver
0051 DqmSaverTkAl = cms.EDAnalyzer("DQMFileSaver",
0052           convention=cms.untracked.string("Offline"),
0053           workflow=cms.untracked.string("/Cosmics/TkAl09-AlignmentSpecification_R000100000_R000100050_ValSkim-v1/ALCARECO"),   # /primaryDatasetName/WorkflowDescription/DataTier; Current Convention: Indicate run range (first and last run) in file name
0054                                                                                                                            # WorkflowDescription should match namespace conventions, must have a year indicated by 2 digits in first word (aquisition era)) 
0055       dirName=cms.untracked.string("."),
0056           saveByRun=cms.untracked.int32(-1),
0057       saveAtJobEnd=cms.untracked.bool(True),                        
0058           forceRunNumber=cms.untracked.int32(100000)   # Current Convention: Take first processed run
0059 )
0060 
0061 
0062 ##
0063 ## Sequence
0064 ##
0065 seqTrackerOfflineValidationDqm = cms.Sequence(TrackerOfflineValidationDqm
0066                                               *TrackerOfflineValidationSummaryDqm
0067                           *DqmSaverTkAl
0068 )