Ejemplo n.º 1
0
def makeMyMuons(name, protoParticlesMaker):
   """
     Make Particles out of the muon ProtoParticles
   """
   particleMaker =  NoPIDsParticleMaker(name+"ParticleMaker" , Particle = "Muon")
   particleMaker.Input = "Rec/ProtoP/"+name+"ProtoPMaker/ProtoParticles"
   #particleMaker.OutputLevel = 0

   DataOnDemandSvc().AlgMap.update( {
           "/Event/Phys/" + particleMaker.name() + '/Particles' : particleMaker.getFullName(),
           "/Event/Phys/" + particleMaker.name() + '/Vertices'  : particleMaker.getFullName() 
   } )


   return Selection(name+"SelVeloMuonParts", Algorithm = particleMaker, RequiredSelections = [protoParticlesMaker], InputDataSetter=None)
Ejemplo n.º 2
0
def configIso():
    from Configurables import ChargedProtoParticleMaker, DaVinci
    veloprotos = ChargedProtoParticleMaker("ProtoPMaker")
    veloprotos.Inputs = ["Rec/Track/Best"]
    veloprotos.Output = "Rec/ProtoP/myProtoPMaker/ProtoParticles"
    DaVinci().appendToMainSequence( [ veloprotos ])

    from Configurables       import ProtoParticleCALOFilter, CombinedParticleMaker,NoPIDsParticleMaker
    from CommonParticles.Utils import trackSelector, updateDoD
    algorithm = NoPIDsParticleMaker('StdNoPIDsVeloPions',  Particle =
            'pion',  )
    algorithm.Input = "Rec/ProtoP/myProtoPMaker/ProtoParticles"
    selector = trackSelector ( algorithm , trackTypes = ['Velo'] )
    locations = updateDoD ( algorithm )
    DaVinci().appendToMainSequence( [ algorithm ]) 
Ejemplo n.º 3
0
    def MakeVeloParticles(self, name, particle, protoParticlesMaker):

        particleMaker = NoPIDsParticleMaker("For%sParticleMaker%s" %
                                            (self.name, name),
                                            Particle=particle)
        particleMaker.Input = self.VeloProtoOutputLocation

        DataOnDemandSvc().AlgMap.update({
            "/Event/Phys/" + particleMaker.name() + '/Particles':
            particleMaker.getFullName(),
            "/Event/Phys/" + particleMaker.name() + '/Vertices':
            particleMaker.getFullName()
        })

        AllVeloParticles = Selection("For%sSelAllVeloParts%s" %
                                     (self.name, name),
                                     Algorithm=particleMaker,
                                     RequiredSelections=[protoParticlesMaker],
                                     InputDataSetter=None)

        ### filter on the IP of the velo tracks
        return Selection(
            "For%sSelVeloParts%s" % (self.name, name),
            Algorithm=FilterDesktop(
                name + "For%sFilterVeloTrackIP%s" % (self.name, name),
                Code="(MIPDV(PRIMARY) > %(VeloMINIP)s)" % self.__confdict__),
            RequiredSelections=[AllVeloParticles])
Ejemplo n.º 4
0
def postConfig():
    import OnlineEnv
    from Configurables import JsonConverter, NoPIDsParticleMaker, LHCb__DelaySleepAlg
    pmaker = NoPIDsParticleMaker('StdAllNoPIDsPions', Particle='pion')
    conv = JsonConverter()
    conv.OutputLevel = MSG_DEBUG
    conv.OutputDirectory = '/group/online/dataflow/cmtuser/EventDisplay/events'
    delay = LHCb__DelaySleepAlg('Delay')
    delay.DelayTime = 1000  # Sleep after each event for 1000 milli-secs
    GaudiSequencer("PhysicsSeq").Members += [pmaker, conv, delay]
