File indexing completed on 2024-04-06 12:26:27
0001 import FWCore.ParameterSet.Config as cms
0002
0003 def ClusterizerTest(label, params, detunitlist) :
0004 return cms.PSet(
0005 Label = cms.string(label),
0006 ClusterizerParameters = params,
0007 Tests = cms.VPSet() + detunitlist
0008 )
0009
0010 def DetUnit(label, digis, clusters, invalid=False) :
0011 return cms.PSet(
0012 Label = cms.string(label),
0013 Digis = cms.VPSet() + digis,
0014 Clusters = cms.VPSet() + clusters,
0015 InvalidCharge = cms.bool(invalid))
0016
0017 def digi(strip, adc, noise, gain, quality) :
0018 return cms.PSet( Strip = cms.uint32(strip),
0019 ADC = cms.uint32(adc),
0020 Noise = cms.double(noise),
0021 Gain = cms.double(gain),
0022 Quality = cms.bool(quality) )
0023
0024 def cluster(firststrip, amplitudes) :
0025 return cms.PSet( FirstStrip = cms.uint32(firststrip),
0026 Amplitudes = cms.vuint32() + amplitudes )
0027
0028 noise1 = 1;
0029 gain1 = 1;
0030 good = True;
0031 bad = False;
0032 Invalid = True;