dstWriter = DSTWriterSelectionSequence( selSequence=selSequence, outputStreamConfiguration=microDSTWriterConf, extras=dstExtras) microDST0Seq = dstWriter.sequence() # dv = DaVinci() dv.DataType = 'MC09' dv.Simulation = True dv.EvtMax = 100 dv.UserAlgorithms = [microDST0Seq] dv.Input = [ " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000001_1.dst' TYP='POOL_ROOTTREE' OPT='READ'", " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000002_1.dst' TYP='POOL_ROOTTREE' OPT='READ'", " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000003_1.dst' TYP='POOL_ROOTTREE' OPT='READ'", " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000004_1.dst' TYP='POOL_ROOTTREE' OPT='READ'", " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000005_1.dst' TYP='POOL_ROOTTREE' OPT='READ'", " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000006_1.dst' TYP='POOL_ROOTTREE' OPT='READ'", " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000007_1.dst' TYP='POOL_ROOTTREE' OPT='READ'", " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000008_1.dst' TYP='POOL_ROOTTREE' OPT='READ'", " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000009_1.dst' TYP='POOL_ROOTTREE' OPT='READ'", " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000010_1.dst' TYP='POOL_ROOTTREE' OPT='READ'", " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000011_1.dst' TYP='POOL_ROOTTREE' OPT='READ'", " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000012_1.dst' TYP='POOL_ROOTTREE' OPT='READ'", " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000013_1.dst' TYP='POOL_ROOTTREE' OPT='READ'", " DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000014_1.dst' TYP='POOL_ROOTTREE' OPT='READ'" ]
for loc in streamLocations: print loc sel = AutomaticData(Location=loc) selections.append( SelectionSequence('StripSeq' + sel.name(), TopSelection=sel)) multiSeq = MultiSelectionSequence('DiMuonSeq', Sequences=selections) dstWriter = MicroDSTWriter("MyDSTWriter", SelectionSequences=[multiSeq], OutputPrefix='MicroDST', OutputFileSuffix='TestDiMuon2', CopyL0DUReport=False, CopyHltDecReports=False, CopyMCTruth=True, CopyBTags=False) from Configurables import P2MCRelatorAlg, CopyParticle2MCRelations P2MCRelatorAlg('P2MCRel_DiMuonSeq').OutputLevel = 1 CopyParticle2MCRelations('CopyP2MCRel_DiMuonSeq').OutputLevel = 1 dv = DaVinci() dv.DataType = 'MC09' dv.Simulation = True dv.EvtMax = -1 dv.UserAlgorithms = [dstWriter.sequence()] dv.Input = [ " DATAFILE='TestDiMuon.Dimuon.dst' TYP='POOL_ROOTTREE' OPT='READ'" #" DATAFILE='castor:/castor/cern.ch/user/j/jpalac/StripDST/2010/MC/DV_v25r5/TestDiMuon.Dimuon.dst' TYP='POOL_ROOTTREE' OPT='READ'" ]
"P/1000": ('momentum', 0, 150), "PT/1000": ('pt_%1%', 0, 5, 750), "M": ('mass in MeV_%1%_%2%_%3%', 2.8 * Units.GeV, 3.2 * Units.GeV) } # JpsiFilterSel = Selection(name='JpsiFilterSel', Algorithm=_jpsiFilter, RequiredSelections=[JpsiSel]) JpsiSeq = SelectionSequence('SeqJpsi', TopSelection=JpsiFilterSel) seq = JpsiSeq.sequence() dv = DaVinci() dv.PrintFreq = 10 dv.HistogramFile = "DVHistos_Strip.root" dv.EvtMax = -1 dv.DataType = "MC09" dv.Simulation = True dv.RedoMCLinks = False dv.UserAlgorithms = [seq] dv.InputType = 'DST' # MC09 #dv.Input = [" DATAFILE='castor://castorlhcb.cern.ch:9002/?svcClass=lhcbdata&castorVersion=2&path=/castor/cern.ch/grid/lhcb/MC/MC09/DST/00004879/0000/00004879_00000001_1.dst' TYP='POOL_ROOTTREE' OPT='READ'"] dv.Input = [ "DATAFILE='PFN:/castor/cern.ch/user/j/jpalac/StripDST/MC09/DaVinci_v24r3p1/Sel.Jpsi.dst' TYP='POOL_ROOTTREE' OPT='READ'" ] ApplicationMgr().ExtSvc += ["NTupleSvc"] ApplicationMgr().HistogramPersistency = "ROOT"
BsFilterSel = Selection('HelloWorld', Algorithm = _bsFilter, RequiredSelections = [BsSel] ) from Configurables import CheckPV BsSeq = SelectionSequence('Bs', TopSelection = BsFilterSel, EventPreSelector = [CheckPV()]) seq = BsSeq.sequence() seq.RootInTES = "/Event/MicroDST/" seq.OutputLevel=4 dv=DaVinci() dv.EvtMax=-1 dv.DataType="MC09" dv.HistogramFile = "DVHistos_MDST.root" dv.Simulation=True dv.RedoMCLinks=False dv.UserAlgorithms = [seq] dv.InputType='MDST' # some necessary framework stuff #ecs = EventClockSvc() #ecs.addTool(OdinTimeDecoder) #ecs.OdinTimeDecoder.RootInTES = "/Event/MicroDST/" #ecs.OdinTimeDecoder.RootInTES = "/Event/" dv.Input = ["DATAFILE='PFN:/afs/cern.ch/user/j/jpalac/w0/nightlies/lhcb3/DaVinci_HEAD/Ex/MicroDSTExample/cmt/TestODIN_.SeqBs2Jpsi2MuMuPhi2KK.mdst' TYP='POOL_ROOTTREE' OPT='READ'" ] ApplicationMgr().ExtSvc += [ "NTupleSvc" ] ApplicationMgr().HistogramPersistency = "ROOT"