Ejemplo n.º 5
0
def makeAllParticles(name, trackcont, particle):
    particleMaker = NoPIDsParticleMaker(name, Particle=particle)
    particleMaker.Input = "Rec/ProtoP/" + trackcont + "ProtoPMaker"
    DataOnDemandSvc().AlgMap.update({
        "/Event/Phys/" + particleMaker.name() + '/Particles':
        particleMaker.getFullName(),
        "/Event/Phys/" + particleMaker.name() + '/Vertices':
        particleMaker.getFullName()
    })
Ejemplo n.º 6
0
    def _InclPhiLDLine(self, name_prefix, config):
        name = name_prefix + "LDLine"
        ## Downstream kaons track selector
        from Configurables import NoPIDsParticleMaker
        pmalg = NoPIDsParticleMaker(name + 'NoPIDsKaons', Particle='kaon')
        pmalg.Particle = 'Kaon'
        from Configurables import TrackSelector
        pmalg.addTool(TrackSelector)
        pmalg.TrackSelector.TrackTypes = ['Downstream', 'Long']
        DownNoPIDsKaons = pmalg
        _DownNoPIDsKaons = DataOnDemand(Location="Phys/" + name +
                                        'NoPIDsKaons/Particles')

        #Phi2KK_DC = ""
        Phi2KK_CC = self._Phi2KK_CC(config)
        Phi2KK_MC = self._Phi2KK_MC(config, False, False)
        ps = config['LDPrescale']

        #print "CC and MC for InclPhi LD stripping line."
        #print "Prescale: ", ps
        #print Phi2KK_CC
        #print Phi2KK_MC

        _Phi2KK = CombineParticles(
            #  "_"+name+"Phi2KK"
            DecayDescriptor="phi(1020) -> K+ K-"
            #, DaughtersCuts = {"K+": Phi2KK_DC}
            ,
            CombinationCut=Phi2KK_CC,
            MotherCut=Phi2KK_MC)
        Phi2KK = Selection(name + "Phi2KK",
                           Algorithm=_Phi2KK,
                           RequiredSelections=[_DownNoPIDsKaons])

        return StrippingLine(
            name
            #              , HLT = "HLT_PASS_RE('Hlt1MB.*Decision')"
            ,
            prescale=ps,
            postscale=1,
            checkPV=False,
            selection=Phi2KK)
Ejemplo n.º 7
0
def selMuonTTParts(name, protoParticlesMaker):
    """
    Make Particles out of the muonTT ProtoParticles
    """
    MuonTTParts = NoPIDsParticleMaker(name + "MuonTTParts")
    MuonTTParts.Particle = 'muon'
    MuonTTParts.addTool(TrackSelector)
    MuonTTParts.TrackSelector.TrackTypes = ["Long"]
    MuonTTParts.Input = "Rec/" + name + "_SelMuonTTPParts/ProtoParticles"
    MuonTTParts.OutputLevel = 4
    #
    return Selection(name + "_SelMuonTTParts",
                     Algorithm=MuonTTParts,
                     RequiredSelections=[protoParticlesMaker],
                     InputDataSetter=None)
Ejemplo n.º 8
0
def configure():
    lhcbApp.DataType = 'Upgrade'
    lhcbApp.Simulation = True
    lhcbApp.setProp(
        "Detectors",
        ['VP', 'UT', 'FT', 'Rich1Pmt', 'Rich2Pmt', 'Spd', 'Prs', 'Ecal', 'Hcal', 'Muon', 'Magnet']
    )

    vp_sequence = GaudiSequencer('PrPixelStoreClusters_Seq')
    vp_sequence.Members.append(PrPixelStoreClusters())

    appConf = ApplicationMgr()
    appConf.ExtSvc += ['ToolSvc', 'DataOnDemandSvc']
    appConf.TopAlg += [vp_sequence]

    PreLoadPions = NoPIDsParticleMaker('PreLoadPions')
    PreLoadPions.Particle = 'pions'
    PreLoadKaons = NoPIDsParticleMaker('PreLoadKaons')
    PreLoadKaons.Particle = 'kaon'
    appConf.TopAlg += [PreLoadPions, PreLoadKaons]
