Tags:
create new tag
view all tags

B2 benchmarks

RandallSobie

Login into KEK (login and computer systems)

ssh sshcc1.kek.jp
ssh login.cc.kek.jp

Set up a new release (04-01-05)

Need KEK ssh passphrase and DESY password
source /sw/belle2/tools/b2setup
b2analysis-create  bmk-04-01-05 release-04-01-05
cd bmk-04-01-05
b2setup

job script (note places where I added comments)

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Descriptor: mixed_BBbar

#############################################################
# Steering file for official MC production of early phase 3
# 'mixed' BBbar samples without beam backgrounds (BGx0).
#
# August 2019 - Belle II Collaboration
#############################################################

import basf2 as b2
import generators as ge
import simulation as si
import L1trigger as l1
import reconstruction as re
from ROOT import Belle2
import glob as glob

# background (collision) files
#bg = glob.glob('/group/belle2/users/jbennett/BG/early_phase3/prerelease-04-00-00a/overlay/phase31/BGx1/set0/*.root') # if you run at KEKCC
#RJS bg = glob.glob('./BGforOverlay*.root')

# set database conditions (in addition to default)
b2.conditions.reset()
b2.conditions.prepend_globaltag("mc_production_MC13a_rev1")

#: number of events to generate, can be overriden with -n
num_events = 10
#: output filename, can be overriden with -o
output_filename = "mdst.root"

# create path
main = b2.create_path()

# specify number of events to be generated
main.add_module("EventInfoSetter", expList=1003, runList=0, evtNumList=num_events)

# generate BBbar events
ge.add_evtgen_generator(main, finalstate='mixed')

# detector simulation
si.add_simulation(main)

# trigger simulation
l1.add_tsim(main, Belle2Phase="Phase3")

# reconstruction
#RJS re.add_reconstruction(main)

# Finally add mdst output
#RJS re.add_mdst_output(main, filename=output_filename)

# process events and print call statistics
b2.process(main)
print(b2.statistics)

Run interactively

basf2 mc.py

Create script for batch job at KEK (batchmc.sh)

#!/bin/bash
date
pwd
ls
source /sw/belle2/tools/b2setup
cd /home/belle2/rsobie/bmk-04-01-05
source /sw/belle2/tools/b2setup
basf2 /home/belle2/rsobie/bmk-04-01-05/mc.py

Run at KEK batch

bsub batchmc.sh

Check batch job status and output

bjobs

Look for output in ~/.lsf

Link to Tristan's presentation to the Belle-2 computing group, Sep. 30 2020:

Topic attachments
I Attachment History Action Size Date Who Comment
PDFpdf BelleTwo.pdf r1 manage 305.1 K 2020-09-29 - 20:31 UnknownUser  
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | More topic actions
Topic revision: r3 - 2020-09-29 - tssulliv
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback