how to count # of events processed from a dataset There is script that does it for you (by S.Burdin) /rooms/laGuardia/projects/bdst/evsum.sh the input is name of a dataset, for example ./evsum.sh 0301010925_03.00 how to run batches on clued0 with AATrack /work/sibir-clued0/nomerot/ana has scripts that do it : m-ana.sh and start_new.sh how to fit D* signal use /work/sibir-clued0/nomerot/ana/dstar/sigbac3.cpp file in root root [] .L sigbac3.cpp+ root [] TF1 *ft = new TF1("ft",sigbac3, 0.14, 0.19, 6) ! function has 6 parameters root [] ft->SetParameters(0.2,0.145,0.002,5.,0.,0.) ! predefine 6 parameters root [] htemp->Fit("ft","r","",0.14,0.19) root [] ft->GetParameter(0)/htemp->GetBinWidth(1) ! calculate # of signal events where is my data - list of AADSTs worth of 6 pb^-1 is here /work/sibir-clued0/roots/file.listall note that these contain some muon skimming for 4 pb^-1. - list of unbiased 2 pb^-1 is here (mail from Gena) The following directories contain all events without any trigger selection: 168989r, 169708r, 166893r, 169889r, 175515r, 163171r, 165600r, 170000r, 170014r, 176556r, 168562r. The correspond to ~2pb-1 All of them can be found in /work/albion-clued0/bgv/data/reco/ how to define SAM datasets 1) do not need to create datasets 2) need to define a detaset using SAM dataset editor http://d0ora2.fnal.gov/sam_project_editor/DatasetEditor.html - find some previous definition - clone it - modify as needed how to submit jobs soldierfield-clued0:~/dstar> cd soldierfield-clued0:~> ls Mail dedx dstar hcp2002 higz_windows.dat last.kumac soldierfield-clued0:~> cd /work/sibir-clued0/nomerot soldierfield-clued0:/work/sibir-clued0/nomerot> setup D0RunII p14.03.00 ** unsetup D0RunII current **** setup D0RunII p14.03.00 soldierfield-clued0:/work/sibir-clued0/nomerot> setup d0cvs soldierfield-clued0:/work/sibir-clued0/nomerot> newrel -t p14.03.00 p14.03.00 Creating a test release "p14.03.00" in the directory /work/sibir-clued0/nomerot soldierfield-clued0:/work/sibir-clued0/nomerot> cd p14.03.00/ soldierfield-clued0:/work/sibir-clued0/nomerot/p14.03.00> ls GNUmakefile bin doc include lib man results tmp soldierfield-clued0:/work/sibir-clued0/nomerot/p14.03.00> d0setwa soldierfield-clued0:/work/sibir-clued0/nomerot/p14.03.00> cp ../../burdin/p14.03.00/tarball.tar . soldierfield-clued0:/work/sibir-clued0/nomerot/p14.03.00> cp ../../burdin/p14.03.00/runCABfromSAM.csh . soldierfield-clued0:/work/sibir-clued0/nomerot/p14.03.00> cp ../../burdin/p14.03.00/setup.csh . soldierfield-clued0:/work/sibir-clued0/nomerot/p14.03.00> cat runCABfromSAM.csh #!/bin/tcsh source setup.csh setup sam srt_setup SRT_QUAL=maxopt-strip #if ($1 == "dimuon") then foreach tracking (htfAA) runreco -localfwkrcp -localbuild -localrcp -maxopt-strip -format=ana \ -defname=177886r_tail -group=dzero -nofpe \ -cab -cabtar=tarball.tar -jobs=2 \ -scratch=/work/sibir-clued0/nomerot/p14.03.00 \ -fwkparams -tracking ${tracking} end #endif #-num=$2 soldierfield-clued0:/work/sibir-clued0/nomerot/p14.03.00> kinit Password for nomerot@FNAL.GOV: soldierfield-clued0:/work/sibir-clued0/nomerot/p14.03.00> ./runCABfromSAM.csh INFORMATIONAL: Product 'n32' (with qualifiers ''), has no current chain (or may not exist) ** unsetup D0RunII p14.03.00 **** setup D0RunII p14.03.00 You are running on the collection of computers known as clued0 cabSubmit - d0tools job submission interface for RAC [v00-00-04 of 02/07/2003] preparing batch jobs for submission cabSubmit - please wait, job preparation will take approximately 20 seconds project start done workers .. done project stop done cabSubmit - please wait, job submission will take approximately 40 seconds no output will appear on the screen - please do not press Ctrl-C submit jobs .... done cabSubmit - queued 2 parallel jobs on RAC with ID SAM start project job: 492616.ripon-clued0.fnal.gov worker # 0: 492618.ripon-clued0.fnal.gov worker # 1: 492619.ripon-clued0.fnal.gov SAM stop project job: 492620.ripon-clued0.fnal.gov SAM project: nomerot-14Jul2003112603 cabSubmit - your output will appear on soldierfield-clued0 in the following directories: /work/sibir-clued0/nomerot/p14.03.00/D0reco_x-p14.03.00-maxopt-strip-Linux-177886r_tail-492618 /work/sibir-clued0/nomerot/p14.03.00/D0reco_x-p14.03.00-maxopt-strip-Linux-177886r_tail-492619 stdout/stderr in /d0mino/nomerot/start-rund0exe.[o/e]492616 stdout/stderr in /d0mino/nomerot/wk00-rund0exe.[o/e]492618 stdout/stderr in /d0mino/nomerot/wk01-rund0exe.[o/e]492619 stdout/stderr in /d0mino/nomerot/stop-rund0exe.[o/e]492620 cabSubmit - done how to look at CAB queue soldierfield-clued0:/work/sibir-clued0/nomerot/p14.03.01> qstat -a @d0mino d0mino.fnal.gov: Req'd Req'd Elap Job ID Username Queue Jobname SessID NDS TSK Memory Time S Time --------------- -------- -------- ---------- ------ --- --- ------ ----- - ----- 313745.ripon-cl mverzocc sam_hi wk03-rund0 -- 1 -- -- -- R -- 313746.ripon-cl mverzocc sam_hi wk04-rund0 -- 1 -- -- -- R -- 359073.ripon-cl lebihan medium rund0exe 12682 1 -- -- -- R 68:31 359075.ripon-cl lebihan medium rund0exe 13014 1 -- -- -- R 68:30 366911.ripon-cl juste medium cab.sh 21148 1 -- -- -- R 55:06 368494.ripon-cl juste medium cab.sh 19567 1 -- -- -- R -- 394374.ripon-cl dalton sam_lo wk01-rund0 28760 1 -- -- -- R -- . . 577080.ripon-cl nomerot sam_lo start-rund 20838 1 -- -- -- R 00:14 577081.ripon-cl nomerot sam_lo wk00-rund0 -- 1 -- -- -- H -- 577082.ripon-cl nomerot sam_lo wk01-rund0 -- 1 -- -- -- H -- 577083.ripon-cl nomerot sam_lo stop-rund0 -- 1 -- -- -- H -- how to recover unprocessed files 1) find bad files soldierfield-clued0:/work/sibir-clued0/nomerot/p14.03.01> grep -F "SAM:" /work/sibir-clued0/nomerot/p14.03.01/D0reco_x-p14.03.01-maxopt-strip-Linux-*/D0reco_x.log Binary file /work/sibir-clued0/nomerot/p14.03.01/D0reco_x-p14.03.01-maxopt-strip-Linux-179557r_aug1_15-577104/D0reco_x.log matches Binary file /work/sibir-clued0/nomerot/p14.03.01/D0reco_x-p14.03.01-maxopt-strip-Linux-179558r_aug1_15-577111/D0reco_x.log matches Binary file /work/sibir-clued0/nomerot/p14.03.01/D0reco_x-p14.03.01-maxopt-strip-Linux-Clone-179598r_aug1_25-577203/D0reco_x.log matches Binary file /work/sibir-clued0/nomerot/p14.03.01/D0reco_x-p14.03.01-maxopt-strip-Linux-Clone-179598r_aug1_25-577204/D0reco_x.log matches 2) Find the name of your SAM project. It can be obtained e.g. in D0reco_x.out file: .... SAMManager:sam ENV variable: AnalysisProject = bgv-14Jul2003192418 .... (reminder: for all parallel jobs within one submitted task the project_name is the same) 3) soldierfield-clued0:/work/sibir-clued0/nomerot/p14.03.00> sam translate constraints --dim="__set__ 177885r_jun15_30 minus (project_name nomerot-14Jul2003213427 and consumed_status consumed)" Files: reco_all_0000177885_030.raw_p14.03.00_000 File Count: 1 Average File Size: 485917 Total File Size: 485917 Total Event Count: 2159 soldierfield-clued0:/work/sibir-clued0/nomerot/p14.03.00> sam define dataset --defname="177885r_jun15_30_recover" --group=dzero --dim="__set__ 177885r_jun15_30 minus (project_name nomerot-14Jul2003213427 and consumed_status consumed)" Dataset definition created with Id: 79753