"""
Configuration file for 'Standard NoPIDs Downstream Protons'
"""
__author__ = "Alessio Sarti <*****@*****.**>"
__version__ = "CVS tag $Name: not supported by cvs2svn $, version $Revision: 1.4 $"
# =============================================================================
__all__ = ('StdNoPIDsDownProtons', 'locations')
# =============================================================================
from Gaudi.Configuration import *
from Configurables import NoPIDsParticleMaker

from CommonParticles.Utils import *

## create the algorithm
algorithm = NoPIDsParticleMaker('StdNoPIDsDownProtons',
                                DecayDescriptor='Proton',
                                Particle='proton')

# configure the track selector
selector = trackSelector(algorithm,
                         trackTypes=['Downstream'],
                         cuts={"Chi2Cut": [0, 10]})

## configure Data-On-Demand service
locations = updateDoD(algorithm)

## finally: define the symbol
StdNoPIDsDownProtons = algorithm

## ============================================================================
if '__main__' == __name__:
Ejemplo n.º 10
0
#  @date 2009-01-14
# =============================================================================
"""
Configuration file for 'Standard NoPIDs Protons'
"""
__author__ = "Vanya BELYAEV [email protected]"
__version__ = "CVS tag $Name: not supported by cvs2svn $, version $Revision: 1.5 $"
# =============================================================================
__all__ = ('StdAllNoPIDsProtons', 'locations')
# =============================================================================
from Gaudi.Configuration import *
from Configurables import NoPIDsParticleMaker
from CommonParticles.Utils import *

## create the algorithm
algorithm = NoPIDsParticleMaker('StdAllNoPIDsProtons', Particle='proton')

# configure the track selector
selector = trackSelector(algorithm)

## configure Data-On-Demand service
locations = updateDoD(algorithm)

## finally: define the symbol
StdAllNoPIDsProtons = algorithm

## ============================================================================
if '__main__' == __name__:

    print __doc__
    print __author__
    def GammaEE(self, Name, eDLLe, GammaEEChi2, GammaEEMass, GammaEETau):

        # cuts
        daughterCut = "PIDe > %(eDLLe)s" % locals()
        motherCut = "(VFASPF(VCHI2/VDOF)<%(GammaEEChi2)s) & (MM < %(GammaEEMass)s*MeV) & (abs(BPVLTIME()) <   %(GammaEETau)s*ps )" % locals(
        )

        # imports
        from Configurables import NoPIDsParticleMaker
        from CommonParticles.Utils import trackSelector, updateDoD
        from PhysSelPython.Wrappers import MergedSelection

        #
        # setup electrons
        #

        # TTrack electrons not OK yet ?
        algorithm = NoPIDsParticleMaker('StdNoPIDsTtrackElectrons',
                                        DecayDescriptor='Electron',
                                        Particle='electron')
        algorithm.AddBremPhotonTo = []
        selector = trackSelector(algorithm, trackTypes=["Ttrack"])
        locations = updateDoD(algorithm)
        StdNoPIDsTtrackElectrons = algorithm

        # switch off Bremsstrahlung correction until fully tuned
        algorithm = NoPIDsParticleMaker('StdAllNoPIDsElectrons',
                                        DecayDescriptor='Electron',
                                        Particle='electron')
        algorithm.AddBremPhotonTo = []

        algorithm = NoPIDsParticleMaker('StdNoPIDsUpElectrons',
                                        DecayDescriptor='Electron',
                                        Particle='electron')
        algorithm.AddBremPhotonTo = []

        algorithm = NoPIDsParticleMaker('StdNoPIDsDownElectrons',
                                        DecayDescriptor='Electron',
                                        Particle='electron')
        algorithm.AddBremPhotonTo = []

        # all required electrons
        from CommonParticles import StdNoPIDsDownElectrons, StdNoPIDsUpElectrons, StdNoPIDsVeloElectrons

        eLong = DataOnDemand('Phys/StdAllNoPIDsElectrons/Particles')
        eUp = DataOnDemand('Phys/StdNoPIDsUpElectrons/Particles')
        eDown = DataOnDemand('Phys/StdoPIDsDownElectrons/Particles')
        eTtrack = DataOnDemand('Phys/StdNoPIDsTtrackElectrons/Particles')
        allElectrons = MergedSelection(
            'allElectrons', RequiredSelections=[eLong, eUp, eDown, eTtrack])

        from GaudiConfUtils.ConfigurableGenerators import FilterDesktop
        electronFilter = FilterDesktop(Code=daughterCut)
        myElectrons = Selection(Name + '_MuonSel',
                                Algorithm=electronFilter,
                                RequiredSelections=[allElectrons])

        ConvFind = CombineParticles(DecayDescriptor="KS0 -> e+ e-",
                                    CombinationCut="(AM>0*MeV)",
                                    MotherCut=motherCut)

        #ConvFind.DecayDescriptor  = "KS0 -> e+ e-"
        #ConvFind.DaughtersCuts    = {"e+" : "ALL" }
        #ConvFind.CombinationCut   = "(AM>0*MeV)"
        #ConvFind.MotherCut        = motherCut

        GammaEESel = Selection(Name + "_GammaEESel",
                               Algorithm=ConvFind,
                               RequiredSelections=[myElectrons])

        return GammaEESel
