ssh -l jamwer bfb.tier2
klog
cd BbSoft
srtpathLets select some Monte Carlo events from Tau database and run the Example 1 of the reference.
BbkDatasetTcl --dbsite=man --dbuser=bfactory -ds "SP-1005-Tau11-R14" -b SP-1005-OneDatasetBbkDatasetTcl: wrote SP-1005-OneDataset.tcl (310660 events) Selected 4 collections, 310660/15506199 events, ~0.0/pb
BbkDatasetTcl --dbsite=man --dbuser=bfactory -t 10000 -ds "SP-1005-Tau11-R14" -b SP-1005-Tau11-R14
BbkDatasetTcl: wrote SP-1005-Tau11-R14-1.tcl (90487 events) BbkDatasetTcl: wrote SP-1005-Tau11-R14-2.tcl (113467 events) BbkDatasetTcl: wrote SP-1005-Tau11-R14-3.tcl (36514 events) BbkDatasetTcl: wrote SP-1005-Tau11-R14-4.tcl (70192 events) Selected 4 collections, 310660/15506199 events, ~0.0/pbDO NOT use * when generating tcl files, because it mixes different datasets and sometimes can result in a huge number of files being selected, and takes ages to run! Mixing different datasets is potentially dangerous.
cd workdirYou need to create a pointer to the Configuration Database, which contains the equipment configuration and calibration. There are two versions of CondDB: the light and full versions. To use the LIGHT version, create a file with the pointers:
vi cond14boot.sh
OO_FD_BOOT=/nfs/babar02/Production/databases/conditions/physics/198/BaBar.BOOT export OO_FD_BOOT echo Setting OO_FD_BOOT to $OO_FD_BOOT
. ./cond14boot.sh <== Warnning! DOT SPACE dot slash cond14boot.shSetting OO_FD_BOOT to /nfs/babar02/Production/databases/conditions/physics/198/BaBar.BOOT
The first dot is needed to make the setting of the environment variable OO_FD_BOOT that cond14boot does actually get pass back into the session and not just be internal to the script. The second dot and the slash are needed so that you pick up your local script, and not the standard one in bfactory/bin which sets OO_FD_BOOT to some SLAC location.
The FULL version can be used by creating the following script:
vi fullboot.sh OO_FD_BOOT=/nfs/babar02/Production/objy/jamwer/26680/BaBar.BOOT export OO_FD_BOOT echo Setting OO_FD_BOOT to $OO_FD_BOOT. ./fullboot.sh <== Warnning! DOT SPACE dot slash fullboot.sh
Setting OO_FD_BOOT to /nfs/babar02/Production/objy/jamwer/26680/BaBar.BOOTCopy the test dataset pointer to your workdir. You can create one workdir per analysis program, and keep the tcl files in the BbSoft directory. Later, I will advise the more confortable way to handle your tcl snippets.
cp ../SP-1005-Tau11-R14-1.tcl .Parameters in software previous versions are defined through environment parameters. This version uses variables to set operational conditions. The example 1 uses the following variables, tailored to our environment (page 10, Table 6):
vi myMiniAnalysisJob.tcl
set ConfigPatch MC set levelOfDetail cache set BetaMiniTuple hbook set histFileName myMiniAnalysisJob.hbk set NEvent 100 source SP-1005-Tau11-R14-1.tcl sourceFoundFile BetaMiniUser/MyMiniAnalysis.tcl If you want to know all the possible options you can set with BetaMiniApp, type the command:BetaMiniApp helpIf you want to save the outputs in a file called saida, type the command:BetaMiniApp myMiniAnalysisJob.tcl > saidaTo see the results in the screen:BetaMiniApp myMiniAnalysisJob.tclset levelOfDetail cache ;# set to default set ConfigPatch MC ;# set to default ... BetaMiniSequence.tcl::Error: Turning off broken physics code BetaMiniSequence.tcl::Error: Disabling TrkEffTableCreateor: this module looks for a track efficiency file on beginJob ... PrintParms (disabled) print parameter values ReportFPE (enabled) handle and report floating point exceptions MyMiniAnalysis (enabled) MyMiniAnalysis Using KanAccess file /afs/hep.man.ac.uk/g/bfactory/kanga/config/KanAccess.cfg RZMAKE. new RZ format selected. This file will not be readable with versions of RZ prior to release 94B CdbBdbInit::CdbBdbInit.cc(153):CdbBdbInit: Using CDB view ":: ". EmcBuildGeom::BdbTclModuleProxy.cc(121): CONTAINER DOES NOT EXIST BtaBuildPidEnv::AbsEnv.cc(379):Overriding BtaEnv object in global environment. EffTableLoader:Loading from the conditions database /physicstools/trk/svt_tables/average EffTableLoader:Loading from the conditions database /physicstools/trk/svt_tables/pos EffTableLoader:Loading from the conditions database /physicstools/trk/svt_tables/neg KanEventInput::KanEventInput.cc(661):Opening collection /store/SPskims/R12/14.4.2b/Tau11/00/001005/200009/Tau11_001005_1253 KanEventInput::KanFileReg.cc(322):KanFileReg: read UUID 84b96d6c-cd3b-11d8-9fa7-a0a07aa5c834 EvtCounter: processing event # 1 [ 1d:ffffffff:00002d/9c33ebcb:W ] KanEventUpdateAllTheRest::KanTreeBase.cc(235):No Branch called Emc KanEventUpdateAllTheRest::KanNewScribe.cc(513): cannot find a branchObject Emc KanEventUpdateAllTheRest::KanTreeBase.cc(235):No Branch called Emc_CandListBank KanEventUpdateAllTheRest::KanNewScribe.cc(513): cannot find a branchObject Emc_CandListBank KanEventUpdateAllTheRest::KanTreeBase.cc(235):No Branch called L1Glt KanEventUpdateAllTheRest::KanNewScribe.cc(513): cannot find a branchObject L1Glt KanEventUpdateAllTheRest::KanTreeBase.cc(235):No Branch called Reco_EmcCands KanEventUpdateAllTheRest::KanNewScribe.cc(513): cannot find a branchObject Reco_EmcCands KanEventUpdateAllTheRest::KanNewScribe.cc(355): couldn't make a transient on read for L1FctSimTimeK This is either the first event (probably normal) or whether or not it is there is changing from event to event (not expected). EmcDigiCalib Constants Info for /emc/EmcSrcCalType: Begin: Wed Jan 2 00:00:01 1901 (local time) 0 ns, End: Wed Jan 2 00:00:01 1991 (local time) 0 ns, Created: Mon Sep 30 20:16:09 2002 (local time) 264456200 ns EmcDigiCalib Constants Info for /emc/EmcBhabhaType: Begin: Wed Jan 2 00:00:01 1901 (local time) 0 ns, End: Fri Jan 1 08:00:01 1999 (local time) 0 ns, Created: Tue Oct 1 23:27:54 2002 (local time) 941506800 ns Global Calibrator - EmcMkIIComboCalibrator: Begin: Tue Jan 1 00:00:01 1901 (local time) 0 ns, End: Thu Jan 1 08:00:01 1976 (local time) 0 ns, Created: Tue Oct 1 23:32:45 2002 (local time) 48931520 ns EvtCounter: processing event # 2 [ 1d:ffffffff:00002d/9c3403aa:N ] EvtCounter: processing event # 3 [ 1d:ffffffff:00002d/9c359ce2:G ] ... EvtCounter: processing event # 98 [ 1d:ffffffff:00002d/b637d61a:U ] EvtCounter: processing event # 99 [ 1d:ffffffff:00002d/b63805d8:V ] EvtCounter: processing event # 100 [ 1d:ffffffff:00002d/b63857b0:M ] EvtCounter:EvtCounter: total number of events=100 total number of events processed=100 total number of events skipped=0 EvtCounter:Total CPU usage: 12 User: 12 System: 0 DchBuildEnv::AbsEnv.cc(235):Overriding DchEnv object in global environment. TagFilterByName:TagFilterByName: endJob summary: Events processed: 0 Events passed : 0 Events prescaled: 0 IfrMuMuCalib end job IfrMakeChargedPid:IfrMakeChargedPid end Job GoodTrackVeryLooseSelection:GoodTrackVeryLooseSelection selected 278 of 450 candidates. GoodTrackAccSelection:GoodTrackAccSelection selected 405 of 450 candidates. Map QA module for mini/micro (QaBtaStat) is empty Map QA module for mini/micro (QaMiniStat) is empty Map QA module for mini/micro (QaPidStat) is empty Map QA module for mini/micro (QaMCStat) is empty QaMiniTrkMap: used hypo vs. requested hypo *-----*-----*-----*-----*-----* 4| 0| 0| 0| 0| 0| 3| 0| 0| 0| 0| 0| 2| 0| 0| 0| 0| 0| 1| 0| 0| 0| 0| 0| 0| 0| 0| 0| 0| 0| *-----*-----*-----*-----*-----* 0 1 2 3 4 MinimumIoniziongMuonMicroSelection:MinimumIoniziongMuonMicroSelection selected 0 of 0 candidates. VeryLooseMuonMicroSelection:VeryLooseMuonMicroSelection selected 0 of 0 candidates. LooseMuonMicroSelection:LooseMuonMicroSelection selected 0 of 0 candidates. TightMuonMicroSelection:TightMuonMicroSelection selected 0 of 0 candidates. VeryTightMuonMicroSelection:VeryTightMuonMicroSelection selected 0 of 0 candidates. LikeVeryLooseMuonSelection:LikeVeryLooseMuonSelection selected 0 of 0 candidates. LikeLooseMuonSelection:LikeLooseMuonSelection selected 0 of 0 candidates. LikeTightMuonSelection:LikeTightMuonSelection selected 0 of 0 candidates. NNVeryLooseMuonSelection:NNVeryLooseMuonSelection selected 0 of 0 candidates. NNLooseMuonSelection:NNLooseMuonSelection selected 0 of 0 candidates. NNTightMuonSelection:NNTightMuonSelection selected 0 of 0 candidates. NNVeryTightMuonSelection:NNVeryTightMuonSelection selected 0 of 0 candidates. NNVeryLooseMuonSelectionFakeRate:NNVeryLooseMuonSelectionFakeRate selected 0 of 0 candidates. NNLooseMuonSelectionFakeRate:NNLooseMuonSelectionFakeRate selected 0 of 0 candidates. NNTightMuonSelectionFakeRate:NNTightMuonSelectionFakeRate selected 0 of 0 candidates. NNVeryTightMuonSelectionFakeRate:NNVeryTightMuonSelectionFakeRate selected 0 of 0 candidates. NoCalElectronMicroSelection:NoCalElectronMicroSelection selected 0 of 0 candidates. VeryLooseElectronMicroSelection:VeryLooseElectronMicroSelection selected 0 of 0 candidates. LooseElectronMicroSelection:LooseElectronMicroSelection selected 0 of 0 candidates. TightElectronMicroSelection:TightElectronMicroSelection selected 0 of 0 candidates. VeryTightElectronMicroSelection:VeryTightElectronMicroSelection selected 0 of 0 candidates. PidRoyElectronSelectionLoose:PidRoyElectronSelectionLoose selected 0 of 0 candidates. PidLHElectronSelector:PidLHElectronSelector selected 0 of 0 candidates. VeryLooseKaonMicroSelection:VeryLooseKaonMicroSelection selected 0 of 0 candidates. LooseKaonMicroSelection:LooseKaonMicroSelection selected 0 of 0 candidates. TightKaonMicroSelection:TightKaonMicroSelection selected 0 of 0 candidates. VeryTightKaonMicroSelection:VeryTightKaonMicroSelection selected 0 of 0 candidates. NotPionKaonMicroSelection:NotPionKaonMicroSelection selected 0 of 0 candidates. NotPionKaonGTLMicroSelection:NotPionKaonGTLMicroSelection selected 0 of 0 candidates. PidRoyKaonSelectionLoose:PidRoyKaonSelectionLoose selected 0 of 0 candidates. PidRoyKaonSelectionDefault:PidRoyKaonSelectionDefault selected 0 of 0 candidates. PidRoyKaonSelectionNotPion:PidRoyKaonSelectionNotPion selected 0 of 0 candidates. PidRoyKaonSelectionNotPionOrUnknown:PidRoyKaonSelectionNotPionOrUnknown selected 0 of 0 candidates. PidSimpleKaonSelectionLoose:PidSimpleKaonSelectionLoose selected 0 of 0 candidates. PidSimpleKaonSelectionTight:PidSimpleKaonSelectionTight selected 0 of 0 candidates. VeryLooseNNKaonMicroSelection:VeryLooseNNKaonMicroSelection selected 0 of 0 candidates. LooseNNKaonMicroSelection:LooseNNKaonMicroSelection selected 0 of 0 candidates. TightNNKaonMicroSelection:TightNNKaonMicroSelection selected 0 of 0 candidates. VeryTightNNKaonMicroSelection:VeryTightNNKaonMicroSelection selected 0 of 0 candidates. NotPionNNKaonMicroSelection:NotPionNNKaonMicroSelection selected 0 of 0 candidates. NotPionLHKaonMicroSelection:NotPionLHKaonMicroSelection selected 0 of 0 candidates. VeryLooseLHKaonMicroSelection:VeryLooseLHKaonMicroSelection selected 0 of 0 candidates. LooseLHKaonMicroSelection:LooseLHKaonMicroSelection selected 0 of 0 candidates. TightLHKaonMicroSelection:TightLHKaonMicroSelection selected 0 of 0 candidates. VeryTightLHKaonMicroSelection:VeryTightLHKaonMicroSelection selected 0 of 0 candidates. PidRoyPionSelectionLoose:PidRoyPionSelectionLoose selected 0 of 0 candidates. PidRoyPionSelectionNotKaon:PidRoyPionSelectionNotKaon selected 0 of 0 candidates. VeryLooseLHPionMicroSelection:VeryLooseLHPionMicroSelection selected 0 of 0 candidates. LooseLHPionMicroSelection:LooseLHPionMicroSelection selected 0 of 0 candidates. TightLHPionMicroSelection:TightLHPionMicroSelection selected 0 of 0 candidates. VeryTightLHPionMicroSelection:VeryTightLHPionMicroSelection selected 0 of 0 candidates. GrlLooseProtonSelection:GrlLooseProtonSelection selected 0 of 0 candidates. GrlDefaultProtonSelection:GrlDefaultProtonSelection selected 0 of 0 candidates. GrlTightProtonSelection:GrlTightProtonSelection selected 0 of 0 candidates. VeryLooseLHProtonSelection:VeryLooseLHProtonSelection selected 0 of 0 candidates. LooseLHProtonSelection:LooseLHProtonSelection selected 0 of 0 candidates. TightLHProtonSelection:TightLHProtonSelection selected 0 of 0 candidates. VeryTightLHProtonSelection:VeryTightLHProtonSelection selected 0 of 0 candidates. KlongIfrLooseMicroSelection:KlongIfrLooseMicroSelection selected 0 of 0 candidates. KlongIfrTightMicroSelection:KlongIfrTightMicroSelection selected 0 of 0 candidates. KlongEmcLooseMicroSelection:KlongEmcLooseMicroSelection selected 0 of 0 candidates. KlongEmcTightMicroSelection:KlongEmcTightMicroSelection selected 0 of 0 candidates. MergedPi0MicroSelectionLoose:MergedPi0MicroSelectionLoose selected 0 of 0 candidates. MergedPi0MicroSelectionTight:MergedPi0MicroSelectionTight selected 0 of 0 candidates. TaggingDispatch:TaggingDispatch selected 0 of 0 candidates. LooseGammaTagSelection:LooseGammaTagSelection selected 0 of 0 candidates. TightGammaTagSelection:TightGammaTagSelection selected 0 of 0 candidates. TaggingMcControl:TaggingMcControl selected 0 of 0 candidates. GoodPhotonsVisibleESelection:GoodPhotonsVisibleESelection selected 0 of 0 candidates. GoodTracksVisibleESelection:GoodTracksVisibleESelection selected 0 of 0 candidates. GoodPhotonTightAccSelection:GoodPhotonTightAccSelection selected 0 of 0 candidates. B0ToEtacKs_Final:B0ToEtacKs_Final end Job BchToEtacKch_Final:BchToEtacKch_Final end Job CompBFast3body:Selected 0 candidates. GoodTracksVeryLoose_BFlav:GoodTracksVeryLoose_BFlav selected 0 of 0 candidates. GoodTracksSemiVeryLoose_BFlav:GoodTracksSemiVeryLoose_BFlav selected 0 of 0 candidates. GoodTracksVeryLooseSoft_BFlav:GoodTracksVeryLooseSoft_BFlav selected 0 of 0 candidates. GoodTracksVeryLooseHard_BFlav:GoodTracksVeryLooseHard_BFlav selected 0 of 0 candidates. GoodTracksLoose_BFlav:GoodTracksLoose_BFlav selected 0 of 0 candidates. KMicroVeryLoose_BFlav:KMicroVeryLoose_BFlav selected 0 of 0 candidates. KMicroLoose_BFlav:KMicroLoose_BFlav selected 0 of 0 candidates. KMicroTight_BFlav:KMicroTight_BFlav selected 0 of 0 candidates. KMicroVeryTight_BFlav:KMicroVeryTight_BFlav selected 0 of 0 candidates. KMicroNotPion_BFlav:KMicroNotPion_BFlav selected 0 of 0 candidates. KMicroNotPionGTL_BFlav:KMicroNotPionGTL_BFlav selected 0 of 0 candidates. GoodPhotonSemiLoose_BFlav:GoodPhotonSemiLoose_BFlav selected 0 of 0 candidates. MyMiniAnalysis::MyMiniAnalysis.cc(112): match vs charge *------*------*------* 0.5| 210| 1172| 239| -0.5| 0| 315| 1| *------*------*------* -1.5 -0.5 0.5 TagBGFMultiHadron:TagBGFMultiHadron: endJob summary: Events processed: 0 Events passed : 0 Events prescaled: 0 Framework is exiting now. number of sets to destroy51 Running data and MC with the analysis program.
If you want to run your analysis program with Monte Carlo data, set ConfigPatch in the tcl file to MC. Otherwise use Run2 (which works for Run2,3,4,...) or Run1 (for Run1 only). Generate the dataset using BbkDatasetTcl and replace the file name in the "Source" parameter of tcl job file.Top
|
|
|
Feedback to: jamwer@hep.man.ac.uk |