CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/Alignment/OfflineValidation/python/TrackerOfflineValidation_Dqm_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 ##
00004 ## Set standard binning for the DMR histograms
00005 ##
00006 from Alignment.OfflineValidation.TrackerOfflineValidationSummary_cfi import *
00007 
00008 # do the parameter setting before cloning, so the clone gets these values
00009 TrackerOfflineValidationSummary.TH1DmrXprimeStripModules.Nbinx = 50
00010 TrackerOfflineValidationSummary.TH1DmrXprimeStripModules.xmin = -0.005
00011 TrackerOfflineValidationSummary.TH1DmrXprimeStripModules.xmax = 0.005
00012 
00013 TrackerOfflineValidationSummary.TH1DmrYprimeStripModules.Nbinx = 50
00014 TrackerOfflineValidationSummary.TH1DmrYprimeStripModules.xmin = -0.005
00015 TrackerOfflineValidationSummary.TH1DmrYprimeStripModules.xmax = 0.005
00016 
00017 TrackerOfflineValidationSummary.TH1DmrXprimePixelModules.Nbinx = 50
00018 TrackerOfflineValidationSummary.TH1DmrXprimePixelModules.xmin = -0.005
00019 TrackerOfflineValidationSummary.TH1DmrXprimePixelModules.xmax = 0.005
00020 
00021 TrackerOfflineValidationSummary.TH1DmrYprimePixelModules.Nbinx = 50
00022 TrackerOfflineValidationSummary.TH1DmrYprimePixelModules.xmin = -0.005
00023 TrackerOfflineValidationSummary.TH1DmrYprimePixelModules.xmax = 0.005
00024 
00025 # First clone
00026 TrackerOfflineValidationSummaryBinned = TrackerOfflineValidationSummary.clone()
00027 
00028 ##
00029 ## TrackerOfflineValidation (DQM mode)
00030 ##
00031 from Alignment.OfflineValidation.TrackerOfflineValidation_Standalone_cff import TrackerOfflineValidationBinned
00032 TrackerOfflineValidationDqm = TrackerOfflineValidationBinned.clone(
00033     useInDqmMode              = True,
00034     moduleDirectoryInOutput   = "Alignment/Tracker",
00035     Tracks =  'TrackRefitterForOfflineValidation',
00036 )
00037 
00038 ##
00039 ## TrackerOfflineValidationSummary
00040 ##
00041 TrackerOfflineValidationSummaryDqm = TrackerOfflineValidationSummaryBinned.clone(
00042     removeModuleLevelHists = True,
00043     minEntriesPerModuleForDmr = 100
00044 )
00045 
00046 ##
00047 ## Output File Configuration
00048 ##
00049 # DQM backend
00050 from DQMServices.Core.DQM_cfg import *
00051 # DQM file saver
00052 DqmSaverTkAl = cms.EDAnalyzer("DQMFileSaver",
00053           convention=cms.untracked.string("Offline"),
00054           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
00055                                                                                                                                # WorkflowDescription should match namespace conventions, must have a year indicated by 2 digits in first word (aquisition era)) 
00056           dirName=cms.untracked.string("."),
00057           saveByRun=cms.untracked.int32(-1),
00058           saveAtJobEnd=cms.untracked.bool(True),                        
00059           forceRunNumber=cms.untracked.int32(100000)   # Current Convention: Take first processed run
00060 )
00061 
00062 
00063 ##
00064 ## Sequence
00065 ##
00066 seqTrackerOfflineValidationDqm = cms.Sequence(TrackerOfflineValidationDqm
00067                                               *TrackerOfflineValidationSummaryDqm
00068                                               *DqmSaverTkAl
00069 )