Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ekryshen committed Dec 1, 2024
1 parent 59170ce commit d7a3df6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions DPG/Tasks/AOTEvent/eventSelectionQa.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ struct EventSelectionQaTask {
std::bitset<o2::constants::lhc::LHCMaxBunches> bcPatternA;
std::bitset<o2::constants::lhc::LHCMaxBunches> bcPatternC;
std::bitset<o2::constants::lhc::LHCMaxBunches> bcPatternB;
o2::itsmft::TimeDeadMap* itsDeadMap = nullptr;
SliceCache cache;
Partition<aod::Tracks> tracklets = (aod::track::trackType == static_cast<uint8_t>(o2::aod::track::TrackTypeEnum::Run2Tracklet));

Expand Down Expand Up @@ -577,7 +576,7 @@ struct EventSelectionQaTask {
// fill ITS dead maps
std::map<std::string, std::string> metadata;
metadata["runNumber"] = Form("%d", run);
itsDeadMap = ccdb->getSpecific<o2::itsmft::TimeDeadMap>("ITS/Calib/TimeDeadMap", (tsSOR + tsEOR) / 2, metadata);
o2::itsmft::TimeDeadMap* itsDeadMap = ccdb->getSpecific<o2::itsmft::TimeDeadMap>("ITS/Calib/TimeDeadMap", (tsSOR + tsEOR) / 2, metadata);

std::vector<uint64_t> itsDeadMapOrbits = itsDeadMap->getEvolvingMapKeys(); // roughly every second, ~350 TFs = 350x32 orbits
std::vector<double> itsDeadMapOrbitsDouble(itsDeadMapOrbits.begin(), itsDeadMapOrbits.end());
Expand Down Expand Up @@ -1122,13 +1121,6 @@ struct EventSelectionQaTask {

histos.fill(HIST("hNcontribAccFromData"), nContrib);
}

// ITS deadzone checks
std::vector<uint16_t> closestVec;
for (auto& bc : bcs) {
uint64_t orbit = bc.globalBC() / nBCsPerOrbit;
itsDeadMap->getMapAtOrbit(orbit, closestVec);
}
}
PROCESS_SWITCH(EventSelectionQaTask, processRun3, "Process Run3 event selection QA", false);

Expand Down

0 comments on commit d7a3df6

Please sign in to comment.