ALCARECOCalibrationTracksRefit )

# ------------------------------------------------------------------------------
# Get the information you need from the tracks, calibTree-style to have no code difference
from CalibTracker.SiStripCommon.ShallowEventDataProducer_cfi import shallowEventRun
from CalibTracker.SiStripCommon.ShallowTracksProducer_cfi import shallowTracks
from CalibTracker.SiStripCommon.ShallowGainCalibration_cfi import shallowGainCalibration
ALCARECOShallowEventRun = shallowEventRun.clone()
ALCARECOShallowTracks = shallowTracks.clone(Tracks=cms.InputTag('ALCARECOCalibrationTracksRefit'))
ALCARECOShallowGainCalibration = shallowGainCalibration.clone(Tracks=cms.InputTag('ALCARECOCalibrationTracksRefit'))
ALCARECOShallowSequence = cms.Sequence(ALCARECOShallowEventRun*ALCARECOShallowTracks*ALCARECOShallowGainCalibration)

# ------------------------------------------------------------------------------
# This is the module actually doing the calibration
from CalibTracker.SiStripChannelGain.SiStripGainsPCLWorker_cfi import SiStripGainsPCLWorker                         
ALCARECOSiStripCalib = SiStripGainsPCLWorker.clone()                                                            
ALCARECOSiStripCalib.FirstSetOfConstants = cms.untracked.bool(False)   
ALCARECOSiStripCalib.DQMdir              = cms.untracked.string('AlCaReco/SiStripGains')
ALCARECOSiStripCalib.calibrationMode     = cms.untracked.string('StdBunch')                                   
ALCARECOSiStripCalib.gain.label          = cms.untracked.string('ALCARECOShallowGainCalibration')      
ALCARECOSiStripCalib.evtinfo.label       = cms.untracked.string('ALCARECOShallowEventRun')             
ALCARECOSiStripCalib.tracks.label        = cms.untracked.string('ALCARECOShallowTracks')               
# ----------------------------------------------------------------------------

