51 std::shared_ptr<o2::base::GRPGeomRequest> gr,
52 bool isMC) : mDataRequest{dr}, mGGCCDBRequest(gr), mUseMC(isMC) {}
67 std::vector<o2::itsmft::ClusterPattern> mPatterns;
75 double ChipToPhi(
int chip);
76 bool searchBCfromMap(std::map<
long, std::set<int>>& BCperorbit,
long target_orbit,
int target_bc);
78 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest;
79 std::shared_ptr<DataRequest> mDataRequest;
84 int mTF_first_after_dump = 1;
86 int mStrobeFallBack = 594;
87 int mStrobe = mStrobeFallBack;
91 std::pair<double, double> TimeWindowZDC = std::make_pair(5., 11.);
92 std::pair<double, double> TimeWindowZNAr = std::make_pair(5.64507, 9.64507);
93 std::pair<double, double> TimeWindowZNCr = std::make_pair(4.21299, 8.21299);
94 std::pair<double, double> TimeWindowZNAl = std::make_pair(-11.3549, -8.35493);
95 std::pair<double, double> TimeWindowZNCl = std::make_pair(-12.787, -9.78701);
97 int targetClusterMinCol = 128;
98 int targetClusterMaxRow = 29;
103 std::string mOutputChip =
"chipevents";
104 std::string mOutoutChipSkim =
"chipeventstarget";
112 TTree* ITSChipEvtTree;
113 TTree* ITSChipEvtTargetTree;
122 std::vector<float> TclusterPhi, TclusterR, TclusterZ;
123 std::vector<int> TclusterSize, TclusterColSpan, TclusterRowSpan;
125 int Tnhit, Tnclus, Tnhit_no1pix, Tnclus_no1pix;
126 int Tnclus_s20, Tnclus_s100, Tnclus_s150;
127 int Tnclus_c20, Tnclus_c100, Tnclus_c128;
129 double Tnhit1, Tnhit10;
130 int Tmissingafter, Tmissingafter2;
131 int Tmincol, Tmaxcol;
137 if (mSaveClusterParameters) {
139 mGeom->
fillMatrixCache(o2::math_utils::bit2Mask(o2::math_utils::TransformType::L2G));
145 LOGP(info,
"Initializing ITSBeamBackgroundStudy");
147 LOGP(info,
"Fetching ClusterDictionary");
149 mgr.setURL(
"http://alice-ccdb.cern.ch");
156void ITSBeamBackgroundStudy::prepareOutput()
158 LOGP(info,
"Setting up trees and histograms. They will be dumped on file every {} TFs", mDumpEveryTF);
159 LOGP(info,
"Skimmed-only output after TF {}; saving cluster parameters: {}", mSkimmedOnlyAfterTF, mSaveClusterParameters);
161 TimeWindowCut =
new TH1F(
"ZDC bkg region",
"ZNAr, ZNCr, -ZNAl, -ZNCl", 8, 0, 8);
162 TimeWindowCut->SetBinContent(1, TimeWindowZNAr.first);
163 TimeWindowCut->SetBinContent(2, TimeWindowZNAr.second);
164 TimeWindowCut->SetBinContent(3, TimeWindowZNCr.first);
165 TimeWindowCut->SetBinContent(4, TimeWindowZNCr.second);
166 TimeWindowCut->SetBinContent(5, -TimeWindowZNAl.first);
167 TimeWindowCut->SetBinContent(6, -TimeWindowZNAl.second);
168 TimeWindowCut->SetBinContent(7, -TimeWindowZNCl.first);
169 TimeWindowCut->SetBinContent(8, -TimeWindowZNCl.second);
170 ZNACall =
new TH1F(
"ZNACall",
"ZNACall", 40, -20, 20);
171 ZNCCall =
new TH1F(
"ZNCCall",
"ZNCCall", 40, -20, 20);
172 ZDCAtagBC =
new TH1F(
"ZDCA tagged BC",
"ZDCA tagged bc", 3564, 0, 3564);
173 ZDCCtagBC =
new TH1F(
"ZDCC tagged BC",
"ZDCC tagged bc", 3564, 0, 3564);
175 Counters =
new TH1I(
"Counters",
"Counters", 20, 1, 21);
176 Counters->GetXaxis()->SetBinLabel(1,
"TF");
177 Counters->GetXaxis()->SetBinLabel(2,
"ROF");
178 Counters->GetXaxis()->SetBinLabel(3,
"ZDCA evt");
179 Counters->GetXaxis()->SetBinLabel(4,
"ROF-ZDCA tagged");
180 Counters->GetXaxis()->SetBinLabel(5,
"ITStag any");
181 Counters->GetXaxis()->SetBinLabel(6,
"ITStag TO");
182 Counters->GetXaxis()->SetBinLabel(7,
"ITStag any + ZDC");
183 Counters->GetXaxis()->SetBinLabel(8,
"ITStag TO + ZDC");
184 Counters->GetXaxis()->SetBinLabel(9,
"ZDCC evt");
185 Counters->GetXaxis()->SetBinLabel(10,
"ROF-ZDCC tagged");
187 ITSChipEvtTree =
new TTree(
"chipevt",
"chipevt");
190 ITSChipEvtTree->Branch(
"TFprogress", &mTFn,
"TFprogress/I");
191 ITSChipEvtTree->Branch(
"orbit", &Torbit,
"orbit/L");
192 ITSChipEvtTree->Branch(
"bc", &Tbc,
"bc/I");
193 ITSChipEvtTree->Branch(
"chip", &Tchip,
"chip/I");
194 ITSChipEvtTree->Branch(
"phi", &Tphi,
"phi/D");
195 if (mSaveClusterParameters) {
196 ITSChipEvtTree->Branch(
"cluster_phi", &TclusterPhi);
197 ITSChipEvtTree->Branch(
"cluster_r", &TclusterR);
198 ITSChipEvtTree->Branch(
"cluster_z", &TclusterZ);
199 ITSChipEvtTree->Branch(
"cluster_size", &TclusterSize);
200 ITSChipEvtTree->Branch(
"cluster_colspan", &TclusterColSpan);
201 ITSChipEvtTree->Branch(
"cluster_rowspan", &TclusterRowSpan);
203 ITSChipEvtTree->Branch(
"zdctag", &TZDCtag,
"zdctag/I");
204 ITSChipEvtTree->Branch(
"nhit", &Tnhit,
"nhit/I");
205 ITSChipEvtTree->Branch(
"nhit_no1pix", &Tnhit_no1pix,
"nhit_no1pix/I");
206 ITSChipEvtTree->Branch(
"size1", &Tnhit1,
"size1/D");
207 ITSChipEvtTree->Branch(
"size10", &Tnhit10,
"size10/D");
208 ITSChipEvtTree->Branch(
"nclus", &Tnclus,
"nclus/I");
209 ITSChipEvtTree->Branch(
"nclus_no1pix", &Tnclus_no1pix,
"nclus_no1pix/I");
210 ITSChipEvtTree->Branch(
"nclus_target", &Tnclus_target,
"nclus_target/I");
211 ITSChipEvtTree->Branch(
"missingafter", &Tmissingafter,
"missingafter/I");
212 ITSChipEvtTree->Branch(
"missingafter2", &Tmissingafter2,
"missingafter2/I");
213 ITSChipEvtTree->Branch(
"mincol", &Tmincol,
"mincol/I");
214 ITSChipEvtTree->Branch(
"maxcol", &Tmaxcol,
"maxcol/I");
216 ITSChipEvtTargetTree = ITSChipEvtTree->CloneTree(0);
217 ITSChipEvtTargetTree->SetName(
"chipevttarget");
218 ITSChipEvtTargetTree->SetTitle(
"chipevttarget");
225 LOGP(info,
"Writing ROOT file {}", outfile11);
226 TFile* F11 = TFile::Open(outfile11.c_str(),
"recreate");
227 TimeWindowCut->Write();
233 ITSChipEvtTargetTree->Write();
237 if (mTFn <= mSkimmedOnlyAfterTF) {
239 LOGP(info,
"Writing ROOT file {}", outfile1);
240 TFile* F1 = TFile::Open(outfile1.c_str(),
"recreate");
241 TimeWindowCut->Write();
247 ITSChipEvtTree->Write();
248 ITSChipEvtTargetTree->Write();
253 LOGP(info,
"Resetting historgrams and trees");
255 ITSChipEvtTree->Reset();
256 ITSChipEvtTargetTree->Reset();
263 mTF_first_after_dump = mTFn + 1;
268 LOGP(info,
"End of stream for ITSBeamBackgroundStudy");
272 delete TimeWindowCut;
278 delete ITSChipEvtTree;
279 delete ITSChipEvtTargetTree;
285 if (mTFn == std::numeric_limits<int>::max()) {
286 LOGP(
error,
"Max {} TFs exceeded. Skipping all next events", mTFn);
292 if (mDumpEveryTF > 0 && mTFn > 0 && (mTFn % mDumpEveryTF) == 0) {
293 LOGP(info,
"Reached TF #{}. Exporting new root files", mTFn);
300 LOGP(info,
"Calling process() for TF: {}", mTFn);
318 LOGP(fatal,
"ITSBeamBackgroundStudy does not support the per-layer (staggered) ITS clusters input yet");
321 LOGP(info,
"Processing RecoContainer");
324 LOGP(info,
"Retrieving ZDC data");
329 LOGP(info,
"sizeof ZDC RC: {}, {}, {}, {}", RecBC.size(), Energy.size(), TDCData.size(), Info2.size());
331 LOGP(info,
"Retrieving ITS clusters");
335 LOGP(info,
"sizeof ITS RC: {}, {}, {}", clusArr.size(), clusPatt.size(), rofRecVec.size());
338 if (rofRecVec.size() == 576 || rofRecVec.size() == 192) {
339 mStrobe = 3564 / (rofRecVec.size() / 32);
340 LOGP(info,
"Assuimg TF length = 32 orbits and setting strobe length to {} bc", mStrobe);
342 mStrobe = mStrobeFallBack;
343 LOGP(warning,
"Unforeseen number of ROFs in the loop. Using the strobe length fall back value {}", mStrobe);
346 std::map<long, std::set<int>> ZNArtag{};
347 std::map<long, std::set<int>> ZNCrtag{};
348 std::map<long, std::set<int>> ZNAltag{};
349 std::map<long, std::set<int>> ZNCltag{};
355 ev.
init(RecBC, Energy, TDCData, Info2);
357 int bkgcounterAr = 0, bkgcounterCr = 0;
358 int bkgcounterAl = 0, bkgcounterCl = 0;
366 int nhitA = ev.
NtdcV(itdcA);
367 for (
int32_t ipos = 0; ipos < nhitA; ipos++) {
371 ZNACall->Fill(mytdc);
373 if (mytdc >= TimeWindowZNAr.first && mytdc <= TimeWindowZNAr.second) {
378 ZDCAtagBC->Fill(ev.
ir.
bc);
380 if (ZNArtag.find(zdcorbit) != ZNArtag.end()) {
381 bool double_count_bkg = ZNArtag[zdcorbit].insert((
int)ev.
ir.
bc).second;
382 if (double_count_bkg) {
383 LOGP(warning,
"Multiple ZDCAr counts in the same orbit/bc {}/{}", zdcorbit, ev.
ir.
bc);
386 std::set<int> zdcbcs{(int)ev.
ir.
bc};
387 ZNArtag[zdcorbit] = zdcbcs;
392 if (mytdc >= TimeWindowZNAl.first && mytdc <= TimeWindowZNAl.second) {
397 ZDCAtagBC->Fill(ev.
ir.
bc);
399 if (ZNAltag.find(zdcorbit) != ZNAltag.end()) {
400 bool double_count_bkg = ZNAltag[zdcorbit].insert((
int)ev.
ir.
bc).second;
401 if (double_count_bkg) {
402 LOGP(warning,
"Multiple ZDCAl counts in the same orbit/bc {}/{}", zdcorbit, ev.
ir.
bc);
405 std::set<int> zdcbcs{(int)ev.
ir.
bc};
406 ZNAltag[zdcorbit] = zdcbcs;
413 int nhitC = ev.
NtdcV(itdcC);
414 for (
int32_t ipos = 0; ipos < nhitC; ipos++) {
418 ZNCCall->Fill(mytdc);
420 if (mytdc >= TimeWindowZNCr.first && mytdc <= TimeWindowZNCr.second) {
425 ZDCCtagBC->Fill(ev.
ir.
bc);
427 if (ZNCrtag.find(zdcorbit) != ZNCrtag.end()) {
428 bool double_count_bkg = ZNCrtag[zdcorbit].insert((
int)ev.
ir.
bc).second;
429 if (double_count_bkg) {
430 LOGP(warning,
"Multiple ZNCr counts in the same orbit/bc {}/{}", zdcorbit, ev.
ir.
bc);
433 std::set<int> zdcbcs{(int)ev.
ir.
bc};
434 ZNCrtag[zdcorbit] = zdcbcs;
439 if (mytdc >= TimeWindowZNCl.first && mytdc <= TimeWindowZNCl.second) {
444 ZDCCtagBC->Fill(ev.
ir.
bc);
446 if (ZNCltag.find(zdcorbit) != ZNCltag.end()) {
447 bool double_count_bkg = ZNCltag[zdcorbit].insert((
int)ev.
ir.
bc).second;
448 if (double_count_bkg) {
449 LOGP(warning,
"Multiple ZNCl counts in the same orbit/bc {}/{}", zdcorbit, ev.
ir.
bc);
452 std::set<int> zdcbcs{(int)ev.
ir.
bc};
453 ZNCltag[zdcorbit] = zdcbcs;
460 LOGP(info,
"Found background envents from ZNAright/left {}/{} -- from ZNCright/left {}/{}", bkgcounterAr, bkgcounterAl, bkgcounterCr, bkgcounterCl);
463 getClusterPatterns(clusArr, clusPatt, *mDict);
465 int inTFROFcounter = -1;
467 std::vector<bool> ChipSeenInThisROF(N_CHIP_IB,
false);
468 std::vector<bool> ChipSeenInLastROF(N_CHIP_IB,
false);
469 std::vector<bool> ChipSeenInLast2ROF(N_CHIP_IB,
false);
472 for (
auto it = rofRecVec.rbegin(); it != rofRecVec.rend(); ++it) {
480 ChipSeenInLast2ROF = ChipSeenInLastROF;
481 ChipSeenInLastROF = ChipSeenInThisROF;
482 std::fill(ChipSeenInThisROF.begin(), ChipSeenInThisROF.end(),
false);
484 auto clustersInRof = rofRec.getROFData(clusArr);
485 auto patternsInRof = rofRec.getROFData(mPatterns);
487 Tbc = (int)rofRec.getBCData().bc;
488 Torbit = (
long)rofRec.getBCData().orbit;
490 if (inTFROFcounter < 1) {
491 LOGP(info,
"First of TF: ITS orbit/bc {}/{}", Torbit, Tbc);
495 int eff_bc = Tbc + 60;
496 long eff_orbit = Torbit;
503 bool isZNArtagged = searchBCfromMap(ZNArtag, (
long)eff_orbit, eff_bc);
508 bool isZNAltagged = searchBCfromMap(ZNAltag, (
long)eff_orbit, eff_bc);
513 bool isZNCrtagged = searchBCfromMap(ZNCrtag, (
long)eff_orbit, eff_bc);
518 bool isZNCltagged = searchBCfromMap(ZNCltag, (
long)eff_orbit, eff_bc);
524 TZDCtag |= (isZNArtagged << 0);
525 TZDCtag |= (isZNAltagged << 1);
526 TZDCtag |= (isZNCrtagged << 2);
527 TZDCtag |= (isZNCltagged << 3);
530 LOGP(info,
"ZDC tag with mask {}: ZNAright = {} - ZNAleft = {} - ZNCright = {} - ZNCleft = {}",
531 TZDCtag, (TZDCtag >> 0) & 1, (TZDCtag >> 1) & 1, (TZDCtag >> 2) & 1, (TZDCtag >> 3) & 1);
535 std::set<int> AvailableChips{};
536 std::map<int, std::vector<int>> MAPsize{};
537 std::map<int, std::vector<int>> MAPcols{};
538 std::map<int, std::vector<int>> MAProws{};
539 std::map<int, std::vector<o2::math_utils::Point3D<float>>> MAPcoordinates{};
540 std::map<int, int> MAPntarget{};
541 std::map<int, int> MAPcoo_mincol{};
542 std::map<int, int> MAPcoo_maxcol{};
545 int ntarget_in_rof = 0;
546 for (
int iclus = 0; iclus < clustersInRof.size(); iclus++) {
548 const auto& compClus = clustersInRof[iclus];
550 auto chipid = compClus.getSensorID();
557 ChipSeenInThisROF[chipid] =
true;
559 int coo_col = (int)compClus.getCol();
560 int coo_row = (int)compClus.getRow();
562 const auto& patti = patternsInRof[iclus];
563 int npix = patti.getNPixels();
564 int colspan = patti.getColumnSpan();
565 int rowspan = patti.getRowSpan();
567 bool newchip = AvailableChips.insert(chipid).second;
569 MAPsize[chipid] = std::vector<int>{};
570 MAPcols[chipid] = std::vector<int>{};
571 MAPntarget[chipid] = 0;
572 MAPcoo_mincol[chipid] = coo_col;
573 MAPcoo_maxcol[chipid] = coo_col + colspan;
576 MAPsize[chipid].push_back(npix);
577 MAPcols[chipid].push_back(colspan);
578 if (mSaveClusterParameters) {
579 MAProws[chipid].push_back(rowspan);
582 const auto pattID = compClus.getPatternID();
587 MAPcoordinates[chipid].push_back(mGeom->
getMatrixL2G(chipid)(local));
589 if (colspan >= targetClusterMinCol && rowspan <= targetClusterMaxRow) {
591 MAPntarget[chipid] += 1;
594 MAPcoo_mincol[chipid] = TMath::Min(MAPcoo_mincol[chipid], coo_col);
595 MAPcoo_maxcol[chipid] = TMath::Max(MAPcoo_maxcol[chipid], coo_col + colspan);
599 if (ntarget_in_rof == 0 &&
static_cast<int64_t
>(mTFn) >
static_cast<int64_t
>(mSkimmedOnlyAfterTF) + 2) {
604 for (
int ic : AvailableChips) {
608 if (inTFROFcounter < 1) {
610 }
else if (ChipSeenInLastROF[ic]) {
616 if (inTFROFcounter < 2) {
618 }
else if (ChipSeenInLast2ROF[ic]) {
624 Tphi = ChipToPhi(ic);
626 Tnclus = MAPsize[ic].size();
627 if (mSaveClusterParameters) {
628 TclusterSize = MAPsize[ic];
629 TclusterColSpan = MAPcols[ic];
630 TclusterRowSpan = MAProws[ic];
634 for (
const auto& global : MAPcoordinates[ic]) {
635 TclusterPhi.push_back(std::atan2(global.Y(), global.X()));
636 TclusterR.push_back(std::hypot(global.X(), global.Y()));
637 TclusterZ.push_back(global.Z());
640 Tmincol = MAPcoo_mincol[ic];
641 Tmaxcol = MAPcoo_maxcol[ic];
643 std::sort(MAPsize[ic].begin(), MAPsize[ic].
end(), std::greater<>());
645 Tnhit = Tnclus_s20 = Tnclus_s100 = Tnclus_s150 = 0;
646 Tnhit1 = Tnhit10 = 0.;
647 Tnclus_c20 = Tnclus_c100 = Tnclus_c128 = 0;
648 Tnclus_target = MAPntarget[ic];
653 int nclus10 = 0, nclus1 = 0;
655 for (
int nh : MAPsize[ic]) {
674 Tnclus_s20 += (nh >= 20);
675 Tnclus_s100 += (nh >= 100);
676 Tnclus_s150 += (nh >= 150);
679 Tnhit10 = (nclus10 == 0) ? 0. : 1. * Tnhit10 / nclus10;
681 for (
int nc : MAPcols[ic]) {
682 Tnclus_c20 += (nc >= 20);
683 Tnclus_c100 += (nc >= 100);
684 Tnclus_c128 += (nc >= 128);
687 ITSChipEvtTree->Fill();
688 if (Tnclus_target > 0) {
689 ITSChipEvtTargetTree->Fill();
696double ITSBeamBackgroundStudy::ChipToPhi(
int chip)
698 int layer, stave, substave, module, chipInModule;
704bool ITSBeamBackgroundStudy::searchBCfromMap(std::map<
long, std::set<int>>& BCperorbit,
long its_orbit,
int its_bc)
706 auto it = BCperorbit.find(its_orbit);
707 if (it == BCperorbit.end()) {
711 for (
auto bc : it->second) {
712 if ((
bc / mStrobe) == (its_bc / mStrobe)) {
719void ITSBeamBackgroundStudy::getClusterPatterns(gsl::span<const o2::itsmft::CompClusterExt>& ITSclus, gsl::span<const unsigned char>& ITSpatt,
const o2::itsmft::TopologyDictionary& mdict)
722 mPatterns.reserve(ITSclus.size());
723 auto pattIt = ITSpatt.begin();
725 for (
unsigned int iClus{0}; iClus < ITSclus.size(); ++iClus) {
726 auto& clus = ITSclus[iClus];
728 auto pattID = clus.getPatternID();
737 mPatterns.push_back(patt);
747 std::vector<OutputSpec> outputs;
748 auto dataRequest = std::make_shared<DataRequest>();
749 dataRequest->setITSPerLayer(itsStag);
750 dataRequest->requestClusters(srcClustersMask, useMC);
753 dataRequest->requestTracks(srcTracksMask, useMC);
758 auto ggRequest = std::make_shared<o2::base::GRPGeomRequest>(
false,
767 "its-beambkg-study-task",
770 AlgorithmSpec{adaptFromTask<ITSBeamBackgroundStudy>(dataRequest, ggRequest, useMC)},
Definition of the ITSMFT compact cluster.
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to process
configStandalone Reconstruction rec_tpc multiplier for the combined cluster track error during track following area in cm for the search of for z only used if decrease removal by when above this local occupancy rowx Shift of TPC revert cluster flag edge bit distance to edge exceeds this ZOffset for secondary multiple of radius max P of electron K BB bands crossing max P of electron p BB bands crossing max P of electron d BB bands crossing max P of electron t BB bands crossing min accepted dEdxMaxTPC of the track Additive extra cluster error for Y2 if edge flag set Additive extra cluster error for Y2 if single set Additive extra cluster error for Y2 if or single set Additive extra cluster error for Z2 if or single set Extra errors to add to track when crossing depending on addErrorsCECrossing Inner portion of y range in sector that is not used in searching for extrapolated track candidates factor2YS for track merging factor2K for track merging Margin in cm of Y position when rejecting edge clusters based on uncorrected track Y Max fraction of shared clusters for tracklet Except pad from cluster finding if total number of charges in a fragment is above this Except pad from cluster finding if number of consecutive charges in a fragment is above this Threshold where a timebin is considered disabling the noisy pad check for that pad Treat signal above this minimum as saturated Smoothing factor for the exponential Highly Ionising Particle tail filter Number of timebins to use for the averaging Add additional custom track errors when crossing relative as fraction of Do N fit passes in final fit of< 0:reject at max -n hits") AddOptionRTC(rejectIFCLowRadiusCluster, uint8_t, 1, "", 0, "Reject clusters that get the IFC mask error during refit") AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fraction of 128") AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128") AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking(prolong tracks to adjacent sectors to find short segments)") AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit(1:attachment, 2:propagation, 4:loop following, 8:mirroring)") AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression(0=no, 1=strategy A, 2=strategy B)") AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging") AddOptionRTC(compressionTypeMask, uint8_t, o2::gpu::GPUSettings::CompressionFull, "", 0, "TPC Compression mode bits(1=truncate charge/width LSB, 2=differences, 4=track-model)") AddOptionRTC(compressionSortOrder, uint8_t, o2::gpu::GPUSettings::SortTime, "", 0, "Sort order of TPC compression(0=time, 1=pad, 2=Z-time-pad, 3=Z-pad-time, 4=no sorting(use incoming order))") AddOptionRTC(sigBitsCharge, uint8_t, 4, "", 0, "Number of significant bits for TPC cluster charge in compression mode 1") AddOptionRTC(sigBitsWidth, uint8_t, 3, "", 0, "Number of significant bits for TPC cluster width in compression mode 1") AddOptionRTC(dropLoopers, uint8_t, 0, "", 0, "Drop looping tracks starting from second loop") AddOptionRTC(mergerInterpolateErrors, uint8_t, 1, "", 0, "Use interpolation instead of extrapolation for chi2 based cluster rejection") AddOptionRTC(mergerInterpolateRejectAlsoOnCurrentPosition, uint8_t, 1, "", 0, "When using mergerInterpolateErrors, reject based on chi2 twice computed with interpolated and current track position starting from NDF > mergerNonInterpolateRejectMinNDF Merge tracks accross the central electrode Enable PID response Add sub threshold clusters in TPC dEdx computation OR mask of TPC flags that will reject the cluster in alternative dEdx Reject edge clusters based on uncorrected track Y during track fit Increase decrease removal by when on this number of pads from the edge h configStandalone Reconstruction rec_trd Max chi2 for TRD tracklets to be matched to a track Chi2 cut for strict matching mode Number of sigmas for ITS TPC track time error estimate Addition to search road around track prolongation along Y in cm Optimal tracklet rphi resolution in maximum chi2 per attached tracklet for TRD tracks take into account the full likelihood of the slope including exponential tails Tracks with less attached tracklets are discarded after the tracking Post trigger Pile up integration time in BCs fits all iterations but the last one in projections Use material lookup table for TPC refit Apply workarounds to avoid cyclic merge should not be needed tpc dyn configStandalone Processing proc_rtc Replace constant variables static by constexpr expressions Compile RTC in deterministic with NO_FAST_MATH flags and GPUCA_DETERMINISTIC_MODE define Use RTC to optimize GPU code h configStandalone Processing proc_rtctech Use a file lock to serialize access to the cache folder int32_t
Helper for geometry and GRP related CCDB requests.
Header of the General Run Parameters object.
char error[CURL_ERROR_SIZE]
Definition of the GeometryTGeo class.
Class to decode the reconstructed ZDC event (single BC with signal in one of detectors)
void checkUpdates(o2::framework::ProcessingContext &pc)
bool finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj)
static GRPGeomHelper & instance()
void setRequest(std::shared_ptr< GRPGeomRequest > req)
static BasicCCDBManager & instance()
static const ITSBeamBackgroundStudyParamConfig & Instance()
const Mat3D & getMatrixL2G(int sensID) const
static GeometryTGeo * Instance()
void fillMatrixCache(int mask) override
void endOfStream(EndOfStreamContext &) final
This is invoked whenever we have an EndOfStream event.
void init(InitContext &ic) final
void process(o2::globaltracking::RecoContainer &recoData)
void finaliseCCDB(ConcreteDataMatcher &, void *) final
ITSBeamBackgroundStudy(std::shared_ptr< DataRequest > dr, std::shared_ptr< o2::base::GRPGeomRequest > gr, bool isMC)
void run(ProcessingContext &) final
void updateTimeDependentParams(ProcessingContext &pc)
void expandChipInfoSW(int idSW, int &lay, int &sta, int &ssta, int &mod, int &chipInMod) const
expand SW chip ID to HW id's for layer, stave, substave, module, chipOnModule
static constexpr int getNChips()
number of chips per barrel
static constexpr int getFirstStavesOnLr(int l)
numbes of chips per layer
static constexpr int getLayer(int chipSW)
static constexpr int getNStavesOnLr(int l)
first staves of layer
void acquirePattern(iterator &pattIt)
static constexpr unsigned short InvalidPatternID
math_utils::Point3D< T > getClusterCoordinates(const CompCluster &cl) const
const ClusterPattern & getPattern(int n) const
Returns the pattern of the topology.
bool isGroup(int n) const
Returns true if the element corresponds to a group of rare topologies.
GLenum GLuint GLint GLint layer
long getCurrentTimestamp()
returns the timestamp in long corresponding to "now"
Defining ITS Vertex explicitly as messageable.
o2::framework::DataProcessorSpec getITSBeamBackgroundStudy(mask_t srcTracksMask, mask_t srcClustersMask, bool useMC, bool itsStag)
std::string to_string(gsl::span< T, Size > span)
uint16_t bc
bunch crossing ID of interaction
auto getZDCTDCData() const
auto getITSPerLayer() const
auto getITSClustersROFRecords(int layer=0) const
auto getITSClustersPatterns(int layer=0) const
void collectData(o2::framework::ProcessingContext &pc, const DataRequest &request)
auto getZDCEnergy() const
auto getITSClusters(int layer=0) const
auto getZDCBCRecData() const
bool saveClusterParameters
int NtdcV(uint8_t ich) const
std::vector< float > TDCVal[NTDCChannels]
signal in ZDCs
void init(const std::vector< o2::zdc::BCRecData > *RecBC, const std::vector< o2::zdc::ZDCEnergy > *Energy, const std::vector< o2::zdc::ZDCTDCData > *TDCData, const std::vector< uint16_t > *Info)
Trigger mask for printout.