def test1BasicCreation( self ):
      """Test proper behavior of property creation"""
      from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer
      from AthenaCommon.JobProperties import jobproperties

      class MyProperty(JobProperty) :
          statusOn     = False     # flag is unactivated by default. 
          allowedTypes = ['bool']  # type is a bool
          StoredValue  = False   # default value is False

      class MyProperties(JobPropertyContainer):
         pass
      #create container and add property
      jobproperties.add_Container(MyProperties)
      jobproperties.MyProperties.add_JobProperty(MyProperty)
Example #2
0
    StoredValue = 'FatrasRnd'


##-----------------------------------------------------------------------------
## 2nd step
## Definition of the InDet flag container
class ISF_FatrasJobProperties(JobPropertyContainer):
    """Container for the ISF_Fatras key flags
    """
    pass


##-----------------------------------------------------------------------------
## 3rd step
## adding the container to the general top-level container
jobproperties.add_Container(ISF_FatrasJobProperties)

##-----------------------------------------------------------------------------
## 4th step
## adding the flags to the  container
jobproperties.ISF_FatrasJobProperties.add_JobProperty(OutputLevelGeneral)
jobproperties.ISF_FatrasJobProperties.add_JobProperty(OutputLevelToolsID)
jobproperties.ISF_FatrasJobProperties.add_JobProperty(OutputLevelToolsMS)
jobproperties.ISF_FatrasJobProperties.add_JobProperty(OutputLevelToolsG4)
jobproperties.ISF_FatrasJobProperties.add_JobProperty(RandomStreamName)

##-----------------------------------------------------------------------------
## 5th step
## short-cut for lazy people
## carefull: do not select FatrasJobProperties as a short name as well.
## otherwise problems with pickle
Example #3
0
__version__ = "0.0.1"
__author__ = "Karsten Koeneke <*****@*****.**>"

from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer
from AthenaCommon.JobProperties import jobproperties
from RecExConfig.RecoFunctions import AddValidItemToList, RemoveValidItemFromList


#=====================================================================
# First define container for the D2PDMaker flags
#=====================================================================
class D2PDFlags(JobPropertyContainer):
    """ The D2PDMaker flag/job property  container."""


jobproperties.add_Container(D2PDFlags)

#short-cut to get the D2PDFlags container with this one line:
#'from D2PDMaker.D2PDFlags import D2PDFlags'
#Note that name has to be different to avoid problems with pickle
D2PDFlags = jobproperties.D2PDFlags

#=====================================================================
# Now define each flag and add it to the container
#=====================================================================


#------------------------
# Input/output
#------------------------
class OutputDirectoryName(JobProperty):
Example #4
0
    allowedTypes=['str']
    StoredValue='beam2.tfs'

class ForwardTransportFlags(JobPropertyContainer):
    """ Container of all ForwardTransport flags."""

    def SetTwissFilePaths(self):
        beamEnergy       = self.beamEnergy.get_Value()
        collisionBeta    = self.collisionBeta.get_Value()
        twissFileType    = self.twissFileType.get_Value()
        twissFileVersion = self.twissFileVersion.get_Value()

        base_path = os.getenv('TwissFilesPATH') + "/" + beamEnergy + "/" + collisionBeta + "/" + twissFileType + "/" + twissFileVersion

        twiss1 = base_path + '/beam1.tfs'           
        twiss2 = base_path + '/beam2.tfs'

        self.twissFilePath1.set_Value(twiss1)
        self.twissFilePath2.set_Value(twiss2)

        return

jobproperties.add_Container(ForwardTransportFlags)

list_jobproperties=[detectorFlag,beamEnergy,collisionBeta,twissFileType,twissFileVersion,twissFilePath1,twissFilePath2]

for i in list_jobproperties:
    jobproperties.ForwardTransportFlags.add_JobProperty(i)

forwardTransportFlags = jobproperties.ForwardTransportFlags
Example #5
0
            setDefault(self.UseBlines, 'none')
            setDefault(self.UseIlines, False)
            setDefault(self.UseAsBuilt, False)
            logMuon.info("Running a reconstruction job on geant4 or a digitization job: UseAlines=%r UseBlines=%r UseIlines=%r UseAsBuilt=%r",
                         self.UseAlines(), self.UseBlines(), self.UseIlines(), self.UseAsBuilt())
        else:
            # here reconstruction or real data 
            setDefault(self.UseAlines, 'all')
            setDefault(self.UseBlines, 'all')
            setDefault(self.UseIlines, True)
            setDefault(self.UseAsBuilt, True)
            logMuon.info("Running a reconstruction job on data: UseAlines=%r UseBlines=%r UseIlines=%r UseAsBuilt=%r",
                         self.UseAlines(), self.UseBlines(), self.UseIlines(), self.UseAsBuilt())


jobproperties.add_Container(MuonAlign)
muonAlignFlags = jobproperties.MuonAlign

class UseAlines(JobProperty):
    statusOn = True
    allowedTypes = ['str']
    allowedValues=['none','all','barrel','endcaps']
    StoredValue='none' 

muonAlignFlags.add_JobProperty(UseAlines)

class UseBlines(JobProperty):
    statusOn = True
    allowedTypes = ['str']
    allowedValues=['none','all','barrel','endcaps']
    StoredValue='none' 
    """ Set and override the TrkErrorScaling tag """
    statusOn = False
    allowedTypes = ['str']
    StoredValue = "NONE"


_beamspotFlags.append(setTrkErrorScalingTag)


class setBeamposTag(BeamSpotJobProperty):
    """ Set and override the TRT alignment tag """
    statusOn = False
    allowedTypes = ['str']
    StoredValue = "NONE"