# ****************************************************************************
# ** Conversion for the SiStripGain DQM dir not used for split statistics   **
# ****************************************************************************
MEtoEDMConvertSiStripGains = cms.EDProducer("MEtoEDMConverter",
                                            Name = cms.untracked.string('MEtoEDMConverter'),
                                            Verbosity = cms.untracked.int32(0), # 0 provides no output
                                            # 1 provides basic output
示例#2
0
from CalibTracker.SiStripCommon.ShallowEventDataProducer_cfi import shallowEventRun
from CalibTracker.SiStripCommon.ShallowTracksProducer_cfi import shallowTracks
from CalibTracker.SiStripCommon.ShallowGainCalibration_cfi import shallowGainCalibration
ALCARECOShallowEventRun = shallowEventRun.clone()
ALCARECOShallowTracks = shallowTracks.clone(
    Tracks=cms.InputTag('ALCARECOCalibrationTracksRefit'))
ALCARECOShallowGainCalibration = shallowGainCalibration.clone(
    Tracks=cms.InputTag('ALCARECOCalibrationTracksRefit'))
ALCARECOShallowSequence = cms.Sequence(ALCARECOShallowEventRun *
                                       ALCARECOShallowTracks *
                                       ALCARECOShallowGainCalibration)

# ------------------------------------------------------------------------------
# This is the module actually doing the calibration
from CalibTracker.SiStripChannelGain.SiStripGainsPCLWorker_cfi import SiStripGainsPCLWorker
ALCARECOSiStripCalib = SiStripGainsPCLWorker.clone()
ALCARECOSiStripCalib.FirstSetOfConstants = cms.untracked.bool(False)
ALCARECOSiStripCalib.DQMdir = cms.untracked.string('AlCaReco/SiStripGains')
ALCARECOSiStripCalib.calibrationMode = cms.untracked.string('StdBunch')
ALCARECOSiStripCalib.gain.label = cms.untracked.string(
    'ALCARECOShallowGainCalibration')
ALCARECOSiStripCalib.evtinfo.label = cms.untracked.string(
    'ALCARECOShallowEventRun')
ALCARECOSiStripCalib.tracks.label = cms.untracked.string(
    'ALCARECOShallowTracks')
# ----------------------------------------------------------------------------

# ****************************************************************************
# ** Conversion for the SiStripGain DQM dir not used for split statistics   **
# ****************************************************************************
MEtoEDMConvertSiStripGains = cms.EDProducer(
ALCARECOCalibrationTracksRefitAAG = TrackRefitter.clone(
    src=cms.InputTag("ALCARECOCalibrationTracksAAG"),
    NavigationSchool=cms.string(""))

# refit and BS can be dropped if done together with RECO.
# track filter can be moved in acalreco if no otehr users
ALCARECOTrackFilterRefitAAG = cms.Sequence(ALCARECOCalibrationTracksAAG +
                                           offlineBeamSpot +
                                           ALCARECOCalibrationTracksRefitAAG)

# ------------------------------------------------------------------------------
# This is the module actually doing the calibration
from CalibTracker.SiStripChannelGain.SiStripGainsPCLWorker_cfi import SiStripGainsPCLWorker
ALCARECOSiStripCalibAAG = SiStripGainsPCLWorker.clone(
    tracks=cms.InputTag('ALCARECOCalibrationTracksRefitAAG'),
    FirstSetOfConstants=cms.untracked.bool(False),
    DQMdir=cms.untracked.string('AlCaReco/SiStripGainsAAG'),
    calibrationMode=cms.untracked.string('AagBunch'))

# ----------------------------------------------------------------------------

MEtoEDMConvertSiStripGainsAAG = cms.EDProducer(
    "MEtoEDMConverter",
    Name=cms.untracked.string('MEtoEDMConverter'),
    Verbosity=cms.untracked.int32(1),  # 0 provides no output
    # 1 provides basic output
    # 2 provide more detailed output
    Frequency=cms.untracked.int32(50),
    MEPathToSave=cms.untracked.string('AlCaReco/SiStripGainsAAG'),
)
from CalibTracker.SiStripCommon.ShallowEventDataProducer_cfi import shallowEventRun
from CalibTracker.SiStripCommon.ShallowTracksProducer_cfi import shallowTracks
from CalibTracker.SiStripCommon.ShallowGainCalibration_cfi import shallowGainCalibration
ALCARECOShallowEventRunAAG = shallowEventRun.clone()
ALCARECOShallowTracksAAG = shallowTracks.clone(
    Tracks=cms.InputTag('ALCARECOCalibrationTracksRefitAAG'))
ALCARECOShallowGainCalibrationAAG = shallowGainCalibration.clone(
    Tracks=cms.InputTag('ALCARECOCalibrationTracksRefitAAG'))
ALCARECOShallowSequenceAAG = cms.Sequence(ALCARECOShallowEventRunAAG *
                                          ALCARECOShallowTracksAAG *
                                          ALCARECOShallowGainCalibrationAAG)

# ------------------------------------------------------------------------------
# This is the module actually doing the calibration
from CalibTracker.SiStripChannelGain.SiStripGainsPCLWorker_cfi import SiStripGainsPCLWorker
ALCARECOSiStripCalibAfterAbortGap = SiStripGainsPCLWorker.clone()
ALCARECOSiStripCalibAfterAbortGap.FirstSetOfConstants = cms.untracked.bool(
    False)
ALCARECOSiStripCalibAfterAbortGap.DQMdir = cms.untracked.string(
    'AlCaReco/SiStripGainsAfterAbortGap')
ALCARECOSiStripCalibAfterAbortGap.calibrationMode = cms.untracked.string(
    'AagBunch')
ALCARECOSiStripCalibAfterAbortGap.gain.label = cms.untracked.string(
    'ALCARECOShallowGainCalibrationAAG')
ALCARECOSiStripCalibAfterAbortGap.evtinfo.label = cms.untracked.string(
    'ALCARECOShallowEventRunAAG')
ALCARECOSiStripCalibAfterAbortGap.tracks.label = cms.untracked.string(
    'ALCARECOShallowTracksAAG')
# ----------------------------------------------------------------------------

# ****************************************************************************
                                           ALCARECOCalibrationTracksRefitAAG )

# ------------------------------------------------------------------------------
# Get the information you need from the tracks, calibTree-style to have no code difference
from CalibTracker.SiStripCommon.ShallowEventDataProducer_cfi import shallowEventRun
from CalibTracker.SiStripCommon.ShallowTracksProducer_cfi import shallowTracks
from CalibTracker.SiStripCommon.ShallowGainCalibration_cfi import shallowGainCalibration
ALCARECOShallowEventRunAAG = shallowEventRun.clone()
ALCARECOShallowTracksAAG   = shallowTracks.clone(Tracks=cms.InputTag('ALCARECOCalibrationTracksRefitAAG'))
ALCARECOShallowGainCalibrationAAG = shallowGainCalibration.clone(Tracks=cms.InputTag('ALCARECOCalibrationTracksRefitAAG'))
ALCARECOShallowSequenceAAG = cms.Sequence(ALCARECOShallowEventRunAAG*ALCARECOShallowTracksAAG*ALCARECOShallowGainCalibrationAAG)

# ------------------------------------------------------------------------------
# This is the module actually doing the calibration
from CalibTracker.SiStripChannelGain.SiStripGainsPCLWorker_cfi import SiStripGainsPCLWorker                         
ALCARECOSiStripCalibAfterAbortGap = SiStripGainsPCLWorker.clone()                                                            
ALCARECOSiStripCalibAfterAbortGap.FirstSetOfConstants = cms.untracked.bool(False)   
ALCARECOSiStripCalibAfterAbortGap.DQMdir              = cms.untracked.string('AlCaReco/SiStripGainsAfterAbortGap')
ALCARECOSiStripCalibAfterAbortGap.calibrationMode     = cms.untracked.string('AagBunch')          
ALCARECOSiStripCalibAfterAbortGap.gain.label          = cms.untracked.string('ALCARECOShallowGainCalibrationAAG')      
ALCARECOSiStripCalibAfterAbortGap.evtinfo.label       = cms.untracked.string('ALCARECOShallowEventRunAAG')             
ALCARECOSiStripCalibAfterAbortGap.tracks.label        = cms.untracked.string('ALCARECOShallowTracksAAG')             
# ----------------------------------------------------------------------------  

# ****************************************************************************
# ** Conversion for the SiStripGain DQM dir not used for split statistics   **
# ****************************************************************************
MEtoEDMConvertSiStripGainsAfterAbortGap = cms.EDProducer("MEtoEDMConverter",
                                                         Name = cms.untracked.string('MEtoEDMConverter'),
                                                         Verbosity = cms.untracked.int32(1), # 0 provides no output
                                                         # 1 provides basic output