Exemplo n.º 1
0
    def setup(self):
        print 'Initializing InDetJobPhysValProperties with InDetFlags.'
        # THIS METHOD MUST BE THE FIRST TO BE CALLED. DO NOT MOVE IT OR ADD THINGS IN FRONT
        self.setupDefaults()

        # for backward compatibility check whether DBM has been added already
        from InDetRecExample.InDetJobProperties import InDetFlags
        if hasattr(InDetFlags, 'doDBM') and not InDetFlags.doDBM():
            self.checkThenSet(self.doValidateDBMTracks, False)
        print self
Exemplo n.º 2
0
 from xAODTrackingCnv.xAODTrackingCnvConf import xAODMaker__TrackParticleCnvAlg 
 if not InDetFlags.doDBMstandalone(): 
     xAODTrackParticleCnvAlg = xAODMaker__TrackParticleCnvAlg(InDetKeys.xAODTrackParticleContainer()) 
     xAODTrackParticleCnvAlg.xAODContainerName = InDetKeys.xAODTrackParticleContainer() 
     xAODTrackParticleCnvAlg.xAODTrackParticlesFromTracksContainerName = InDetKeys.xAODTrackParticleContainer() 
     xAODTrackParticleCnvAlg.TrackContainerName = InputTrackCollection 
     xAODTrackParticleCnvAlg.TrackParticleCreator = InDetxAODParticleCreatorTool 
     xAODTrackParticleCnvAlg.AODContainerName = InDetKeys.TrackParticles() 
     xAODTrackParticleCnvAlg.AODTruthContainerName = InDetKeys.TrackParticlesTruth() 
     xAODTrackParticleCnvAlg.ConvertTrackParticles = doConversion 
     xAODTrackParticleCnvAlg.ConvertTracks = doCreation 
     xAODTrackParticleCnvAlg.AddTruthLink = InDetFlags.doTruth() 
     xAODTrackParticleCnvAlg.TrackTruthContainerName = InputTrackCollectionTruth
     xAODTrackParticleCnvAlg.PrintIDSummaryInfo = True 
     topSequence += xAODTrackParticleCnvAlg 
 if InDetFlags.doDBMstandalone() or InDetFlags.doDBM(): 
     xAODDBMTrackParticleCnvAlg = xAODMaker__TrackParticleCnvAlg(InDetKeys.xAODDBMTrackParticleContainer()) 
     xAODDBMTrackParticleCnvAlg.xAODContainerName = InDetKeys.xAODDBMTrackParticleContainer() 
     xAODDBMTrackParticleCnvAlg.xAODTrackParticlesFromTracksContainerName = InDetKeys.xAODDBMTrackParticleContainer() 
     xAODDBMTrackParticleCnvAlg.TrackContainerName = InDetKeys.DBMTracks() 
     xAODDBMTrackParticleCnvAlg.TrackTruthContainerName = InDetKeys.DBMDetailedTracksTruth() 
     xAODDBMTrackParticleCnvAlg.TrackParticleCreator = InDetxAODParticleCreatorTool 
     xAODDBMTrackParticleCnvAlg.AODContainerName = InDetKeys.TrackParticles() 
     xAODDBMTrackParticleCnvAlg.AODTruthContainerName = InDetKeys.TrackParticlesTruth() 
     xAODDBMTrackParticleCnvAlg.ConvertTrackParticles = False 
     xAODDBMTrackParticleCnvAlg.ConvertTracks = True 
     xAODDBMTrackParticleCnvAlg.AddTruthLink = InDetFlags.doTruth() 
     xAODDBMTrackParticleCnvAlg.TrackTruthContainerName = InDetKeys.DBMTracksTruth() 
     xAODDBMTrackParticleCnvAlg.PrintIDSummaryInfo = True 
     #xAODDBMTrackParticleCnvAlg.OutputLevel = VERBOSE 
     topSequence += xAODDBMTrackParticleCnvAlg 
