- General information
- Data readiness
- Calibration
- BeamLine Constraint
- Calibration Run preparation
- Calibration Schedules
- Calibration topics by dataset
- Docs
- STAR Automated Calibration Project
- SVT Calibrations
- TPC Calibrations
- Drift velocity
- Enter TPC gains into database
- Field Cage Shorts
- Miscellaneous TPC calibration notes
- Padrow 13 and Padrow 40 static distortions
- RunXI dE/dx calibration recipe
- SpaceCharge and GridLeak
- SpaceCharge and GridLeak Calibration How-To Guide
- Effect of SVT and SSD on SpaceCharge Calibration
- SpaceCharge azimuthal anisotropy
- AuAu15 (2014)
- AuAu19 (2011)
- AuAu200 (2004)
- AuAu200 (2007)
- AuAu200 (2011)
- AuAu200 (2014)
- AuAu200 (2016)
- AuAu27 (2011)
- CuAu200 (2012)
- CuCu200 (2005)
- CuCu22 (2005)
- GridLeak R&D
- UU193 (2012)
- dAu20 (2016)
- dAu200 (2008)
- dAu200 (2016)
- dAu39 (2016)
- dAu62 (2016)
- pAl200 (2015)
- pAu200 (2015)
- pp200 (2006)
- pp200 (2009)
- pp200 (2015)
- pp400 (2005)
- pp500 (2011)
- pp510 (2012)
- pp510 (2013)
- pp62 (2006)
- TPC Hit Errors
- TPC OmegaTau
- TPC Sector Alignment
- TPC Slewing
- TPC T0s
- TPC de/dx
- TPC survey instructions
- Twist (ExB) Distortion
- Databases
- Quality Assurance
- Calibration
- Grid and Cloud
- Infrastructure
- Machine Learning
- Offline Software
- Production
- S&C internal group meetings
- Test tree
spaceChargeCorR2.20071101.000001.C
Updated on Thu, 2009-03-19 13:48. Originally created by genevb on 2009-03-19 13:48.
Under:
Note that the ewratio should be set to 1.0 for all symmetric beam species (e.g. AuAu, CuCu, pp). The example shown here is from dAu where the ratio of 1.202 was used.
spaceChargeCorR2.20071101.000001.C
TDataSet *CreateTable() { // ----------------------------------------------------------------- // spaceChargeCorR2 Allocated rows: 1 Used rows: 1 Row size: 56 bytes // Table: spaceChargeCor_st[0]--> spaceChargeCor_st[0] // ==================================================================== // ------ Test whether this table share library was loaded ------ if (!gROOT->GetClass("St_spaceChargeCor")) return 0; spaceChargeCor_st row; St_spaceChargeCor *tableSet = new St_spaceChargeCor("spaceChargeCorR2",1); // memset(&row,0,tableSet->GetRowSize()); row.fullFieldB = 2.82e-7; // Negative Full Field Correction ; row.halfFieldB = 2.82e-7; // Negative Half Field Correction ; row.zeroField = 44; // Zero Field " " ; row.halfFieldA = 2.82e-7; // Postive Half " " ; row.fullFieldA = 2.82e-7; // Postive Full " " ; row.satRate = 1e10; // Saturation Rate Hz ; row.factor = 1; // Multiplicative Factor ; row.detector = 2; // 0=RICH, 1=BBCx, 2=ZDCx, 3=ZDCsum, 4=BBCsum ; row.offset = 270; // 0=RICH, 1=BBC, 2=ZDC ; row.ewratio = 1.202; // 1.202 for dAu, 1.0 for all else tableSet->AddAt(&row); // ----------------- end of code --------------- return (TDataSet *)tableSet; }
Also note that the values stored in the database are easily accessible through some mysql commands from any RCAS node. Here is an example of finding the parameters which were used on May 1, 2008 12:00 GMT:
mysql -h dbx.star.bnl.gov -P 3316 -C Calibrations_rich -e \ 'select * from spaceChargeCorR2 where beginTime<"2008-03-01 12:00:00" \ order by beginTime desc limit 1'
Things can be more complicated. The code is arranged such that multiple detectors can be used in the determination of the luminosity relevant for SpaceCharge. This was true for dAu in Run 8, and this set of commands returns the parameters used on January 23, 2008:
set vtime = "2008-01-23" set btime = `mysql -h dbx.star.bnl.gov -P 3316 -C Calibrations_rich -e \ "select beginTime from spaceChargeCorR2 where beginTime<'$vtime' \ order by beginTime desc limit 1" | grep 20 | cut -d ' ' -f 1,2` mysql -h dbx.star.bnl.gov -P 3316 -C Calibrations_rich -e \ "select * from spaceChargeCorR2 where beginTime='$btime'"
»
- Printer-friendly version
- Login or register to post comments