def DefaultDecoderToVeloClusters(
    Name                     = 'DecodeVeloRawBufferToVeloClusters',
    RawEventLocations        = ['Velo/RawEvent',
                                'Other/RawEvent',
                                'DAQ/RawEvent'],
    VeloClusterLocation      ='Raw/Velo/Clusters',
    DecodeToVeloClusters     = True,
    DecodeToVeloLiteClusters = False
    ):
    
    decoder = DecodeVeloRawBuffer( Name )
    
    decoder.RawEventLocations        = RawEventLocations
    decoder.VeloClusterLocation      = VeloClusterLocation
    decoder.DecodeToVeloClusters     = DecodeToVeloClusters
    decoder.DecodeToVeloLiteClusters = DecodeToVeloLiteClusters
    
    return decoder
Esempio n. 2
0
muon_conf = {}
for b in bunch:
    muon_conf['MuonRec' + b] = MuonRec('MuonRec' + b)
    muon_conf['MuonRec' + b].RootInTES = b
    muon_conf['MuonRec' + b].Context = 'TAE'
    dondem.AlgMap['/Event/' + b +
                  '/Raw/Muon/Coords'] = muon_conf['MuonRec' + b].getFullName()

from Configurables import DecodeVeloRawBuffer
velo_conf = {}
for b in bunch:
    velo_conf['createVeloClusters' +
              b] = DecodeVeloRawBuffer('createVeloClusters' + b)
    velo_conf['createVeloClusters' + b].ForceBankVersion = 3
    velo_conf['createVeloClusters' + b].RawEventLocation = b + '/DAQ/RawEvent'
    velo_conf['createVeloClusters' +
              b].VeloClusterLocation = b + '/Raw/Velo/Clusters'
    velo_conf['createVeloClusters' + b].DecodeToVeloClusters = True
    velo_conf['createVeloClusters' + b].DecodeToVeloLiteClusters = False
    velo_conf['createVeloLiteClusters' +
              b] = DecodeVeloRawBuffer('createVeloLiteClusters' + b)
    velo_conf['createVeloLiteClusters' + b].ForceBankVersion = 3
    velo_conf['createVeloLiteClusters' +
              b].RawEventLocation = b + '/DAQ/RawEvent'
    velo_conf['createVeloLiteClusters' +
              b].VeloLiteClustersLocation = b + '/Raw/Velo/LiteClusters'
    dondem.AlgMap['/Event/' + b + '/Raw/Velo/LiteClusters'] = velo_conf[
        'createVeloLiteClusters' + b].getFullName()
    dondem.AlgMap['/Event/' + b +
                  '/Raw/Velo/Clusters'] = velo_conf['createVeloClusters' +
                                                    b].getFullName()