Ejemplo n.º 12
0
Hlt2BiKalmanFittedDownMuons = CombinedParticleMaker(
    "Hlt2BiKalmanFittedDownMuons",
    Particle="muon",
    Input=BiKalmanFittedDownMuonProtoMaker.outputSelection(),
    Output='Hlt2/Hlt2BiKalmanFittedDownMuons/Particles',
    WriteP2PVRelations=False)
Hlt2BiKalmanFittedDownMuons.addTool(ProtoParticleMUONFilter('Muon'))
Hlt2BiKalmanFittedDownMuons.Muon.Selection = ["RequiresDet='MUON' IsMuon=True"]

##########################################################################
#
# Make muons without PID requirements (e.g. for PID calibration lines)
#
Hlt2BiKalmanFittedNoPIDsMuons = NoPIDsParticleMaker(
    "Hlt2BiKalmanFittedNoPIDsMuons",
    Particle="muon",
    Input=BiKalmanFittedMuonProtoMaker.outputSelection(),
    Output="Hlt2/Hlt2BiKalmanFittedNoPIDsMuons/Particles",
    WriteP2PVRelations=False)

##########################################################################
#
# Make the pions
#
Hlt2BiKalmanFittedPions = NoPIDsParticleMaker(
    "Hlt2BiKalmanFittedPions",
    Particle="pion",
    Input=BiKalmanFittedChargedRichHadronProtoMaker.outputSelection(),
    Output='Hlt2/Hlt2BiKalmanFittedPions/Particles',
    WriteP2PVRelations=False)
##########################################################################
#
Ejemplo n.º 13
0
#  @date 2009-01-14
# =============================================================================
"""
Configuration file for 'Standard NoPIDs Kaons'
"""
__author__ = "Vanya BELYAEV [email protected]"
__version__ = "CVS tag $Name: not supported by cvs2svn $, version $Revision: 1.5 $"
# =============================================================================
__all__ = ('StdAllNoPIDsKaons', 'locations')
# =============================================================================
from Gaudi.Configuration import *
from Configurables import NoPIDsParticleMaker
from CommonParticles.Utils import *

## create the algorithm
algorithm = NoPIDsParticleMaker('StdAllNoPIDsKaons', Particle='kaon')

# configure the track selector
selector = trackSelector(algorithm)

## configure Data-On-Demand service
locations = updateDoD(algorithm)

## finally: define the symbol
StdAllNoPIDsKaons = algorithm

## ============================================================================
if '__main__' == __name__:

    print __doc__
    print __author__
Ejemplo n.º 14
0
from PhysSelPython.Wrappers import DataOnDemand
from Configurables import CombineParticles, ChargedProtoParticleMaker, NoPIDsParticleMaker
from CommonParticles import StdAllNoPIDsPions, StdAllNoPIDsElectrons, StdNoPIDsUpElectrons
from CommonParticles.Utils import *

