- login to one of the Linux RCAS machines (rcas60XX) at BNL
- get actual Endcap related code
cvs co offline/EEpromis/g2st
mv offline/EEpromis/g2st/StRoot/EE* StRoot
mv offline/EEpromis/g2st/StRoot/Ste* StRoot
mv offline/EEpromis/g2st/macros .
cons +EE +Ste
- Allow connection to the DB server you want to use, by editing your
~/dbServers.xml . Below is my example:
< server> onlsun1 < /server>
< host> onlsun1.star.bnl.gov < /host>
< port> 3310 < /port>
< socket> /tmp/mysql.3310.sock < /socket>
< databases> TestScheme_emc, StarDb < /databases>
Two valid BD servers are:
duvall:3306 (more stable) or onlsun1:3310 (development)
- Choose the data base version you want to use (e.g. VerC) by means of system variable:
setenv TestScheme_emc VerC
- M-C events stored in StEvent will be converted to raw data blocks
similar to the output of the FEEs and stored in TTree.
Note, the time stamp recorded in StEvent is ignored, you need to set it by hand.
Every event in TTree has two time signatures:
time_t mTimeStamp; //unix time, GMT
The same time stamp of 2002-12-15 is assigned to each M-C event and used to request the FEE mapping from STAR-DB. The inverse mapping is calculated.
The ProcessingTime records just the time when event was processed .
- To produce TTree execute:
root4star -b macros/DoFeeTTreeSimu.C
Edit this script to change the range of sectors you want and the DB time stamp
SteemcDbMaker *myMk1=new SteemcDbMaker("eemcDBio");
myMk1->setTimeStampDay(20021215); // format: yyyymmdd
An example of input file with 100 minb events is at
An example of output file with 100 events is at
- To test consistency of the Fee-like TTree under ROOT (root4star not needed) execute
root -b macros/rdFeeTTree.C