Skip to content
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
84def80
added ftof and ctof fadc time offset
raffaelladevita Jan 28, 2025
457e818
added htcc npe -> adc conversion factors from ccdb, removing the hard…
raffaelladevita Jan 28, 2025
0edf43e
Merge branch 'gemc:main' into dc_ec
raffaelladevita Oct 7, 2025
516f22f
Merge branch 'gemc:main' into dc_ec
raffaelladevita Nov 7, 2025
8b01e78
added TDC jitter, OF adc-tdc offsets, updated TW for FTOF and added h…
raffaelladevita Nov 7, 2025
0b3a2e7
fix bug in TDC jitter formula when ncycle is 0
raffaelladevita Jan 7, 2026
17106e9
Merge branch 'gemc:main' into dc_ec
raffaelladevita Jan 9, 2026
ce3c3c8
switching DC hit process to v2 constants tables
raffaelladevita Jan 13, 2026
b984674
fixed sign of old FTOF time walk correction
raffaelladevita Jan 13, 2026
4103b17
Revert "reverted changes to pre real run number for ecal"
raffaelladevita Apr 7, 2026
ae6ff8b
Merge branch 'dc_ec' into realRunNumbers: importing changes for real run
raffaelladevita Apr 7, 2026
f5c4fb8
changed sign of RF offsets, so that the numbers in CCDB are effective…
raffaelladevita Apr 9, 2026
4dd7d2d
Reading BMT drift HV from CCDB, as in reconstruction
raffaelladevita Apr 13, 2026
27f4e37
Merge branch 'gemc:main' into realRunNumbers
raffaelladevita Apr 24, 2026
b3f56f1
added beta-dependent timewalk contribution to time-2-distance
Apr 28, 2026
fb07b73
Merge pull request #7 from zieglerv/main
raffaelladevita Apr 29, 2026
4cd3108
added missing function prototype
raffaelladevita Apr 30, 2026
ec3f8fe
Merge branch 'main' into realRunNumbers
maureeungaro May 4, 2026
5316e95
Merge branch 'gemc:main' into realRunNumbers
raffaelladevita Jun 30, 2026
ba3444f
fixed bug in CTOF hposbin
raffaelladevita Jul 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions source/hitprocess/clas12/ctof_hitprocess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static ctofConstants initializeCTOFConstants(int runno, string digiVariation = "
isec = data[row][0];
ilay = data[row][1];
for(unsigned bin=0; bin<=ctc.hposbins; bin++) {
ctc.hpos[isec-1][ilay-1][bin].push_back(data[row][3+bin]);
ctc.hposbin[isec-1][ilay-1][bin].push_back(data[row][3+bin]);
}
}

Expand Down Expand Up @@ -214,6 +214,7 @@ static ctofConstants initializeCTOFConstants(int runno, string digiVariation = "
calib->GetCalib(data, ctc.database);
for (unsigned row = 0; row < data.size(); row++) {
double sigma = data[row][3];

ctc.tres.push_back(sigma);
}

Expand Down Expand Up @@ -376,10 +377,11 @@ map<string, double> ctof_HitProcess::integrateDgt(MHit* aHit, int hitn)
//double B = ctc.twlk[sector-1][layer-1][1][paddle-1];
//double C = ctc.twlk[sector-1][layer-1][2][paddle-1];
//double timeWalkUp = A/(B+C*sqrt(adcu));
double hpos = ctc.hpos[sector-1][layer-1][0][paddle-1] * exp(ctc.hpos[sector-1][layer-1][1][paddle-1]/cm * y);
double ylab = tInfos.z;
double hpos = ctc.hpos[sector-1][layer-1][0][paddle-1] * exp(ctc.hpos[sector-1][layer-1][1][paddle-1]/cm * ylab);
if(ctc.hposbin[sector-1][layer-1][0][paddle-1]>0) {
int bin = (int) floor(y/cm) + ctc.hposbins/2;
hpos += ctc.hposbin[sector-1][layer-1][bin+1][paddle-1];
int bin = (int) floor(ylab/cm) + ctc.hposbins/2;
hpos = ctc.hposbin[sector-1][layer-1][bin+1][paddle-1];
}

double tU = tInfos.time + d/ctc.veff[sector-1][layer-1][side][paddle-1]/cm + (1. - 2. * side)*ctc.toff_UD[sector-1][layer-1][paddle-1]/2.
Expand Down
Loading