_beamspotFlags.append(setBeamposTag)


class BeamSpotJobProperties(JobPropertyContainer):
    """ Container for the BeamSpot processing jobProperties """


jobproperties.add_Container(BeamSpotJobProperties)

for flag in _beamspotFlags:
    jobproperties.BeamSpotJobProperties.add_JobProperty(flag)
del _beamspotFlags

BeamSpotFlags = jobproperties.BeamSpotJobProperties
Example #7
0
    allowedTypes  = ['int']
#    allowedValues = []
    StoredValue   = 20
    pass
#
class SuppressionFile(JobProperty):
    """Path to suppression file
    """
    statusOn      = True
    allowedTypes  = ['str']
#    allowedValues = []
    StoredValue   = 'atlas.supp'
    pass

# add the valgrind flags container to the top container 
jobproperties.add_Container(ValgrindFlags)
for i in [ doMemCheck, doCallGrind, doMassif,
           TraceChildren, NumCallers, SuppressionFile ]:
    jobproperties.ValgrindFlags.add_JobProperty(i)

## ------- [MemCheck flags and container] --------
class MemCheck(JobPropertyContainer):
    """ Container of flags for the MemCheck tool
    """
    pass
#
class ShowReachable(JobProperty):
    """ show reachable blocks in leak check?
    """
    statusOn      = True
    allowedTypes  = ['str']
Example #8
0
    allowedTypes = ['str']
    StoredValue  = 'NONE'

##-----------------------------------------------------------------------------
## 2nd step
## Definition of the InDet flag container
class ISF_jobProperties(JobPropertyContainer):
    """Container for the ISF key flags
    """
    pass


##-----------------------------------------------------------------------------
## 3rd step
## adding the container to the general top-level container
jobproperties.add_Container(ISF_jobProperties)


##-----------------------------------------------------------------------------
## 4th step
## adding flags to the jobProperties container
jobproperties.ISF_jobProperties.add_JobProperty(UseParticleGenerator)
jobproperties.ISF_jobProperties.add_JobProperty(RunVP1)
jobproperties.ISF_jobProperties.add_JobProperty(DoPerfMonStats)
jobproperties.ISF_jobProperties.add_JobProperty(DumpMcEvent)
jobproperties.ISF_jobProperties.add_JobProperty(DumpStoreGate)
jobproperties.ISF_jobProperties.add_JobProperty(RunValgrind)
jobproperties.ISF_jobProperties.add_JobProperty(ValidationMode)
jobproperties.ISF_jobProperties.add_JobProperty(VertexPositionFromFile)
jobproperties.ISF_jobProperties.add_JobProperty(DoMemoryMonitoring)
jobproperties.ISF_jobProperties.add_JobProperty(DoTimeMonitoring)
Example #9
0
class readSeedsFromFile(JobProperty):
    """ Should seeds for the random number service be read in from a file?
    """
    statusOn = True
    allowedTypes = ['bool']
    StoredValue = False

class RandomSeedInputFile(JobProperty):
    """ Name of file containing the seeds for the Random Number Service to use
    """
    statusOn = True
    allowedTypes = ['str']
    StoredValue = 'AtRanluxGenSvc.in'

## Definition and registration of the RandomFlags container
class RandomFlags(JobPropertyContainer):
    """ The global RandomFlags flag/job property container.
    """
## Register and populate the RandomFlags container
jobproperties.add_Container(RandomFlags)
## We want always the following flags in the container
list_jobproperties = [RandomSvc,RandomSeedList,RandomSeedOffset,readSeedsFromFile,\
                    RandomSeedInputFile]

for i in list_jobproperties:
    jobproperties.RandomFlags.add_JobProperty(i)

#=======================================================================
## Short-cut alias (standard naming)
randomFlags = jobproperties.RandomFlags
Example #10
0
    """Container for the InDet flags
    """

    def lockAllExceptAlias(self):
        # Lock everything except AliasToTracks (do it this way to avoid a warning when unlocking AliasToTracks)
        print "InDetKeys: Locking all keys except aliases"
        # InDetKeys.lock_JobProperties()
        # InDetKeys.AliasToTracks.unlock()
        [k.lock() for k in InDetKeys.__dict__.values() if hasattr(k,'is_locked') and not isinstance(k,type(InDetKeys.AliasToTracks))]
        return 
    pass

##-----------------------------------------------------------------------------
## 3rd step
## adding the container to the general top-level container
jobproperties.add_Container(InDetContainerKeys)

##-----------------------------------------------------------------------------
## 4th step
## adding ID flags to the InDetContainerKeys container
jobproperties.InDetContainerKeys.add_JobProperty(PixelManager)
jobproperties.InDetContainerKeys.add_JobProperty(SCT_Manager)
jobproperties.InDetContainerKeys.add_JobProperty(TRT_Manager)
jobproperties.InDetContainerKeys.add_JobProperty(PixelRDOs)
jobproperties.InDetContainerKeys.add_JobProperty(SCT_RDOs)
jobproperties.InDetContainerKeys.add_JobProperty(TRT_RDOs)
jobproperties.InDetContainerKeys.add_JobProperty(BCM_RDOs)
jobproperties.InDetContainerKeys.add_JobProperty(BCM_CompactDOs)
jobproperties.InDetContainerKeys.add_JobProperty(PixelByteStreamErrs)
jobproperties.InDetContainerKeys.add_JobProperty(SCT_ByteStreamErrs)
jobproperties.InDetContainerKeys.add_JobProperty(TRT_ByteStreamErrs)
Example #11
0
class timeJetRecTool(JobProperty):
  """ Timing flag for JetRecTool: 0 for no timing, 1 for some, 2 for detailed
  """
  statusOn     = True     
  allowedTypes = ['int']  # type
  StoredValue  = 0        # default value

