Database
Updated on Tue, 2009-06-09 09:40 by testadmin. Originally created by staruser on 2006-10-26 08:53.
Under:
How do I force St_db_Maker to use the event time I specify?
If you're running over simulation files, where the event timestamp is not a meaningful quantity (at least, it's not meaningful for the BEMC database), you need to choose a particular event timestamp that best represents the state of the BEMC during the data-taking period to which you're comparing the simulations. A list of timestamps is being compiled at Simulation Timestamps. Add the following lines of code to your macro, and change myDate and myTime as appropriate:
These pages describe how to use the BEMC database. There is a browser-based tool that you can use to view any and all BEMC tables available at:
http://www.star.bnl.gov/Browser/BEMC/
Frequently Asked Questions
How do I use the database as it looked at a particular time?
You might be interested in this tip if e.g. you want to repeat an analysis performed before additional tables were added to the BEMC database. Add the following lines of code to your macro after St_db_Maker is instantiated, and change myDate and myTime as appropriate:
Int_t myDate = 20051231;
Int_t myTime = 235959;
dbMaker->SetMaxEntryTime(myDate,myTime);
How do I force St_db_Maker to use the event time I specify?
If you're running over simulation files, where the event timestamp is not a meaningful quantity (at least, it's not meaningful for the BEMC database), you need to choose a particular event timestamp that best represents the state of the BEMC during the data-taking period to which you're comparing the simulations. A list of timestamps is being compiled at Simulation Timestamps. Add the following lines of code to your macro, and change myDate and myTime as appropriate:
Int_t myDate = 20051231;
Int_t myTime = 235959;
dbMaker->SetDateTime(myDate,myTime);
»
- Printer-friendly version
- Login or register to post comments