8 while(currentIndex < 8) {
10 if(channel ==
nullptr) {
13 if(channel->GetClassType() != TTAC::Class()) {
16 fOffset[currentIndex] =
static_cast<double>(channel->GetTimeOffset());
18 std::cout <<
"Current TAC offset in the calfile: " <<
fOffset[currentIndex] <<
" for channel #" << channelNumber << std::endl;
24 for(
int i = 0; i <
fOffset.size(); ++i) {
25 fH1[slot][Form(
"TacOffset_%d", i)] =
new TH1D(Form(
"TacOffset_%d", i), Form(
"Time difference between TAC and LaBr %d; time (ns); counts/ns", i), 10000, -5000., 5000.);
26 fH1[slot][Form(
"TacOffsetCorrected_%d", i)] =
new TH1D(Form(
"TacOffsetCorrected_%d", i), Form(
"Time difference between TAC and LaBr %d, corrected by TAC offset; time (ns); counts/ns", i), 10000, -5000., 5000.);
27 fH1[slot][Form(
"TimeDiff_%d", i)] =
new TH1D(Form(
"TimeDiff_%d", i), Form(
"Time difference for LaBr %d - LaBr with TAC coincidence; time (ns); counts/ns", i), 10000, -5000., 5000.);
28 fH1[slot][Form(
"TimeDiffNoTac_%d", i)] =
new TH1D(Form(
"TimeDiffNoTac_%d", i), Form(
"Time difference for LaBr %d - LaBr without TAC coincidence; time (ns); counts/ns", i), 10000, -5000., 5000.);
29 fH1[slot][Form(
"TimeStampDiff_%d", i)] =
new TH1D(Form(
"TimeStampDiff_%d", i), Form(
"Timestamp difference for LaBr %d - LaBr with TAC coincidence; time (ns); counts/ns", i), 10000, -5000., 5000.);
30 fH1[slot][Form(
"TimeStampDiffNoTac_%d", i)] =
new TH1D(Form(
"TimeStampDiffNoTac_%d", i), Form(
"Timestamp difference for LaBr %d - LaBr without TAC coincidence; time (ns); counts/ns", i), 10000, -5000., 5000.);
32 fH1[slot][
"TimeStampDiffGriffin"] =
new TH1D(
"TimeStampDiffGriffin",
"Timestamp difference for HPGe - LaBr, with TAC coincidence; time (ns); counts/ns", 10000, -5000., 5000.);
33 fH1[slot][
"TimeDiffGriffin"] =
new TH1D(
"TimeDiffGriffin",
"Time difference for HPGe - LaBr, with TAC coincidence; time (ns); counts/ns", 10000, -5000., 5000.);
46 if(nofLaBr != 2) {
return; }
52 if(labr0->GetDetector() == labr1->GetDetector()) {
return; }
56 fH1[slot].at(Form(
"TimeDiffNoTac_%d", labr1->GetDetector() - 1))->Fill(labr1->GetTime() - labr0->GetTime());
57 fH1[slot].at(Form(
"TimeStampDiffNoTac_%d", labr1->GetDetector() - 1))->Fill(
static_cast<Double_t
>(labr1->GetTimeStampNs() - labr0->GetTimeStampNs()));
60 if(labr0->GetDetector() > labr1->GetDetector()) {
61 std::swap(labr0, labr1);
66 if(labr0->GetDetector() == tac0->GetDetector()) {
67 fH1[slot].at(Form(
"TacOffset_%d", tac0->GetDetector() - 1))->Fill(labr0->GetTime() - tac0->GetTime() +
fOffset[tac0->GetDetector() - 1] * 10.);
68 fH1[slot].at(Form(
"TacOffsetCorrected_%d", tac0->GetDetector() - 1))->Fill(labr0->GetTime() - tac0->GetTime());
69 fH1[slot].at(Form(
"TimeDiff_%d", labr1->GetDetector() - 1))->Fill(labr1->GetTime() - labr1->GetTime());
70 fH1[slot].at(Form(
"TimeStampDiff_%d", labr1->GetDetector() - 1))->Fill(
static_cast<Double_t
>(labr1->GetTimeStampNs() - labr0->GetTimeStampNs()));
71 for(
int i = 0; i < nofGrif; ++i) {
73 fH1[slot].at(
"TimeDiffGriffin")->Fill(grif1->GetTime() - labr0->GetTime());
74 fH1[slot].at(
"TimeStampDiffGriffin")->Fill(
static_cast<Double_t
>(grif1->GetTimeStampNs() - labr0->GetTimeStampNs()));