Pravda Simulation Tool


How to run




Here are some intructions to run the new version of PravdaMC.



The README file of the package contains information 

about the changes to the PravdaMC package with respect

to the original simulation by Anders and Natalia. The original 

code is still in the package, unaltered: only new classes, functions,

data files and modules have been added to the package.  This way, 

present users of the original PravdaMC can still use their

favorite simulation, or they can use the new version which is 

(in principle) back compatible. 



The most important new feature of PravdaMC is the possibility of 

using trackerr for covariance matrix computations and charged 

track smearing.  This is the recommended use of PravdaMC. 



In addition, various calorimeter smearing models are available.



Below are the instructions to install PravdaMC on Linux.



So far the code has been tested on analysis-13b, although it

should work also on analysis-14



1) Build an analysis-13b test release.



> newrel -t analysis-13b 

> cd  

> srtpath 10.4.4-physics-1 Linux24 (or double-return)

> addpkg workdir

> gmake workdir.setup



2) Here is a list of tags to run PravdaMC on top of analysis-13b

(some of them may not be needed for your particular application) 



 BTaggingSequences  V00-00-09     (Release uses V00-00-09)  

 BetaCoreTools      V00-00-31     (Release uses V00-00-31)  

 BetaMicro          rf-061702     (Release uses V00-01-17)   

 BetaPid            V00-01-42-01  (Release uses V00-01-42)   

 BetaSequences      V00-10-09-01  (Release uses V00-10-09)  

 BetaTools          rf-061702     (Release uses V00-10-27)   

 BetaUser           V00-09-31     (Release uses V00-09-31)   

 BtaMicroSequences  V00-01-03-01  (Release uses V00-01-03)   

 CompositionUtils   V00-00-21     (Release uses V00-00-21)   

 PravdaMC           HEAD    (or ff2-030703)

 UpsilonQA          fmv050202     (Release uses V00-00-04)   

 UpsilonTools       V00-00-07     (Release uses V00-00-07)   

 VtxFitter          fmv050202     (Release uses V00-08-60)   



3) Once all the packages are addpkg'd: 



> source PravdaMC/PmcSetup.csh

> gmake lib



4) Build the bin/Linux24/PravdaMCApp executable.



> gmake PravdaMC.all



5) Before running in the 'trackerr' mode, you need to import in 

your workdir the trackerr geometry files:



> cd workdir

> cp ../PravdaMC/*.input .

(or: > ln -sf ../PravdaMC/*.input .)



6) By default, you are going to use the PID efficiency tables to 

fill your PID lists of candidates.  You need to link the appropriate

Pid table directory to your workdir.  At SLAC: 



> ln -sf /nfs/farm/babar/AWG11/PID/pidtables/2001-b1-r10  pidtables



7) Run with the 'trackerr.tcl' configuration file:



> bin/Linux24/PravdaMCApp ../PravdaMC/trackerr.tcl



See the PravdaMC/README and tracker.tcl files for instructions on how 

to customize your simulation.