class jetAODList(JobProperty):
  """ The collections to be saved in (x)AOD files
  """
  statusOn = True
  allowedTypes = ['list']  
  StoredValue  = []   

jobproperties.add_Container(JetRecFlags)

jobproperties.JetRecFlags.add_JobProperty(Enabled)
jobproperties.JetRecFlags.add_JobProperty(debug)
jobproperties.JetRecFlags.add_JobProperty(useTruth)
jobproperties.JetRecFlags.add_JobProperty(truthFlavorTags)
jobproperties.JetRecFlags.add_JobProperty(useTopo)
jobproperties.JetRecFlags.add_JobProperty(useTracks)
jobproperties.JetRecFlags.add_JobProperty(useInDetTrackSelection)
jobproperties.JetRecFlags.add_JobProperty(useMuonSegments)
jobproperties.JetRecFlags.add_JobProperty(usePflow)
jobproperties.JetRecFlags.add_JobProperty(eventShapeTools)
jobproperties.JetRecFlags.add_JobProperty(jetAODList)
jobproperties.JetRecFlags.add_JobProperty(useCells)
jobproperties.JetRecFlags.add_JobProperty(useCaloQualityTool)
jobproperties.JetRecFlags.add_JobProperty(skipTools)
Example #12
0
from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer
from AthenaCommon.JobProperties import jobproperties

class RPVDispVrtFlags(JobPropertyContainer):
    """ RPV/LL DV flag/job property  container."""
jobproperties.add_Container(RPVDispVrtFlags)

RPVDVFlags=jobproperties.RPVDispVrtFlags



class InputFileName(JobProperty):
    statusOn = True
    allowedTypes = ["str"]
    StoredValue="dummy.root"
    
RPVDVFlags.add_JobProperty(InputFileName)

class OutputFileName(JobProperty):
    statusOn = True
    allowedTypes = ["str"]
    StoredValue="DispVtxD3PD.root"

RPVDVFlags.add_JobProperty(OutputFileName)

class DoTRTPixCut(JobProperty):
    statusOn = True
    allowedTypes = ["bool"]
    StoredValue=True
RPVDVFlags.add_JobProperty(DoTRTPixCut)    
Example #13
0
from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer
from AthenaCommon.JobProperties import jobproperties
import AthenaCommon.SystemOfUnits as Units


class HSG2(JobPropertyContainer):
          """ HSG2 related flags """
          
jobproperties.add_Container(HSG2)


class eQual(JobProperty):
    """ Specify electron quality
    """ 
    statusOn=True
    allowedTypes=['str']
    allowedValues=['any','Loose','RobustLoose','Medium','Tight']
    StoredValue='any'

jobproperties.HSG2.add_JobProperty(eQual)

class diLeptonEQual(JobProperty):
    """ Specify electron quality
    """ 
    statusOn=True
    allowedTypes=['list']
    StoredValue=['any','any']

jobproperties.HSG2.add_JobProperty(diLeptonEQual)

class diLeptonMixQual(JobProperty):
Example #14
0
from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer
from AthenaCommon.JobProperties import jobproperties

class DFJetMetFlags(JobPropertyContainer):
  """ The DF Jet fix flag property container
  """
  pass

class doJetTrackMomentFix(JobProperty):
  """ Toggle jet track moment fixes
  """
  statusOn     = True     
  allowedTypes = ['bool']  # type
  StoredValue  = True      # default value

jobproperties.add_Container(DFJetMetFlags)
jobproperties.DFJetMetFlags.add_JobProperty(doJetTrackMomentFix)
dfjmFlags = jobproperties.DFJetMetFlags
class WriteTruthVertexIDs(JobProperty):
    """ Switch to save truth vertices
    """
    statusOn = True
    allowedTypes = ['bool']
    StoredValue = False


class TruthD3PDMakerFlags(JobPropertyContainer):
    """ The Truth D3PD Flags container
    """


# add the flag container to the top container
jobproperties.add_Container(TruthD3PDMakerFlags)

# and now add the properties

jobproperties.TruthD3PDMakerFlags.add_JobProperty(GenParticleAssocLabel)
jobproperties.TruthD3PDMakerFlags.add_JobProperty(GenVertexAssocLabel)
jobproperties.TruthD3PDMakerFlags.add_JobProperty(GenEventAssocLabel)
jobproperties.TruthD3PDMakerFlags.add_JobProperty(TruthTrackAssocLabel)
jobproperties.TruthD3PDMakerFlags.add_JobProperty(GenVertexOutPartAssoc)
jobproperties.TruthD3PDMakerFlags.add_JobProperty(GenVertexInPartAssoc)
jobproperties.TruthD3PDMakerFlags.add_JobProperty(GenParticleMother)
jobproperties.TruthD3PDMakerFlags.add_JobProperty(GenParticleChild)
jobproperties.TruthD3PDMakerFlags.add_JobProperty(TruthD3PDOutputFileName)
jobproperties.TruthD3PDMakerFlags.add_JobProperty(WriteTruthVertices)
jobproperties.TruthD3PDMakerFlags.add_JobProperty(WriteTruthVertexIDs)
Example #16
0
    StoredValue=True
list+=[enableLumiAccess]