Exemplo n.º 3
0
                                 InputTrackCollectionTruth,
                                 InDetKeys.xAODTrackParticleContainer(),
                                 topSequence)
            from InDetPhysValMonitoring.InDetPhysValJobProperties import InDetPhysValFlags
            from InDetPhysValMonitoring.ConfigUtils import extractCollectionPrefix
            for col in InDetPhysValFlags.validateExtraTrackCollections():
                prefix = extractCollectionPrefix(col)
                createTrackParticles(col, "", prefix + "TrackParticles",
                                     topSequence)
        if doConversion:
            convertTrackParticles(
                getRecTrackParticleNameIfInFile(InDetKeys.TrackParticles()),
                InDetKeys.TrackParticlesTruth(),
                InDetKeys.xAODTrackParticleContainer(), topSequence)

    if (InDetFlags.doDBMstandalone() or InDetFlags.doDBM()) and doCreation:
        # or instead of InDetKeys.DBMTracksTruth()  rather InDetKeys.DBMDetailedTracksTruth() ?
        createTrackParticles(InDetKeys.xAODDBMTrackParticleContainer(),
                             InDetKeys.DBMTracksTruth(),
                             InDetKeys.xAODDBMTrackParticleContainer(),
                             topSequence)

if not InDetFlags.doVertexFinding():
    if (not InDetFlags.doDBMstandalone() and not IsInInputFile(
            'xAOD::VertexContainer', InDetKeys.xAODVertexContainer())
            and IsInInputFile('VxContainer', InDetKeys.PrimaryVertices())):
        if len(getRecVertexNameIfInFile(InDetKeys.PrimaryVertices())) > 0:
            from xAODTrackingCnv.xAODTrackingCnvConf import xAODMaker__VertexCnvAlg
            xAODVertexCnvAlg = xAODMaker__VertexCnvAlg("VertexCnvAlg")
            xAODVertexCnvAlg.xAODContainerName = InDetKeys.xAODVertexContainer(
            )
     xAODTrackParticleCnvAlg.xAODContainerName = InDetKeys.xAODTrackParticleContainer(
     )
     xAODTrackParticleCnvAlg.xAODTrackParticlesFromTracksContainerName = InDetKeys.xAODTrackParticleContainer(
     )
     xAODTrackParticleCnvAlg.TrackContainerName = InputTrackCollection
     xAODTrackParticleCnvAlg.TrackParticleCreator = InDetxAODParticleCreatorTool
     xAODTrackParticleCnvAlg.AODContainerName = InDetKeys.TrackParticles()
     xAODTrackParticleCnvAlg.AODTruthContainerName = InDetKeys.TrackParticlesTruth(
     )
     xAODTrackParticleCnvAlg.ConvertTrackParticles = doConversion
     xAODTrackParticleCnvAlg.ConvertTracks = doCreation
     xAODTrackParticleCnvAlg.AddTruthLink = InDetFlags.doTruth()
     xAODTrackParticleCnvAlg.TrackTruthContainerName = InputTrackCollectionTruth
     xAODTrackParticleCnvAlg.PrintIDSummaryInfo = True
     topSequence += xAODTrackParticleCnvAlg
 if InDetFlags.doDBMstandalone() or InDetFlags.doDBM():
     xAODDBMTrackParticleCnvAlg = xAODMaker__TrackParticleCnvAlg(
         InDetKeys.xAODDBMTrackParticleContainer())
     xAODDBMTrackParticleCnvAlg.xAODContainerName = InDetKeys.xAODDBMTrackParticleContainer(
     )
     xAODDBMTrackParticleCnvAlg.xAODTrackParticlesFromTracksContainerName = InDetKeys.xAODDBMTrackParticleContainer(
     )
     xAODDBMTrackParticleCnvAlg.TrackContainerName = InDetKeys.DBMTracks()
     xAODDBMTrackParticleCnvAlg.TrackTruthContainerName = InDetKeys.DBMDetailedTracksTruth(
     )
     xAODDBMTrackParticleCnvAlg.TrackParticleCreator = InDetxAODParticleCreatorTool
     xAODDBMTrackParticleCnvAlg.AODContainerName = InDetKeys.TrackParticles(
     )
     xAODDBMTrackParticleCnvAlg.AODTruthContainerName = InDetKeys.TrackParticlesTruth(
     )
     xAODDBMTrackParticleCnvAlg.ConvertTrackParticles = False