import FWCore.ParameterSet.Config as cms


from CalibTracker.SiStripChannelGain.computeGain_cff import SiStripCalib
alcaSiStripGainsAfterAbortGapHarvester = SiStripCalib.clone()
alcaSiStripGainsAfterAbortGapHarvester.AlgoMode            = cms.untracked.string('PCL')
alcaSiStripGainsAfterAbortGapHarvester.FirstSetOfConstants = cms.untracked.bool(False)
alcaSiStripGainsAfterAbortGapHarvester.calibrationMode     = cms.untracked.string('AagBunch')
alcaSiStripGainsAfterAbortGapHarvester.DQMdir              = cms.untracked.string('AlCaReco/SiStripGainsAfterAbortGap')
alcaSiStripGainsAfterAbortGapHarvester.CalibrationLevel    = cms.untracked.int32(0) # 0==APV, 1==Laser, 2==module
alcaSiStripGainsAfterAbortGapHarvester.harvestingMode      = cms.untracked.bool(True)
alcaSiStripGainsAfterAbortGapHarvester.Record              = cms.string('SiStripApvGainRcdAfterAbortGap')
Example #2
0
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.computeGain_cff import SiStripCalib

ALCARECOSiStripCalib = SiStripCalib.clone()
ALCARECOSiStripCalib.AlgoMode = cms.untracked.string('PCL')
#ALCARECOSiStripCalib.Tracks              = cms.untracked.InputTag('ALCARECOCalibrationTracksRefit')
ALCARECOSiStripCalib.FirstSetOfConstants = cms.untracked.bool(False)
ALCARECOSiStripCalib.harvestingMode = cms.untracked.bool(False)
ALCARECOSiStripCalib.calibrationMode = cms.untracked.string('StdBunch')
ALCARECOSiStripCalib.doStoreOnDB = cms.bool(False)
ALCARECOSiStripCalib.gain.label = cms.untracked.string(
    'ALCARECOShallowGainCalibration')
ALCARECOSiStripCalib.evtinfo.label = cms.untracked.string(
    'ALCARECOShallowEventRun')
ALCARECOSiStripCalib.tracks.label = cms.untracked.string(
    'ALCARECOShallowTracks')
# ----------------------------------------------------------------------------

# ****************************************************************************
import FWCore.ParameterSet.Config as cms


from CalibTracker.SiStripChannelGain.computeGain_cff import SiStripCalib
alcaSiStripGainsAAGHarvester = SiStripCalib.clone()
alcaSiStripGainsAAGHarvester.AlgoMode            = cms.untracked.string('PCL')
alcaSiStripGainsAAGHarvester.FirstSetOfConstants = cms.untracked.bool(False)
alcaSiStripGainsAAGHarvester.calibrationMode     = cms.untracked.string('AagBunch')
alcaSiStripGainsAAGHarvester.DQMdir              = cms.untracked.string('AlCaReco/SiStripGainsAAG')
alcaSiStripGainsAAGHarvester.CalibrationLevel    = cms.untracked.int32(0) # 0==APV, 1==Laser, 2==module
alcaSiStripGainsAAGHarvester.harvestingMode      = cms.untracked.bool(True)
alcaSiStripGainsAAGHarvester.Record              = cms.string('SiStripApvGainRcdAAG')
Example #4
0
import FWCore.ParameterSet.Config as cms

from CalibTracker.SiStripChannelGain.computeGain_cff import SiStripCalib
alcaSiStripGainsAAGHarvester = SiStripCalib.clone()
alcaSiStripGainsAAGHarvester.AlgoMode = cms.untracked.string('PCL')
alcaSiStripGainsAAGHarvester.FirstSetOfConstants = cms.untracked.bool(False)
alcaSiStripGainsAAGHarvester.calibrationMode = cms.untracked.string('AagBunch')
alcaSiStripGainsAAGHarvester.DQMdir = cms.untracked.string(
    'AlCaReco/SiStripGainsAAG')
alcaSiStripGainsAAGHarvester.CalibrationLevel = cms.untracked.int32(
    0)  # 0==APV, 1==Laser, 2==module
alcaSiStripGainsAAGHarvester.harvestingMode = cms.untracked.bool(True)
alcaSiStripGainsAAGHarvester.Record = cms.string('SiStripApvGainRcdAAG')
# ------------------------------------------------------------------------------
# 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.computeGain_cff import SiStripCalib
ALCARECOSiStripCalibAfterAbortGap = SiStripCalib.clone()
ALCARECOSiStripCalibAfterAbortGap.AlgoMode            = cms.untracked.string('PCL')
ALCARECOSiStripCalibAfterAbortGap.FirstSetOfConstants = cms.untracked.bool(False)
ALCARECOSiStripCalibAfterAbortGap.harvestingMode      = cms.untracked.bool(False)
ALCARECOSiStripCalibAfterAbortGap.calibrationMode     = cms.untracked.string('AagBunch')
ALCARECOSiStripCalibAfterAbortGap.DQMdir              = cms.untracked.string('AlCaReco/SiStripGainsAfterAbortGap')
ALCARECOSiStripCalibAfterAbortGap.doStoreOnDB         = cms.bool(False)
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   **
# ****************************************************************************
# ------------------------------------------------------------------------------
# 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.computeGain_cff import SiStripCalib
ALCARECOSiStripCalib = SiStripCalib.clone()
ALCARECOSiStripCalib.AlgoMode            = cms.untracked.string('PCL')
#ALCARECOSiStripCalib.Tracks              = cms.untracked.InputTag('ALCARECOCalibrationTracksRefit')
ALCARECOSiStripCalib.FirstSetOfConstants = cms.untracked.bool(False)
ALCARECOSiStripCalib.harvestingMode      = cms.untracked.bool(False)
ALCARECOSiStripCalib.calibrationMode     = cms.untracked.string('StdBunch')
ALCARECOSiStripCalib.doStoreOnDB         = cms.bool(False)
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   **
# ****************************************************************************
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.computeGain_cff import SiStripCalib
ALCARECOSiStripCalibAfterAbortGap = SiStripCalib.clone()
ALCARECOSiStripCalibAfterAbortGap.AlgoMode = cms.untracked.string('PCL')
ALCARECOSiStripCalibAfterAbortGap.FirstSetOfConstants = cms.untracked.bool(
    False)
ALCARECOSiStripCalibAfterAbortGap.harvestingMode = cms.untracked.bool(False)
ALCARECOSiStripCalibAfterAbortGap.calibrationMode = cms.untracked.string(
    'AagBunch')
ALCARECOSiStripCalibAfterAbortGap.DQMdir = cms.untracked.string(
    'AlCaReco/SiStripGainsAfterAbortGap')
ALCARECOSiStripCalibAfterAbortGap.doStoreOnDB = cms.bool(False)
ALCARECOSiStripCalibAfterAbortGap.gain.label = cms.untracked.string(
    'ALCARECOShallowGainCalibrationAAG')
ALCARECOSiStripCalibAfterAbortGap.evtinfo.label = cms.untracked.string(
    'ALCARECOShallowEventRunAAG')
ALCARECOSiStripCalibAfterAbortGap.tracks.label = cms.untracked.string(
    'ALCARECOShallowTracksAAG')