##-----------------------------------------------------------------------------
## 2nd step
## Definition of the DQMon flag container
class DQMonFlagsCont(JobPropertyContainer):
    """Container for Data Quality Monitoring flags
    """
    def set_All_Off(self):
        for j in list:
            if j.__name__.startswith('do') and j.__name__.endswith('Mon'):
                j.StoredValue = False
    pass

##-----------------------------------------------------------------------------
## 3rd step
## adding the container to the general top-level container
jobproperties.add_Container(DQMonFlagsCont)

##-----------------------------------------------------------------------------
## 4th step
## adding properties to DQMonFlags container
for j in list:
   jobproperties.DQMonFlagsCont.add_JobProperty(j)

##-----------------------------------------------------------------------------
## 5th step
## short-cut 
DQMonFlags = jobproperties.DQMonFlagsCont
Example #17
0
class HIGlobalItemList(JobProperty):
    """ List of items to be written to AOD, initially empty but filled based on configuration
    """
    statusOn     = True
    allowedTypes = ['list']
    StoredValue  = []

    
# Defines the container for heavy ion reco flags  
class HIGlobalFlags(JobPropertyContainer):
    """ The global heavy ion reconstruction flag/job property container.
    """
    pass

# add the flags container to the top container 
jobproperties.add_Container(HIGlobalFlags)