########################
## make VELO particles by hand
# first make protoparticles (needed for VELO Tracks)
myprotos = ChargedProtoParticleMaker("MyProtoParticles",
                                     Inputs = ["Rec/Track/Best"],
                                     Output = "Rec/ProtoP/MyProtoParticles")
DaVinci().UserAlgorithms +=[myprotos]

#now make the velo particles
algorithm =  NoPIDsParticleMaker ( 'StdNoPIDsVeloElectrons',
                                   DecayDescriptor = 'Electron' ,
                                   Particle = 'electron',
                                   Input = myprotos.Output)

# configure the track selector
selector = trackSelector ( algorithm,trackTypes = [ "Velo" ]  )
locations = updateDoD ( algorithm )
########################

## build all possible combinations of track types
combs = {"LL":"( ANUM( ( TRTYPE == 3 ) &  ( ABSID == 'e-' ) ) == 2 )",
         "UU":"( ANUM( ( TRTYPE == 4 ) &  ( ABSID == 'e-' ) ) == 2 )",
         "VV":"( ANUM( ( TRTYPE == 1 ) & ( ABSID == 'e-' ) ) == 2 )",
         "LU":"( ( ANUM( ( TRTYPE == 3 ) &  ( ABSID == 'e-' ) ) == 1 ) & ( ANUM( ( TRTYPE == 4 ) & ( ABSID == 'e-' ) ) == 1 ) )",
         "LV":"( ( ANUM( ( TRTYPE == 3 ) &  ( ABSID == 'e-' ) ) == 1 ) & ( ANUM( ( TRTYPE == 1 ) & ( ABSID == 'e-' ) ) == 1 ) )",
         "UV":"( ( ANUM( ( TRTYPE == 4 ) &  ( ABSID ==  'e-' ) ) == 1 ) & ( ANUM( ( TRTYPE == 1 ) & ( ABSID == 'e-' ) ) == 1 ) )"}
Ejemplo n.º 15
0
##########################################################################
# Make the Muons
#
Hlt2TagAndProbeMuons = CombinedParticleMaker("Hlt2TagAndProbeMuons")
Hlt2TagAndProbeMuons.Particle = "muon"
Hlt2TagAndProbeMuons.addTool(ProtoParticleMUONFilter('Muon'))
Hlt2TagAndProbeMuons.Muon.Selection = ["RequiresDet='MUON' IsMuon=True"]
Hlt2TagAndProbeMuons.Input = muonWithCaloProtos.outputSelection()
Hlt2TagAndProbeMuons.Output = 'Hlt2/Hlt2TagAndProbeMuons/Particles'
Hlt2TagAndProbeMuons.WriteP2PVRelations = False
##########################################################################
#
# No PID muon particles, for association with probe track
#
##########################################################################
Hlt2LongAssocParts = NoPIDsParticleMaker("Hlt2LongAssocParts")
Hlt2LongAssocParts.Particle = 'pion'  # call this a pion for CombinePart to distringuish from probe
Hlt2LongAssocParts.addTool(TrackSelector)
Hlt2LongAssocParts.TrackSelector.TrackTypes = ["Long"]
Hlt2LongAssocParts.Input = muonWithCaloProtos.outputSelection()
Hlt2LongAssocParts.Output = "Hlt2/Hlt2LongAssocMuons/Particles"

##########################################################################
#
# MuonTT particles
#
##########################################################################
Hlt2MuonTTParts = NoPIDsParticleMaker("Hlt2MuonTTParts")
Hlt2MuonTTParts.Particle = 'muon'
Hlt2MuonTTParts.addTool(TrackSelector)
Hlt2MuonTTParts.TrackSelector.TrackTypes = ["Long"]
Ejemplo n.º 16
0
from sklearn.linear_model import LinearRegression

#from BenderAlgo.select import selectVertexMin

