Skip to content

Commit dadded3

Browse files
zhux97starsdong
andauthored
Backport the latest TpcRS code and Run19 parameters to SL21c (#294)
* Backport PR#281 to SL21c * Update StMcEventMaker.cxx Remove "#ifdef 0" that commented out some subsystem hits * Backport the latest TpcRS code and Run19 parameters to SL21c Co-authored-by: Xin Dong <[email protected]>
1 parent aa22bda commit dadded3

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

StRoot/StTpcRSMaker/StTpcRSMaker.cxx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ Int_t StTpcRSMaker::Make(){ // PrintInfo();
819819
TrackSegmentHits[nSegHits].indx = indx;
820820
TrackSegmentHits[nSegHits].s = tpc_hitC->length;
821821
if (tpc_hitC->length == 0 && nSegHits > 0) {
822-
TrackSegmentHits[nSegHits].s = TrackSegmentHits[nSegHits-1].s + TrackSegmentHits[nSegHits].tpc_hitC->ds;
822+
TrackSegmentHits[nSegHits].s = TrackSegmentHits[nSegHits-1].s + tpc_hitC->ds;
823823
}
824824
TrackSegment2Propagate(tpc_hitC, &gver[id3-1],TrackSegmentHits[nSegHits]);
825825
if (TrackSegmentHits[nSegHits].Pad.timeBucket() < 0 || TrackSegmentHits[nSegHits].Pad.timeBucket() > NoOfTimeBins) continue;
@@ -1276,8 +1276,11 @@ Int_t StTpcRSMaker::Make(){ // PrintInfo();
12761276
UInt_t ntimebins = digitalSector->numberOfTimeBins(row,pad);
12771277
if (! ntimebins) continue;
12781278
static Short_t ADCs[__MaxNumberOfTimeBins__];
1279+
#ifdef __TFG__VERSION__
1280+
static Int_t IDTs[__MaxNumberOfTimeBins__];
1281+
#else /* ! __TFG__VERSION__ */
12791282
static UShort_t IDTs[__MaxNumberOfTimeBins__];
1280-
// static Int_t IDTs[__MaxNumberOfTimeBins__];
1283+
#endif /* __TFG__VERSION__ */
12811284
digitalSector->getTimeAdc(row,pad,ADCs,IDTs);
12821285
for (UInt_t t = 0; t < __MaxNumberOfTimeBins__; t++) {
12831286
if (ADCs[t] > 0 && IDTs[t]) {
@@ -1493,7 +1496,11 @@ StTpcDigitalSector *StTpcRSMaker::DigitizeSector(Int_t sector){
14931496
if (gain <= 0.0) continue;
14941497
ped = St_TpcResponseSimulatorC::instance()->AveragePedestal();
14951498
static Short_t ADCs[__MaxNumberOfTimeBins__];
1499+
#ifdef __TFG__VERSION__
1500+
static Int_t IDTs[__MaxNumberOfTimeBins__];
1501+
#else /* ! __TFG__VERSION__ */
14961502
static UShort_t IDTs[__MaxNumberOfTimeBins__];
1503+
#endif /* __TFG__VERSION__ */
14971504
memset(ADCs, 0, sizeof(ADCs));
14981505
memset(IDTs, 0, sizeof(IDTs));
14991506
Int_t NoTB = 0;

StarDb/Calibrations/tpc/TpcResponseSimulator.y2019.C

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ TDataSet *CreateTable() {
8989
row.tauXO = 74.6e-9;// secs Tpx Outer integration time
9090
row.tauCI = 0;
9191
row.tauCO = 0;
92-
row.SigmaJitterTI = 0.52; //1.5*0.4317/4.5;// 0.4317;// 0.25;//ad 0.0;// b for Tpx inner
92+
row.SigmaJitterTI = 0.0; //1.5*0.4317/4.5;// 0.4317;// 0.25;//ad 0.0;// b for Tpx inner
9393
row.SigmaJitterTO = 0.52; //1.5*0.4300/5.;// 0.4300;// E: 0.4801;//0.25;//ad 0.0;// b for Tpx outer
9494
row.SigmaJitterXI = 0.1027785/2.;// 0.1027785; // P: 0.1353*1.05/1.10; //O: 0.1353*1.05;// N: 0.1353; // C:0.;
9595
row.SigmaJitterXO = 0.107525/2.; // 0.107525; // P: 0.1472*1.05/1.03; //O: 0.1472*1.05;// N: 0.1472; // C:0.;
9696
row.longitudinalDiffusion = 0.03624; // Magboltz // HD 0.03624*1.5; //HC 0.03624; // Magboltz
97-
row.longitudinalDiffusionI= row.longitudinalDiffusion;
97+
row.longitudinalDiffusionI= row.longitudinalDiffusion*0.63;
9898
row.transverseDiffusion = 0.02218*TMath::Sqrt(1 + row.OmegaTau*row.OmegaTau) ; // Magboltz
99-
row.transverseDiffusionI = 0.896 *row.transverseDiffusion;
99+
row.transverseDiffusionI = 0.66 *row.transverseDiffusion;
100100
row.NoElPerAdc = 335.; // No. of electrons per 1 ADC count
101101
row.OmegaTauScaleI = 2.145*1.515;// HC 1.;// 2.145*1.515; //i; 2.145*1.4; //h 2.145; //ad 2.145*1.25; //b effective reduction of OmegaTau near Inner sector anode wire
102102
row.OmegaTauScaleO = 1.8 *1.201; //HC 1.;// 1.8 *1.201; //i 1.8 *1.1; //h 1.8; //ad 1.8 *1.25; //b effective reduction of OmegaTau near Outer sector anode wire
@@ -127,8 +127,8 @@ TDataSet *CreateTable() {
127127
//row.T0offset = 0.50 + 1.65431e-01 - 3.45247e-01 -1.54583e+00 -2.90686e-03+ 1.54353e+00 + 0.0191135 -1.20938e-03 ; //E
128128
// row.T0offset = 0.50 -1.43663e-01 -0.00932877;//g // 01/18/12 Xianglei Zhu from Run 11 AuAu 27 & 19.6 GeV embedding
129129
row.T0offset = 0.50 -1.43663e-01 -0.00932877 + 0.0416;//g // 12/18/19 from Run 19 AuAu19.6 GeV simulation
130-
row.T0offsetI = 0.0803082 -0.145027; // ~/work/Tpc/TpcRS/2019/TpcRS_19GeV; TI_1->Fit("pol2"); par[0]
131-
row.T0offsetO = 0.5*(-6.04314e-02-3.44168e-02)-0.00930199;// TO_1->Fit("pol2","er","",-100,0) => par[0] = -6.04314e-02; TO_1->Fit("pol2","er","",0,100); par[0] = -3.44168e-02 ?
130+
row.T0offsetI = -1.58786167960479896e-01;
131+
row.T0offsetO = -1.94071983062808762e-01-1.76429075511644329e-02;
132132

133133
tableSet->AddAt(&row);
134134
// ----------------- end of code ---------------

0 commit comments

Comments
 (0)