# We want always the following flags in the container  
list_jobproperties = [
    doHIGlobalVars,
    doHIFlow,
    doHICentrality,
    doHITRT,
    doHIPixelTracklet,
    doHIGlobalNSiCluster,
    NumFlowHarmonics,
    HIFlowContainerPrefix,
    EventShapeKey,
    DoSummary,
    EventShapeSummaryKey,
    SummarySubCalos,
Example #18
0
    StoredValue = False

class EventOrdersFile(JobProperty):
    """ Name of the file for storing/reading event orders (Shared Queue)
    """
    statusOn = True
    allowedTypes = ['str']
    StoredValue = 'athenamp_eventorders.txt'

# Defines the container for the performance monitoring flags  
class AthenaMPFlags(JobPropertyContainer):
    """ The global AthenaMP job property container.
    """
    pass

jobproperties.add_Container(AthenaMPFlags)


# We want the following flags in the container  
list_jobproperties = [
    WorkerTopDir,
    OutputReportFile,
    AffinityCPUList,
    Strategy,
    CollectSubprocessLogs,
    Version,
    PollingInterval,
    EventsBeforeFork,
    EventRangeChannel,
    TokenExtractorChannel,
    MemSamplingInterval,
Example #19
0
__doc__ = """Here, all necessary job flags for the RPV/LL SUSY  DESD are defined."""

__version__ = "0.0.1"

from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer
from AthenaCommon.JobProperties import jobproperties

import AthenaCommon.SystemOfUnits as Units

#=====================================================================
# First define container for the PrimaryDPDMaker flags  
#=====================================================================
class PrimaryDPDFlags_RPVLLStream(JobPropertyContainer):
    """ The Primary RPV/LL DPD flag/job property  container."""

jobproperties.add_Container(PrimaryDPDFlags_RPVLLStream)

primRPVLLDESDM=jobproperties.PrimaryDPDFlags_RPVLLStream

from LongLivedParticleDPDMaker import DiLepFlags
from LongLivedParticleDPDMaker import DVFlags
from LongLivedParticleDPDMaker import KinkedTrackFlags
from LongLivedParticleDPDMaker import EmergingFlags
from LongLivedParticleDPDMaker import StoppedFlags
from LongLivedParticleDPDMaker import VH_DVFlags
from LongLivedParticleDPDMaker import QuirksFlags
from LongLivedParticleDPDMaker import HipsFlags
from LongLivedParticleDPDMaker import HNLFlags
from LongLivedParticleDPDMaker import HVFlags
from LongLivedParticleDPDMaker import SmpCaloIdFlags
from LongLivedParticleDPDMaker import SmpMsFlags
Example #20
0
      1. Reduced: This will disable the building of jet containers other than:
        AntiKt4EMTopoJets, AntiKt4EMPFlowJets, AntiKt4LCTopoJets
      2. Full: This corresponds to the r21 default prior to AOD size reduction:
        AntiKt10LCTopoJets, AntiKt2PV0TrackJets, AntiKt4PV0TrackJets,
        AntiKt4TruthJets, AntiKt4TruthWZJets, AntiKt10TruthJets, AntiKt10TruthWZJets
      3. Validation: This adds to the Full content the building of jet containers:
        AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets
        with substructure moments included
  """
  statusOn = True
  allowedTypes = ['int']
  StoredValue = JetContentDetail.Reduced



jobproperties.add_Container(JetRecFlags)

jobproperties.JetRecFlags.add_JobProperty(Enabled)
jobproperties.JetRecFlags.add_JobProperty(debug)
jobproperties.JetRecFlags.add_JobProperty(useTruth)
jobproperties.JetRecFlags.add_JobProperty(truthFlavorTags)
jobproperties.JetRecFlags.add_JobProperty(useTopo)
jobproperties.JetRecFlags.add_JobProperty(useTracks)
jobproperties.JetRecFlags.add_JobProperty(useVertices)
jobproperties.JetRecFlags.add_JobProperty(useInDetTrackSelection)
jobproperties.JetRecFlags.add_JobProperty(useMuonSegments)
jobproperties.JetRecFlags.add_JobProperty(usePFlow)
jobproperties.JetRecFlags.add_JobProperty(eventShapeTools)
jobproperties.JetRecFlags.add_JobProperty(jetAODList)
jobproperties.JetRecFlags.add_JobProperty(useCells)
jobproperties.JetRecFlags.add_JobProperty(useCaloQualityTool)
Example #21
0
         # will be acted upon over the course of theApp.setup()

        return super( RuntimeStrictness, self )._do_action( *args, **kwds )

##-----------------------------------------------------------------------------
## 2nd step
## Definition of the AthenaCommon flag container
class AthenaCommonFlags(JobPropertyContainer):
    """Container for the common flags
    """
    pass

##-----------------------------------------------------------------------------
## 3rd step
## adding the container to the general top-level container
jobproperties.add_Container(AthenaCommonFlags)

##-----------------------------------------------------------------------------
## 4th step
## adding athena common flags to the AthenaCommonFlags container
jobproperties.AthenaCommonFlags.add_JobProperty(EvtMax)
jobproperties.AthenaCommonFlags.add_JobProperty(SkipEvents)
jobproperties.AthenaCommonFlags.add_JobProperty(FilesInput )
jobproperties.AthenaCommonFlags.add_JobProperty(PoolEvgenInput )
jobproperties.AthenaCommonFlags.add_JobProperty(PoolEvgenOutput)
jobproperties.AthenaCommonFlags.add_JobProperty(PoolHitsInput )
jobproperties.AthenaCommonFlags.add_JobProperty(PoolHitsOutput)
jobproperties.AthenaCommonFlags.add_JobProperty(PoolRDOInput )
jobproperties.AthenaCommonFlags.add_JobProperty(PoolRDOOutput)
jobproperties.AthenaCommonFlags.add_JobProperty(BSRDOInput )
jobproperties.AthenaCommonFlags.add_JobProperty(BSRDOOutput)
Example #22
0
## @author Mark Tibbetts <*****@*****.**>
## @brief Commond flags for backgroundD3PD
#
"""Common flags for D3PD making.
"""

from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer
from AthenaCommon.JobProperties import jobproperties


class BackgroundD3PDMakerFlags(JobPropertyContainer):
    """Common flags for BackgroundD3PD making.
    """


jobproperties.add_Container(BackgroundD3PDMakerFlags)


class AddTriggerBits(JobProperty):
    """ add trigger bits"""
    statusOn = True
    allowedTypes = ['bool']
    StoredValue = True


jobproperties.BackgroundD3PDMakerFlags.add_JobProperty(AddTriggerBits)


class doMet(JobProperty):
    """If true fill MET; true by default, may cause problems for cosmics"""
    statusOn = True
#=======================================================================
# imports
#=======================================================================
from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer
from AthenaCommon.JobProperties import jobproperties


class EtSeedCut(JobProperty):
    """ Et cut on input EMtopo to define fixed clusters around this seed
    """
    statusOn = True
    allowedTypes = ['float']
    StoredValue = -1.


# Defines a sub-container for the algorithm switches
class CaloRecTopoEM35Flags(JobPropertyContainer):
    """ Calo information """


# add the Calo flags container to the top container
jobproperties.add_Container(CaloRecTopoEM35Flags)

# I want always the following flags in the Rec container
_list_Calo = [EtSeedCut]
for j in _list_Calo:
    jobproperties.CaloRecTopoEM35Flags.add_JobProperty(j)
del _list_Calo

#=======================================================================
Example #24
0
    allowedTypes = ['list']
    StoredValue = [
        951255040,  # EMBC FT 22 Slot 7
        953810944,  # EMBC FT 27 Slot 5
        954105856,  # EMBC FT 27 Slot 14
        961052672,  # EMBA FT 9 Slot 2
        961839104,  # EMBA FT 10 Slot 10
        961970176,  # EMBA FT 10 Slot 14
        972980224,  # EMBA FT 31 Slot 14
        961445888,  # EMBA FT 9 Slot 14
        944144384  # EMBC FT 8 Slot 14 - added June 20 2017
    ]
    pass


class LArNoisyROFlags(JobPropertyContainer):
    pass


jobproperties.add_Container(LArNoisyROFlags)

jobproperties.LArNoisyROFlags.add_JobProperty(CellQualityCut)
jobproperties.LArNoisyROFlags.add_JobProperty(BadChanPerFEB)
jobproperties.LArNoisyROFlags.add_JobProperty(BadFEBCut)
jobproperties.LArNoisyROFlags.add_JobProperty(MNBLooseCut)
jobproperties.LArNoisyROFlags.add_JobProperty(MNBTightCut)
jobproperties.LArNoisyROFlags.add_JobProperty(MNBTight_PsVetoCut)
jobproperties.LArNoisyROFlags.add_JobProperty(KnownMNBFEBs)

larNoisyROFlags = jobproperties.LArNoisyROFlags
Example #25
0
##-----------------------------------------------------------------------------
## 2nd step
## Definition of the DQMon flag container
class DQMonFlagsCont(JobPropertyContainer):
    """Container for Data Quality Monitoring flags
    """
    def set_All_Off(self):
        for j in list:
            if j.__name__.startswith('do') and j.__name__.endswith('Mon'):
                j.StoredValue = False

    pass


##-----------------------------------------------------------------------------
## 3rd step
## adding the container to the general top-level container
jobproperties.add_Container(DQMonFlagsCont)

##-----------------------------------------------------------------------------
## 4th step
## adding properties to DQMonFlags container
for j in list:
    jobproperties.DQMonFlagsCont.add_JobProperty(j)

##-----------------------------------------------------------------------------
## 5th step
## short-cut
DQMonFlags = jobproperties.DQMonFlagsCont
Example #26
0
        print "MuonCombinedKeys: Locking all keys except one thing"
        # MuonCombinedKeys.lock_JobProperties()
        [
            k.lock() for k in MuonCombinedKeys.__dict__.values()
            if hasattr(k, 'is_locked')
            and not isinstance(k, type(MuonCombinedKeys.OneThing))
        ]
        return

    pass


##-----------------------------------------------------------------------------
## 3rd step
## adding the container to the general top-level container
jobproperties.add_Container(MuonCombinedContainerKeys)

##-----------------------------------------------------------------------------
## 4th step
## adding ID flags to the MuonCombinedContainerKeys container
jobproperties.MuonCombinedContainerKeys.add_JobProperty(InDetTrackParticles)
jobproperties.MuonCombinedContainerKeys.add_JobProperty(
    ExtrapolatedInDetParticles)
jobproperties.MuonCombinedContainerKeys.add_JobProperty(SpectrometerTracks)
jobproperties.MuonCombinedContainerKeys.add_JobProperty(ExtrapolatedMSTracks)
jobproperties.MuonCombinedContainerKeys.add_JobProperty(CombinedFitTracks)
jobproperties.MuonCombinedContainerKeys.add_JobProperty(
    RefittedExtrapolatedMSTracks)
jobproperties.MuonCombinedContainerKeys.add_JobProperty(StatCombinedTracks)
jobproperties.MuonCombinedContainerKeys.add_JobProperty(SpectrometerParticles)
jobproperties.MuonCombinedContainerKeys.add_JobProperty(
Example #27
0
class EventOrdersFile(JobProperty):
    """ Name of the file for storing/reading event orders (Shared Queue)
    """
    statusOn = True
    allowedTypes = ['str']
    StoredValue = 'athenamp_eventorders.txt'


# Defines the container for the performance monitoring flags
class AthenaMPFlags(JobPropertyContainer):
    """ The global AthenaMP job property container.
    """
    pass


jobproperties.add_Container(AthenaMPFlags)

# We want the following flags in the container
list_jobproperties = [
    WorkerTopDir,
    OutputReportFile,
    AffinityCPUList,
    Strategy,
    CollectSubprocessLogs,
    Version,
    PollingInterval,
    EventsBeforeFork,
    EventRangeChannel,
    TokenExtractorChannel,
    MemSamplingInterval,
    EvtRangeScattererCaching,
Example #28
0
class clusterCellGetterName(JobProperty):
    """Name of the getter used to build cells used for cluster reconstruction.
The name should include the full module name."""
    statusOn = True
    allowedTypes = ['str']
    StoredValue = 'CaloRec.CaloCellGetter.CaloCellGetter'


# Defines a sub-container for the algorithm switches
class CaloRecFlags(JobPropertyContainer):
    """ Calo information """


# add the Calo flags container to the top container
jobproperties.add_Container(CaloRecFlags)

# I want always the following flags in the Rec container
_list_Calo = [
    Enabled, doCaloTopoCluster, doEmCluster, doCaloEMTopoCluster,
    emTopoClusterThreshold, doCaloCluster, doCaloTopoTower, doTileMuId,
    doTileCellCorrection, doLArAffectedRegion, doLArAutoConfiguration,
    doLArNoisyRO, doEMDigits, doFillMBTSBackgroundBit, doLArNoiseBurstVeto,
    clusterCellGetterName, doCaloTowerFromCells, doCaloTowerFromCluster
]
for j in _list_Calo:
    jobproperties.CaloRecFlags.add_JobProperty(j)
del _list_Calo

#=======================================================================
Example #29
0
#

from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer
from AthenaCommon.JobProperties import jobproperties
"""Define flags and configuration settings used when making D3PDs
from production transforms.
"""

listAllKnownD3PD = []


class D3PDProdFlags(JobPropertyContainer):
    """ The D3PDProdFlags flag/job property  container."""


jobproperties.add_Container(D3PDProdFlags)


class OldD3PDProdFlags(JobPropertyContainer):
    """ The old style flag/job property container."""


jobproperties.add_Container(OldD3PDProdFlags)

prodFlags = jobproperties.D3PDProdFlags
oldProdFlags = jobproperties.OldD3PDProdFlags


def _importFlagsFromModule(mod, catchFail=False):
    """Given the full name of a module MOD, import it.
Then look for objects in the module with names like Write*D3PD that
Example #30
0
The subdetector name is normally `CALO'.  However, it can be set to the
name of a local sqlite file to force reading COOL information from there."""
    statusOn = True
    allowedTypes = 'dict'
    StoredValue = {None: "CALO"}


class CaloClusterCorrectionFlags(JobPropertyContainer):
    """ Flags for cluster corrections.
    """
    pass


# add the 'Configured' flags container to the top container
jobproperties.add_Container(CaloClusterCorrectionFlags)

for i in [
        DoSlidingWindowCellWeights,
        DoSlidingWindowRemoveDuplicates,
        DoSlidingWindowRemoveBad,
        DefaultSource,
        CaloSwWhichCorrection,
        CaloTopoEMWhichCorrection,
        CaloSwCorrectionArgs,
        CaloTopoEMCorrectionArgs,
        CaloSwGeneration,
        CaloTopoEMGeneration,
        DBSubdetName,
]:
    jobproperties.CaloClusterCorrectionFlags.add_JobProperty(i)
Example #31
0

list += [doJpsimumuMon]


##-----------------------------------------------------------------------------
## 2nd step
## Definition of the MuonDQAProperFlags container
class MuonDQAFlagsCont(JobPropertyContainer):
    """Container for Muon Data Quality Monitoring flags
    """
    pass


##-----------------------------------------------------------------------------
## 3rd step
## adding the container to the general top-level container
jobproperties.add_Container(MuonDQAFlagsCont)

##-----------------------------------------------------------------------------
## 4th step
## adding properties to DQMonFlags container
for j in list:
    jobproperties.MuonDQAFlagsCont.add_JobProperty(j)

##-----------------------------------------------------------------------------
## 5th step
## short-cut
MuonDQADetFlags = jobproperties.MuonDQAFlagsCont
#MuonDQAProperFlags = jobproperties.MuonDQAFlagsCont
Example #32
0
#import PyUtils.RootUtils as ru
#ROOT = ru.import_root()
#import cppyy
#cppyy.loadDictionary('egammaEnumsDict')
#from ROOT import egammaPID
#from ROOT import egammaParameters


#=====================================================================
# First define container for the PrimaryDPDMaker flags
#=====================================================================
class PrimaryDPDFlags(JobPropertyContainer):
    """ The PrimaryDPDMaker flag/job property  container."""


jobproperties.add_Container(PrimaryDPDFlags)

#short-cut to get the PrimaryDPDFlags container with this one line:
#'from PrimaryDPDMaker.PrimaryDPDFlags import primDPD'
#Note that name has to be different to avoid problems with pickle
primDPD = jobproperties.PrimaryDPDFlags
listRAWtoDPD = []
listESDtoDPD = []
listAODtoDPD = []
listDPDtoTAG = []
listAllKnownDPD = []  #<---this one is filled at the very bottom

#=====================================================================
# Now define each flag and add it to the container
#=====================================================================
Example #33
0

##-----------------------------------------------------------------------------
## 2nd step
## Definition of the InDet flag container
class FastChain_jobProperties(JobPropertyContainer):
    """Container for the FastChain key flags
    """
    pass


##-----------------------------------------------------------------------------
## 3rd step
## adding the container to the general top-level container

jobproperties.add_Container(FastChain_jobProperties)

##-----------------------------------------------------------------------------
## 4th step
## adding flags to the jobProperties container

jobproperties.FastChain_jobProperties.add_JobProperty(FastChainBCID)
#jobproperties.FastChain_jobProperties.add_JobProperty(FastChainPUWeights)
jobproperties.FastChain_jobProperties.add_JobProperty(FastChainPUWeights_lar_em)
jobproperties.FastChain_jobProperties.add_JobProperty(FastChainPUWeights_lar_hec)
jobproperties.FastChain_jobProperties.add_JobProperty(FastChainPUWeights_lar_bapre)
jobproperties.FastChain_jobProperties.add_JobProperty(FastChainPUWeights_tile)

##-----------------------------------------------------------------------------
## 5th step
## short-cut for lazy people
Example #34
0
        if there is online pedestal difference 
    """
    statusOn = True
    allowedTypes = ['bool']
    StoredValue = True


# Defines the container for the performance monitoring flags
class TileRecFlags(JobPropertyContainer):
    """ The global Tile reconstruction flag/job property container.
    """
    pass


# add the perfmon flags container to the top container
jobproperties.add_Container(TileRecFlags)

# We want always the following flags in the container
list_jobproperties = [
    doTileFlat, doTileFit, doTileFitCool, doTileOF1, doTileOpt2, doTileQIE,
    doTileManyAmps, doTileMF, doTileOptATLAS, doTileWiener,
    TileRawChannelContainer, TileDigitsContainer, TileRunType, noiseFilter,
    calibrateEnergy, correctTime, correctTimeNI, correctAmplitude,
    AmpMinForAmpCorrection, TimeMinForAmpCorrection, TimeMaxForAmpCorrection,
    OfcFromCOOL, BestPhaseFromCOOL, readDigits, doTileOverflowFit,
    simulateTrips, zeroAmplitudeWithoutDigits, correctPedestalDifference
]

for i in list_jobproperties:
    jobproperties.TileRecFlags.add_JobProperty(i)
Example #35
0
## @brief Python module to hold common flags to configure xAOD-making jobOptions
##
""" InDetDxAODJobProperties
    Python module to hold common flags to configure ID xAOD-making jobOptions.

"""

from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer
from AthenaCommon.JobProperties import jobproperties


class InDetDxAODJobPropertyContainer(JobPropertyContainer):
    """ The jobProperty container for InDetDxAOD-making flags """


jobproperties.add_Container(InDetDxAODJobPropertyContainer)


class DumpPixelInfo(JobProperty):
    """write out pixel info """
    statusOn = True
    allowedTypes = ["bool"]
    StoredValue = True
    pass


jobproperties.InDetDxAODJobPropertyContainer.add_JobProperty(DumpPixelInfo)


class DumpSctInfo(JobProperty):
    """write out SCT info """
Example #36
0
        self.IBLLayout.unlock()
        self.GeoVersionName.unlock()
        self.GeoLayout.unlock()
        self.useDynamicAlignFolders.unlock()

    def dump(self):

        Logging.log.info("VersionName = " + self.GeoVersionName())
        Logging.log.info("Layout      = " + self.GeoLayout())
        Logging.log.info("DBM         = " + self.isDBM())

        Logging.log.info("SLHC flag : " + self.isSLHC())
        Logging.log.info("IBL flag   : " + self.isIBL())
        Logging.log.info("IBL layout : " + self.IBLLayout())
        Logging.log.info("Dynamic alignment : " +
                         self.useDynamicAlignFolders())


jobproperties.add_Container(InDetGeometryFlags_JobProperties)
jobproperties.InDetGeometryFlags_JobProperties.add_JobProperty(GeoVersionName)
jobproperties.InDetGeometryFlags_JobProperties.add_JobProperty(GeoLayout)
jobproperties.InDetGeometryFlags_JobProperties.add_JobProperty(isIBL)
jobproperties.InDetGeometryFlags_JobProperties.add_JobProperty(IBLLayout)
jobproperties.InDetGeometryFlags_JobProperties.add_JobProperty(isSLHC)
jobproperties.InDetGeometryFlags_JobProperties.add_JobProperty(isDBM)
jobproperties.InDetGeometryFlags_JobProperties.add_JobProperty(
    useDynamicAlignFolders)

InDetGeometryFlags = jobproperties.InDetGeometryFlags_JobProperties
InDetGeometryFlags.setupValuesFromDB()
    StoredValue={}

class LevelOffset(JobProperty):
    """  level offset for btagging d3pd
    """
    statusOn=True
    allowedTypes=['int']
    StoredValue=-10


class JetTagD3PDMakerFlags(JobPropertyContainer):
    """ The JetTag D3PD Flags container
    """

# add the flag container to the top container
jobproperties.add_Container(JetTagD3PDMakerFlags)

# and now add the properties
jobproperties.JetTagD3PDMakerFlags.add_JobProperty(StdInfoInclude)
jobproperties.JetTagD3PDMakerFlags.add_JobProperty(Taggers)
jobproperties.JetTagD3PDMakerFlags.add_JobProperty(DefaultTaggers)
jobproperties.JetTagD3PDMakerFlags.add_JobProperty(AllTaggers)
jobproperties.JetTagD3PDMakerFlags.add_JobProperty(JetJFVxOnJetAxisAssocSGKey)
jobproperties.JetTagD3PDMakerFlags.add_JobProperty(JetJFTwoTrackVertexAssocSGKey)
jobproperties.JetTagD3PDMakerFlags.add_JobProperty(TrackAssocLabel)
jobproperties.JetTagD3PDMakerFlags.add_JobProperty(MuonAssocLabel)
jobproperties.JetTagD3PDMakerFlags.add_JobProperty(Muon2AssocLabel)
jobproperties.JetTagD3PDMakerFlags.add_JobProperty(ElectronAssocLabel)
jobproperties.JetTagD3PDMakerFlags.add_JobProperty(PhotonAssocLabel)
jobproperties.JetTagD3PDMakerFlags.add_JobProperty(JFVxOnJetAxisAssocLabel)
jobproperties.JetTagD3PDMakerFlags.add_JobProperty(JFTwoTrackVertexAssocLabel)
Example #38
0
    StoredValue = 0.02


##-----------------------------------------------------------------------------
## 2nd step
## Definition of the InDet flag container
class FatrasTuning(JobPropertyContainer):
    """Container for the Fatras key flags
    """
    pass


##-----------------------------------------------------------------------------
## 3rd step
## adding the container to the general top-level container
jobproperties.add_Container(FatrasTuning)

##-----------------------------------------------------------------------------
## 4th step
## adding ID flags to the InDetKeys container
jobproperties.FatrasTuning.add_JobProperty(
    MinimumParticlePtPrimaryTrackCreation)
jobproperties.FatrasTuning.add_JobProperty(MinimumMuonPtTrackCreation)
jobproperties.FatrasTuning.add_JobProperty(MinimumParticleMomentum)
jobproperties.FatrasTuning.add_JobProperty(MinimumBremPhotonMomentum)
jobproperties.FatrasTuning.add_JobProperty(InteractionVolumeRadius)
jobproperties.FatrasTuning.add_JobProperty(InteractionVolumeHalfZ)
jobproperties.FatrasTuning.add_JobProperty(BetheHeitlerScalor)
jobproperties.FatrasTuning.add_JobProperty(GaussianMixtureModel)
jobproperties.FatrasTuning.add_JobProperty(ParticleDecayMinChildEnergy)
jobproperties.FatrasTuning.add_JobProperty(ConversionMinChildEnergy)
Example #39
0
    """ Flag to override the default output file name of the perfmon tuple
    """
    statusOn = True
    allowedTypes = ['str']
    StoredValue = "ntuple.pmon.gz"


# Defines the container for the performance monitoring flags
class PerfMonFlags(JobPropertyContainer):
    """ The global performance monitoring flag/job property container.
    """
    pass


# add the perfmon flags container to the top container
jobproperties.add_Container(PerfMonFlags)

# We want always the following flags in the container
list_jobproperties = [
    doMonitoring,
    doPersistencyMonitoring,
    doDetailedMonitoring,
    doFastMon,
    doFullMon,
    doMonitoringMT,
    doFastMonMT,
    doFullMonMT,
    doSemiDetailedMonitoring,
    doSemiDetailedMonitoringFullPrint,
    doExtraPrintouts,
    doHephaestusMon,
##Creation: David Cote (CERN), September 2010

from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer
from AthenaCommon.JobProperties import jobproperties

class TrfFlags(JobPropertyContainer):
    """Flag/job property container for job transforms."""
jobproperties.add_Container(TrfFlags)

class KeepFullCommandUntouched(JobProperty):
    """ Blocks the execution of PopSynonyms. """
    statusOn     = True
    allowedTypes = ['bool']
    StoredValue  = False
    pass
jobproperties.TrfFlags.add_JobProperty(KeepFullCommandUntouched)

class ApplyIfMatchPattern(JobProperty):
    """ Activates output vs stream pattern matching """
    statusOn     = True
    allowedTypes = ['bool']
    StoredValue  = False
    pass
jobproperties.TrfFlags.add_JobProperty(ApplyIfMatchPattern)


trfFlags = jobproperties.TrfFlags