from easygraphs import *
import matplotlib.pyplot as plt
#from mpl_toolkits import mplot3d
from mpl_toolkits.mplot3d import Axes3D
import ROOT
#from sklearn import datasets, linear_model
#from sklearn.metrics import mean_squared_error, r2_score
c_light = 299.792458
print 'NEW XERAL,100000'
##CREATE ALGORITHM 
algorithm =  NoPIDsParticleMaker ( 'StdNoPIDsDownMuons'  ,
                                DecayDescriptor = 'Muon' ,
                                Particle = 'muons' )

# configure the track selector
selector = trackSelector ( algorithm,
                           trackTypes = ['Downstream'],
                           cuts = { "Chi2Cut" : [0,10] } )

## configure Data-On-Demand service 
locations = updateDoD ( algorithm )

## finally: define the symbol 
StdNoPIDsDownMuons = algorithm 


Ejemplo n.º 17
0
###################################
# Customize DaVinci main sequence #
###################################

from Configurables import ChargedProtoParticleMaker
from Configurables import NoPIDsParticleMaker
from CommonParticles.Utils import trackSelector, updateDoD

# Provide required information for VELO pions.
ms_all_protos = ChargedProtoParticleMaker(name='MyProtoPMaker')
ms_all_protos.Inputs = ['Rec/Track/Best']
ms_all_protos.Output = 'Rec/ProtoP/MyProtoPMaker/ProtoParticles'

# NOTE: The name 'StdNoPIDsVeloPions' is hard-coded in the tuple tool, so the
#       name should not be changed.
ms_velo_pions = NoPIDsParticleMaker('StdNoPIDsVeloPions', Particle='pion')
ms_velo_pions.Input = ms_all_protos.Output

trackSelector(ms_velo_pions, trackTypes=['Velo'])
updateDoD(ms_velo_pions)

DaVinci().appendToMainSequence([ms_all_protos, ms_velo_pions])


#######################
# Particle references #
#######################

if not DaVinci().Simulation:
    stream = 'Dimuon'
