Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:23

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DTDPGAnalyis")
0004 
0005 
0006 ##process.load("UserCode.DTDPGAnalysis.dt_dpganalysis_common_cff_cosmics_miniDAQ")
0007 ##process.load("UserCode.DTDPGAnalysis.testLocalDAQ")
0008 process.load("UserCode.DTDPGAnalysis.testLocalDAQ_ROS8")
0009 
0010 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0011 
0012 process.source = cms.Source("EmptySource",
0013       firstRun= cms.untracked.uint32(3163),
0014       numberEventsInLuminosityBlock = cms.untracked.uint32(200),
0015       numberEventsInRun       = cms.untracked.uint32(0)
0016  )
0017 
0018 process.rawDataCollector = cms.EDProducer('DTNewROS8FileReader',
0019          isRaw = cms.untracked.bool(True),
0020          numberOfHeaderWords = cms.untracked.int32(10),  ## No esta incluido en el default del codigo de la ROS8
0021          eventsAnalysisRate = cms.untracked.int32(1),
0022 
0023          fileName = cms.untracked.string(
0024         'file:./run27082015_3163'
0025          )
0026     
0027 )                                                
0028 
0029 
0030 from  CondCore.CondDB.CondDB_cfi import *
0031 
0032 ###### MAP ############################################################################
0033 ###process.mappingsource = cms.ESSource("PoolDBESSource",
0034 ###    CondDBSetup,
0035 ###    timetype = cms.string('runnumber'),
0036 ###    toGet = cms.VPSet(cms.PSet(record = cms.string('DTReadOutMappingRcd'),
0037 ###                               tag = cms.string('DTReadoutMapping_Rob3Mb1')
0038 ######                               tag = cms.string('DTReadOutMapping_compact_V04')
0039 ###                               )
0040 ###                      ),
0041 ###    connect = cms.string('frontier://Frontier/CMS_COND_31X_DT'),
0042 ###    authenticationMethod = cms.untracked.uint32(1)
0043 ###    )
0044 ###
0045 ###process.es_prefer_mappingsource = cms.ESPrefer('PoolDBESSource','mappingsource')
0046 ###### END MAP ########################################################################
0047 
0048 ###### tTrig  #########################################################################
0049 process.ttrigsource = cms.ESSource("PoolDBESSource", 
0050     CondDBSetup,
0051     timetype = cms.string('runnumber'),
0052     toGet = cms.VPSet(cms.PSet(record = cms.string('DTTtrigRcd'),
0053                                label = cms.untracked.string('cosmics'),  ## ONLY if using cosmic reconstruction  
0054                                tag = cms.string('ttrig')
0055                                )
0056                       ),
0057     ## connect = cms.string('frontier://Frontier/CMS_COND_31X_DT'),
0058     ## connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DT/OfflineCode/GIF2015/LocalDataBases/ttrig_ROS8_1.db'),
0059     ## connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DT/OfflineCode/GIF2015/LocalDataBases/ttrig_ROS8_1_p520.db'),
0060     ## connect = cms.string('sqlite_file:ttrig_ROS8_1_p530.db'),
0061     connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DT/OfflineCode/GIF2015/LocalDataBases/ttrig_ROS8_Tbox410.db'),
0062     authenticationMethod = cms.untracked.uint32(0)
0063     )
0064 
0065 process.es_prefer_ttrigsource = cms.ESPrefer('PoolDBESSource','ttrigsource')
0066 ###### END tTRIG  #####################################################################
0067 
0068 
0069 
0070 ###process.MessageLogger = cms.Service("MessageLogger",
0071 ###                                    cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING')),
0072 ###                                    destinations = cms.untracked.vstring('cout')
0073 ###                                    )
0074 
0075 #------------------
0076 # DT Analyisis
0077 #------------------
0078 
0079 # MAGNETIC FIELD
0080 #### B = 0 Tesla ###############################################################
0081 process.load("Configuration.StandardSequences.MagneticField_0T_cff")
0082 ####process.SteppingHelixPropagator.useInTeslaFromMagField = True
0083 ####process.SteppingHelixPropagator.SetVBFPointer = True
0084 #### B = 3.8 Tesla #############################################################
0085 ##process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0086 
0087 #--------------------------------------------------------
0088 
0089 from UserCode.DTDPGAnalysis.DTOfflineAnalyzer_cfi import *
0090 process.DTOfflineAnalyzer.DTLocalTriggerLabel = 'dtunpacker'
0091 process.DTOfflineAnalyzer.doSA = False
0092 ##process.DTOfflineAnalyzer.doWheelm2 = False
0093 ##process.DTOfflineAnalyzer.doWheelm1 = False
0094 ##process.DTOfflineAnalyzer.doWheel0 = False
0095 ##process.DTOfflineAnalyzer.doWheel1 = False
0096 ##process.DTOfflineAnalyzer.doWheel2 = False
0097 
0098 process.DTOfflineAnalyzer.doTBox = False
0099 process.DTOfflineAnalyzer.doTBoxWhm2 = False
0100 process.DTOfflineAnalyzer.doTBoxWhm1 = False
0101 process.DTOfflineAnalyzer.doTBoxWh0 = False
0102 process.DTOfflineAnalyzer.doTBoxWh1 = False
0103 process.DTOfflineAnalyzer.doTBoxWh2 = False
0104 process.DTOfflineAnalyzer.doTBoxSector  = 0 ## =0 => All Sectors, =N => Sector N
0105 process.DTOfflineAnalyzer.doTBoxChamber = 3 ## =0 => All Chambers,=N => Chamber N
0106 process.DTOfflineAnalyzer.doTBoxSuperLayer = 0 ## =0 => All SuperLayers,=N => SuperLayer N
0107 process.DTOfflineAnalyzer.doTBoxLayer = 0 ## =0 => All Layers,=N => Layer N
0108 
0109 
0110 process.load("DQM.DTMonitorModule.dtTriggerTask_cfi")
0111 process.dtTriggerMonitor.process_dcc = True
0112 process.dtTriggerMonitor.dcc_label   = 'dttfunpacker'
0113 process.dtTriggerMonitor.process_seg = True
0114 
0115 #--------------------------------------------------------
0116 ##process.UpdaterService = cms.Service("UpdaterService")  ###  Only needed for STA reco
0117 #--------------------------------------------------------
0118 
0119 
0120 process.load("UserCode/DTDPGAnalysis/DTTTreGenerator_cfi")
0121 process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(True))
0122 
0123 process.myDTNtuple.outputFile = "DTNtuple_LocalRun.root"
0124 ##process.myDTNtuple.dtTrigSimDCCLabel = cms.InputTag("dtTriggerPrimitiveDigis")
0125 process.myDTNtuple.dtDigiLabel = cms.InputTag("dtunpacker")
0126 process.myDTNtuple.localDTmuons = cms.untracked.bool(True)
0127 process.myDTNtuple.localDTmuonsWithoutTrigger = cms.untracked.bool(True)  ## This avoid the "standard DCC & DDU triggers  if uncommented
0128                                                                           ## the program will probably crash
0129 process.myDTNtuple.localDTmuonsWithROS8Trigger = cms.untracked.bool(True) ## << To include the ROS8 Trigger data in the root tree
0130                                                                           ## Can be put as true even if there is not this triggers but
0131                                                                           ## only in case the ROS8 unpacker is used 
0132 ## Uncomment and change the next parameters in case you need to increase the 
0133 ##total number of digis/segments... per event allowed in the root size
0134 ##process.myDTNtuple.dtDigiSize = cms.int32(300),
0135 ##process.myDTNtuple.dtSegmentSize = cms.int32(50),
0136 ##process.myDTNtuple.dtTrigROS8Size = cms.int32(50),
0137 
0138 
0139 process.out = cms.OutputModule("PoolOutputModule",
0140                                outputCommands = cms.untracked.vstring('drop *', 
0141                                                                       'keep *_MEtoEDMConverter_*_*'),
0142                                fileName = cms.untracked.string('DQMOfflineDTDPG.root')
0143                                )
0144 
0145 ##process.p = cms.Path( process.dtunpacker )
0146 process.p = cms.Path( process.rawDataCollector+process.dtunpacker * process.reco  + process.sources + process.MEtoEDMConverter  + process.DTOfflineAnalyzer +process.myDTNtuple) 
0147 
0148 process.ep = cms.EndPath( process.out )
0149