Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:29:38

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DEDX")
0004 
0005 process.MessageLogger = cms.Service("MessageLogger",
0006     cerr = cms.untracked.PSet(
0007         enable = cms.untracked.bool(False)
0008     ),
0009     cout = cms.untracked.PSet(
0010         enable = cms.untracked.bool(True),
0011         threshold = cms.untracked.string('ERROR')
0012     )
0013 )
0014 
0015 
0016 #process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0017 #process.GlobalTag.globaltag = 'GR09_R_35X_V2::All'
0018 
0019 process.load('Configuration.StandardSequences.MagneticField_cff')
0020 process.load('Configuration/StandardSequences/GeometryExtended_cff')
0021 
0022 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cfi")
0023 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0024 process.TrackRefitter.TrajectoryInEvent = cms.bool(True)
0025 #process.TrackRefitter.src = 'ALCARECOTkAlCosmicsCosmicTF0T'
0026 process.TrackRefitter.src = 'ctfWithMaterialTracksP5'
0027 
0028 
0029 process.source = cms.Source("EmptyIOVSource",
0030     timetype   = cms.string('runnumber'),
0031     interval   = cms.uint64(1),
0032     firstValue = cms.uint64(190000),
0033     lastValue  = cms.uint64(9999999)
0034 )
0035 
0036 
0037 process.maxEvents = cms.untracked.PSet(
0038     input = cms.untracked.int32(0)
0039 )
0040 
0041 
0042 process.dedxDiscrimMAP = cms.EDAnalyzer("DeDxDiscriminatorLearner",
0043 #process.dedxDiscrimMAP = cms.EDAnalyzer("DeDxDiscriminatorLearnerFromCalibTree",
0044     tracks                     = cms.InputTag("TrackRefitter"),
0045     trajectoryTrackAssociation = cms.InputTag("TrackRefitter"),
0046    
0047     UseStrip           = cms.bool(True),
0048     UsePixel           = cms.bool(False),
0049     MeVperADCStrip     = cms.double(3.61e-06*250),
0050     MeVperADCPixel     = cms.double(3.61e-06),
0051 
0052     AlgoMode            = cms.untracked.string("WriteOnDB"),
0053     HistoFile           = cms.untracked.string("ProbaMap.root"),
0054 
0055     MaxNrStrips         = cms.untracked.uint32(255),
0056 
0057     P_Min               = cms.double  (1.0 ),
0058     P_Max               = cms.double  (15.0),
0059     P_NBins             = cms.int32   (14  ),
0060     Path_Min            = cms.double  (0.2 ),
0061     Path_Max            = cms.double  (1.6 ),
0062     Path_NBins          = cms.int32   (28  ),
0063     Charge_Min          = cms.double  (0   ),
0064     Charge_Max          = cms.double  (4000),
0065     Charge_NBins        = cms.int32   (400 ),
0066 
0067 #    InputFiles         = cms.vstring(),
0068 
0069 
0070     SinceAppendMode     = cms.bool(True),
0071     IOVMode             = cms.string('Job'),
0072     Record              = cms.string('SiStripDeDxMip_3D_Rcd'),
0073     doStoreOnDB         = cms.bool(True)
0074 )
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:Data8TeV_Deco_SiStripDeDxMip_3D_Rcd.db'),
0084     toPut = cms.VPSet(cms.PSet(
0085         record = cms.string('SiStripDeDxMip_3D_Rcd'),
0086         tag = cms.string('Data8TeV_Deco_3D_Rcd_52X')
0087     ))
0088 )
0089 
0090 
0091 
0092 #process.p        = cms.Path(process.offlineBeamSpot + process.TrackRefitter + process.dedxDiscrimMAP)
0093 process.p        = cms.Path(process.dedxDiscrimMAP)
0094 
0095 
0096