Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:46

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("APVGAIN")
0004 
0005 process.load('Configuration.StandardSequences.GeometryDB_cff')
0006 process.load('Configuration.StandardSequences.MagneticField_cff')
0007 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0008 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0009 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0010 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0011 
0012 #this block is there to solve issue related to SiStripQualityRcd
0013 process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
0014 process.load("CalibTracker.SiStripESProducers.fake.SiStripDetVOffFakeESSource_cfi")
0015 process.es_prefer_fakeSiStripDetVOff = cms.ESPrefer("SiStripDetVOffFakeESSource","siStripDetVOffFakeESSource")
0016 
0017 
0018 #process.MessageLogger = cms.Service("MessageLogger",
0019 #    cout = cms.untracked.PSet( threshold = cms.untracked.string('ERROR')  ),
0020 #    destinations = cms.untracked.vstring('cout')
0021 #)
0022 
0023 
0024 
0025 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0026 process.source = cms.Source (
0027     "PoolSource",
0028     fileNames = cms.untracked.vstring('/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/FAFF2948-4EDF-E111-97FB-BCAEC518FF44.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/AA3A95D6-5ADF-E111-ACB3-0025901D629C.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/A6FD8EEA-4CDF-E111-AB2A-BCAEC5329700.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/A2358E47-4EDF-E111-A93D-BCAEC532971B.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/9A59F24F-57DF-E111-B724-5404A63886AE.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/9041A3ED-61DF-E111-B138-BCAEC5329713.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/8E28BE09-64DF-E111-B559-E0CB4E55365D.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/8A4AF852-4ADF-E111-B7D0-003048F024FE.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/629D881A-4FDF-E111-AA10-001D09F34488.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/3866F4D2-4ADF-E111-8749-5404A63886A0.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/287CFC74-59DF-E111-9175-5404A63886D4.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/26F372C9-5FDF-E111-9418-001D09F242EF.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/268097BA-58DF-E111-93A0-0025901D6288.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/2462FB44-4EDF-E111-8D3D-BCAEC518FF8A.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/1800C6E5-55DF-E111-AC90-003048F1C58C.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/16E003CB-4ADF-E111-8883-BCAEC518FF41.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/14F9B88E-56DF-E111-B79B-001D09F24303.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/0CC85F9E-88DF-E111-904F-001D09F29321.root','/store/data/Run2012C/MinimumBias/ALCARECO/SiStripCalMinBias-v2/000/200/190/00A42AC9-4ADF-E111-8749-5404A6388697.root',)
0029     )
0030 
0031 
0032 process.GlobalTag.globaltag = 'GR_P_V40::All'
0033 
0034 #process.load("CalibTracker.SiStripChannelGain.computeGain_cff")
0035 #process.SiStripCalib.InputFiles          = cms.vstring(
0036 #XXX_CALIBTREE_XXX
0037 #)
0038 #process.SiStripCalib.FirstSetOfConstants = cms.untracked.bool(False)
0039 #process.SiStripCalib.CalibrationLevel    = cms.untracked.int32(0) # 0==APV, 1==Laser, 2==module
0040 
0041 
0042 process.SiStripCalib = cms.EDAnalyzer("SiStripGainFromCalibTree",
0043     OutputGains         = cms.string('Gains_ASCII.txt'),
0044     Tracks              = cms.untracked.InputTag('CalibrationTracksRefit'),
0045     AlgoMode            = cms.untracked.string('PCL'),
0046 
0047     #Gain quality cuts
0048     minNrEntries        = cms.untracked.double(25),
0049     maxChi2OverNDF      = cms.untracked.double(9999999.0),
0050     maxMPVError         = cms.untracked.double(25.0),
0051 
0052     #track/cluster quality cuts
0053     minTrackMomentum    = cms.untracked.double(2),
0054     maxNrStrips         = cms.untracked.uint32(8),
0055 
0056     Validation          = cms.untracked.bool(False),
0057     OldGainRemoving     = cms.untracked.bool(False),
0058     FirstSetOfConstants = cms.untracked.bool(True),
0059 
0060     CalibrationLevel    = cms.untracked.int32(0), # 0==APV, 1==Laser, 2==module
0061 
0062     InputFiles          = cms.vstring(),
0063 
0064     UseCalibration     = cms.untracked.bool(False),
0065     calibrationPath    = cms.untracked.string(""),
0066 
0067     SinceAppendMode     = cms.bool(True),
0068     IOVMode             = cms.string('Job'),
0069     Record              = cms.string('SiStripApvGainRcd'),
0070     doStoreOnDB         = cms.bool(True),
0071 )
0072 
0073 process.SiStripCalib.FirstSetOfConstants = cms.untracked.bool(False)
0074 process.SiStripCalib.CalibrationLevel    = cms.untracked.int32(0) # 0==APV, 1==Laser, 2==module
0075 
0076 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0077     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0078     DBParameters = cms.PSet(
0079         messageLevel = cms.untracked.int32(2),
0080         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0081     ),
0082     timetype = cms.untracked.string('runnumber'),
0083     connect = cms.string('sqlite_file:Gains_Sqlite.db'),
0084     toPut = cms.VPSet(cms.PSet(
0085         record = cms.string('SiStripApvGainRcd'),
0086         tag = cms.string('IdealGainTag')
0087     ))
0088 )
0089 
0090 process.TFileService = cms.Service("TFileService",
0091         fileName = cms.string('Gains_Tree.root')  
0092 )
0093 
0094 
0095 
0096 
0097 
0098 process.load('Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi')
0099 process.load('RecoVertex.BeamSpotProducer.BeamSpot_cff')
0100 process.load('RecoTracker.TrackProducer.TrackRefitters_cff')
0101 
0102 process.CalibrationTracksRefit = process.TrackRefitter.clone(src = cms.InputTag("CalibrationTracks"))
0103 process.CalibrationTracks = process.AlignmentTrackSelector.clone(
0104 #    src = 'generalTracks',
0105     src = 'ALCARECOSiStripCalMinBias',
0106     filter = True,
0107     applyBasicCuts = True,
0108     ptMin = 0.8,
0109     nHitMin = 6,
0110     chi2nMax = 10.,
0111     )
0112 
0113 # refit and BS can be dropped if done together with RECO.
0114 # track filter can be moved in acalreco if no otehr users
0115 process.trackFilterRefit = cms.Sequence( process.CalibrationTracks + process.offlineBeamSpot + process.CalibrationTracksRefit )
0116 
0117 process.p = cms.Path(process.trackFilterRefit * process.SiStripCalib)