else:
Ejemplo n.º 18
0
Configuration file for 'Standard NoPIDs Muons'
"""
__author__  = "Vanya BELYAEV [email protected]"
__version__ = "CVS tag $Name: not supported by cvs2svn $, version $Revision: 1.5 $"
# =============================================================================
__all__ = (
    'StdAllNoPIDsMuons' ,
    'locations'
    )
# =============================================================================
from Gaudi.Configuration   import *
from Configurables         import NoPIDsParticleMaker 
from CommonParticles.Utils import *

## create the algorithm 
algorithm =  NoPIDsParticleMaker ( 'StdAllNoPIDsMuons'  ,
                                   Particle = 'muon'  )

# configure the track selector
selector = trackSelector ( algorithm ) 

## configure Data-On-Demand service 
locations = updateDoD ( algorithm )

## finally: define the symbol 
StdAllNoPIDsMuons = algorithm 

## ============================================================================
if '__main__' == __name__ :

    print __doc__
    print __author__
Ejemplo n.º 19
0
#  @date 2009-01-14
# =============================================================================
"""
Configuration file for 'Standard NoPIDs Pions'
"""
__author__ = "Vanya BELYAEV [email protected]"
__version__ = "CVS tag $Name: not supported by cvs2svn $, version $Revision: 1.5 $"
# =============================================================================
__all__ = ('StdAllNoPIDsPions', 'locations')
# =============================================================================
from Gaudi.Configuration import *
from Configurables import NoPIDsParticleMaker
from CommonParticles.Utils import *

## create the algorithm
algorithm = NoPIDsParticleMaker('StdAllNoPIDsPions', Particle='pion')

# configure the track selector
selector = trackSelector(algorithm)

## configure Data-On-Demand service
locations = updateDoD(algorithm)

## finally: define the symbol
StdAllNoPIDsPions = algorithm

## ============================================================================
if '__main__' == __name__:

    print __doc__
    print __author__
Ejemplo n.º 20
0
# =============================================================================
"""
Configuration file for No PID Upstream Kaons
"""
__author__ = "Chris Jones [email protected]"
__version__ = "CVS tag $Name: not supported by cvs2svn $, version $Revision: 1.5 $"
# =============================================================================
__all__ = ('StdNoPIDsUpKaons', 'locations')
# =============================================================================
from Gaudi.Configuration import *
from Configurables import NoPIDsParticleMaker
from CommonParticles.Utils import *

## create the algorithm
algorithm = NoPIDsParticleMaker('StdNoPIDsUpKaons',
                                DecayDescriptor='Kaon',
                                Particle='kaon')

# configure the track selector
selector = trackSelector(algorithm, trackTypes=['Upstream'])

## configure Data-On-Demand service
locations = updateDoD(algorithm)

## finally: define the symbol
StdNoPIDsUpKaons = algorithm

## ============================================================================
if '__main__' == __name__:

    print __doc__
Ejemplo n.º 21
0
from Configurables import ChargedProtoParticleMaker

name = "Lambdab2Lcmunu"
veloprotos = ChargedProtoParticleMaker(name + "ProtoPMaker")
veloprotos.Inputs = ["Rec/Track/Best"]
veloprotos.Output = "Rec/ProtoP/myProtoPMaker/ProtoParticles"

DaVinci().appendToMainSequence([veloprotos])

from Gaudi.Configuration import *
from Configurables import ProtoParticleCALOFilter, CombinedParticleMaker, NoPIDsParticleMaker
from CommonParticles.Utils import *

algorithm = NoPIDsParticleMaker(
    'StdNoPIDsVeloPions',
    Particle='pion',
)
algorithm.Input = "Rec/ProtoP/myProtoPMaker/ProtoParticles"
selector = trackSelector(algorithm, trackTypes=['Velo'])

locations = updateDoD(algorithm)
DaVinci().appendToMainSequence([algorithm])

##############################################################################################
##### TOOLS AND TRIGGERS AND STRIPPING LINES AND LOKI VARIABLES
##############################################################################################
enablePacking = True

from Configurables import DecayTreeTuple, FitDecayTrees, TupleToolRecoStats, TupleToolTrigger, TupleToolSubMass
from Configurables import TupleToolTISTOS, CondDB, SelDSTWriter, TupleToolL0Calo
from Configurables import TupleToolTrackInfo, TupleToolRICHPid, TupleToolGeometry, TupleToolPid
Ejemplo n.º 22
0
# Config for performance testing
from Gaudi.Configuration import *
from Configurables import NoPIDsParticleMaker
from CommonParticles.StdAllNoPIDsPions import StdAllNoPIDsPions

importOptions("$BRUNELROOT/options/Brunel-Default.py")
importOptions(
    "$PRCONFIGOPTS/Brunel/PR-COLLISION12-Beam4000GeV-VeloClosed-MagDown.py")

from Gaudi.Configuration import FileCatalog, EventSelector
from Configurables import Brunel
Brunel().EvtMax = 10

pmaker = NoPIDsParticleMaker('StdNoPIDsPions', Particle='pion')


def postConfig():

    from Configurables import JsonConverter
    conv = JsonConverter()
    #conv.OutputLevel = DEBUG
    from Configurables import StoreExplorerAlg
    storeExp = StoreExplorerAlg("StoreExplorer1")
    storeExp.Load = 1
    storeExp.PrintFreq = 1

    #GaudiSequencer("PhysicsSeq").Members += [ storeExp,  conv ]
    GaudiSequencer("PhysicsSeq").Members += [pmaker, storeExp, conv]


appendPostConfigAction(postConfig)
Ejemplo n.º 23
0
"""
Configuration file for 'NoBrem NoPIDs Electrons with Ttrack tracks'
"""
__author__ = "Ulrich Kerzel [email protected]"
__version__ = "CVS tag $Name: not supported by cvs2svn $, version $Revision: 1.1 $"
# =============================================================================
__all__ = ('NoBremNoPIDsTtrackElectrons', 'locations')
# =============================================================================
from Gaudi.Configuration import *
from Configurables import NoPIDsParticleMaker

from CommonParticles.Utils import *

## create the algorithm
algorithm = NoPIDsParticleMaker('NoBremNoPIDsTtrackElectrons',
                                DecayDescriptor='Electron',
                                Particle='electron')

algorithm.AddBremPhotonTo = []

# configure the track selector
selector = trackSelector(algorithm, trackTypes=["Ttrack"])

## configure Data-On-Demand service
locations = updateDoD(algorithm)

## finally: define the symbol
NoBremNoPIDsTtrackElectrons = algorithm

## ============================================================================
if '__main__' == __name__:
Ejemplo n.º 24
0
#muonProtos 	= tracking.hlt2ChargedMuonProtos( )
#hadronProtos 	= tracking.hlt2ChargedNoPIDsProtos( )

caloProtos = tracking.hlt2ChargedAllPIDsProtos()
muonProtos = tracking.hlt2ChargedAllPIDsProtos()
hadronProtos = tracking.hlt2ChargedAllPIDsProtos()

##########################################################################
#
# Neutral protoparticles
#
neutralProtos = tracking.hlt2NeutralProtos()
##########################################################################
# Make the pions
#
Hlt2NoCutsPions = NoPIDsParticleMaker("Hlt2NoCutsPions")
Hlt2NoCutsPions.Input = hadronProtos.outputSelection()
Hlt2NoCutsPions.Output = 'Hlt2/Hlt2NoCutsPions/Particles'
Hlt2NoCutsPions.Particle = "pion"
Hlt2NoCutsPions.WriteP2PVRelations = False
##########################################################################
# Make the kaons
#
Hlt2NoCutsKaons = Hlt2NoCutsPions.clone("Hlt2NoCutsKaons")
Hlt2NoCutsKaons.Output = 'Hlt2/Hlt2NoCutsKaons/Particles'
Hlt2NoCutsKaons.Particle = "kaon"
##########################################################################
# Make the protons
#
Hlt2NoCutsProtons = Hlt2NoCutsPions.clone("Hlt2NoCutsProtons")
Hlt2NoCutsProtons.Output = 'Hlt2/Hlt2NoCutsProtons/Particles'
"""
Configuration file for 'Standard NoPIDs Electrons with Upstream tracks'
"""
__author__ = "Ulrich Kerzel [email protected]"
__version__ = "CVS tag $Name: not supported by cvs2svn $, version $Revision: 1.1 $"
# =============================================================================
__all__ = ('StdNoPIDsElectrons', 'locations')
# =============================================================================
from Gaudi.Configuration import *
from Configurables import NoPIDsParticleMaker

from CommonParticles.Utils import *

## create the algorithm
algorithm = NoPIDsParticleMaker('StdNoPIDsUpElectrons',
                                DecayDescriptor='Electron',
                                Particle='electron')

# configure the track selector
selector = trackSelector(algorithm, trackTypes=["Upstream"])

## configure Data-On-Demand service
locations = updateDoD(algorithm)

## finally: define the symbol
StdNoPIDsUpElectrons = algorithm

## ============================================================================
if '__main__' == __name__:

    print __doc__
Ejemplo n.º 26
0
"""
Configuration file for 'Standard NoPIDs Upstream Pions'
"""
__author__ = "Patrick Koppenburg [email protected]"
__version__ = "CVS tag $Name: not supported by cvs2svn $, version $Revision: 1.1 $"
# =============================================================================
__all__ = ('StdNoPIDsUpPions', 'locations')
# =============================================================================
from Gaudi.Configuration import *
from Configurables import NoPIDsParticleMaker

from CommonParticles.Utils import *

## create the algorithm
algorithm = NoPIDsParticleMaker('StdNoPIDsUpPions',
                                DecayDescriptor='Pion',
                                Particle='pion')

# configure the track selector
selector = trackSelector(algorithm, trackTypes=['Upstream'])

## configure Data-On-Demand service
locations = updateDoD(algorithm)

## finally: define the symbol
StdNoPIDsUpPions = algorithm

## ============================================================================
if '__main__' == __name__:

    print __doc__