Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:34

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from CalibCalorimetry.CaloTPG.tpScales_cff import tpScales
0004 
0005 LSParameter =cms.untracked.PSet(
0006 HcalFeatureHFEMBit= cms.bool(False),
0007 Min_Long_Energy= cms.double(10),#makes a cut based on energy deposited in short vrs long
0008     Min_Short_Energy= cms.double(10),
0009     Long_vrs_Short_Slope= cms.double(100.2),
0010     Long_Short_Offset= cms.double(10.1))
0011 
0012 
0013 simHcalTriggerPrimitiveDigis = cms.EDProducer("HcalTrigPrimDigiProducer",
0014     peakFilter = cms.bool(True),
0015     weights = cms.vdouble(1.0, 1.0), ##hardware algo        
0016     weightsQIE11 = cms.PSet(
0017         ieta1 = cms.vint32(255, 255),
0018         ieta2 = cms.vint32(255, 255),
0019         ieta3 = cms.vint32(255, 255),
0020         ieta4 = cms.vint32(255, 255),
0021         ieta5 = cms.vint32(255, 255),
0022         ieta6 = cms.vint32(255, 255),
0023         ieta7 = cms.vint32(255, 255),
0024         ieta8 = cms.vint32(255, 255),
0025         ieta9 = cms.vint32(255, 255),
0026         ieta10 = cms.vint32(255, 255),
0027         ieta11 = cms.vint32(255, 255),
0028         ieta12 = cms.vint32(255, 255),
0029         ieta13 = cms.vint32(255, 255),
0030         ieta14 = cms.vint32(255, 255),
0031         ieta15 = cms.vint32(255, 255),
0032         ieta16 = cms.vint32(255, 255),
0033         ieta17 = cms.vint32(255, 255),
0034         ieta18 = cms.vint32(255, 255),
0035         ieta19 = cms.vint32(255, 255),
0036         ieta20 = cms.vint32(255, 255),
0037         ieta21 = cms.vint32(255, 255),
0038         ieta22 = cms.vint32(255, 255),
0039         ieta23 = cms.vint32(255, 255),
0040         ieta24 = cms.vint32(255, 255),
0041         ieta25 = cms.vint32(255, 255),
0042         ieta26 = cms.vint32(255, 255),
0043         ieta27 = cms.vint32(255, 255),
0044         ieta28 = cms.vint32(255, 255)
0045     ),
0046 
0047     latency = cms.int32(1),
0048     FG_threshold = cms.uint32(12), ## threshold for setting fine grain bit
0049     FG_HF_thresholds = cms.vuint32(17, 255), ## thresholds for setting fine grain bit
0050     ZS_threshold = cms.uint32(1),  ## threshold for setting TP zero suppression
0051 
0052     # To be used when overriding the CondDB, default is with vetoing off ("coded" threshold = 0)
0053     # To run PFA1' + vetoing with no threshold, use 2048
0054     # All other values (1, 2047) are interpreted literally as the PFA1' veto threshold 
0055     codedVetoThresholds = cms.PSet(
0056         ieta1  = cms.int32(0),
0057         ieta2  = cms.int32(0),
0058         ieta3  = cms.int32(0),
0059         ieta4  = cms.int32(0),
0060         ieta5  = cms.int32(0),
0061         ieta6  = cms.int32(0),
0062         ieta7  = cms.int32(0),
0063         ieta8  = cms.int32(0),
0064         ieta9  = cms.int32(0),
0065         ieta10 = cms.int32(0),
0066         ieta11 = cms.int32(0),
0067         ieta12 = cms.int32(0),
0068         ieta13 = cms.int32(0),
0069         ieta14 = cms.int32(0),
0070         ieta15 = cms.int32(0),
0071         ieta16 = cms.int32(0),
0072         ieta17 = cms.int32(0),
0073         ieta18 = cms.int32(0),
0074         ieta19 = cms.int32(0),
0075         ieta20 = cms.int32(0),
0076         ieta21 = cms.int32(0),
0077         ieta22 = cms.int32(0),
0078         ieta23 = cms.int32(0),
0079         ieta24 = cms.int32(0),
0080         ieta25 = cms.int32(0),
0081         ieta26 = cms.int32(0),
0082         ieta27 = cms.int32(0),
0083         ieta28 = cms.int32(0)
0084     ),
0085 
0086     overrideDBvetoThresholdsHB = cms.bool(False),
0087     overrideDBvetoThresholdsHE = cms.bool(False),
0088     numberOfSamples = cms.int32(4),
0089     numberOfPresamples = cms.int32(2),
0090     numberOfSamplesHF = cms.int32(4),
0091     numberOfPresamplesHF = cms.int32(2),
0092     numberOfFilterPresamplesHBQIE11 = cms.int32(0),
0093     numberOfFilterPresamplesHEQIE11 = cms.int32(0),
0094     useTDCInMinBiasBits = cms.bool(False), # TDC information not used in MB fine grain bits
0095     MinSignalThreshold = cms.uint32(0), # For HF PMT veto
0096     PMTNoiseThreshold = cms.uint32(0),  # For HF PMT veto
0097     LSConfig=LSParameter,
0098 
0099     upgradeHF = cms.bool(False),
0100     upgradeHB = cms.bool(False),
0101     upgradeHE = cms.bool(False),
0102 
0103     applySaturationFix = cms.bool(False), # Apply the TP energy saturation fix for Peak Finder Algorithm only for Run3 
0104 
0105     # parameters = cms.untracked.PSet(
0106     #     FGVersionHBHE=cms.uint32(0),
0107     #     TDCMask=cms.uint64(0xFFFFFFFFFFFFFFFF),
0108     #     ADCThreshold=cms.uint32(0),
0109     #     FGThreshold=cms.uint32(12)
0110     # ),
0111 
0112     #vdouble weights = { -1, -1, 1, 1} //low lumi algo
0113     # Input digi label (_must_ be without zero-suppression!)
0114     inputLabel = cms.VInputTag(cms.InputTag('simHcalUnsuppressedDigis'),
0115                                cms.InputTag('simHcalUnsuppressedDigis')),
0116     inputUpgradeLabel = cms.VInputTag(
0117         cms.InputTag('simHcalUnsuppressedDigis:HBHEQIE11DigiCollection'),
0118         cms.InputTag('simHcalUnsuppressedDigis:HFQIE10DigiCollection')),
0119     InputTagFEDRaw = cms.InputTag("rawDataCollector"),
0120     overrideDBweightsAndFilterHB = cms.bool(False),
0121     overrideDBweightsAndFilterHE = cms.bool(False),
0122     RunZS = cms.bool(False),
0123     FrontEndFormatError = cms.bool(False), # Front End Format Error, for real data only
0124     PeakFinderAlgorithm = cms.int32(2),
0125 
0126     tpScales = tpScales,
0127 )
0128 
0129 from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
0130 run2_HE_2017.toModify(simHcalTriggerPrimitiveDigis, upgradeHE=True)
0131 
0132 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
0133 run2_HF_2017.toModify(simHcalTriggerPrimitiveDigis,
0134                       upgradeHF=True,
0135                       numberOfSamplesHF = 2,
0136                       numberOfPresamplesHF = 1
0137 )
0138 
0139 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
0140 run3_HB.toModify(simHcalTriggerPrimitiveDigis, upgradeHB=True)
0141 
0142 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0143 run3_common.toModify(simHcalTriggerPrimitiveDigis, applySaturationFix=True)