Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 10 additions & 2 deletions Detectors/TPC/qc/src/TrackClusters.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,21 @@ struct binning {
double max;
};

const binning binsClusters{160, 0., 160.};
const binning binsSharedClusters{160, 0., 160.};
const binning binsFoundClusters{160, 0., 160.};
const binning binsCrossedRows{160, 0., 160.};
const binning binsRatio{150, 0., 1.5};

//______________________________________________________________________________
void TrackClusters::initializeHistograms()
{
TH1::AddDirectory(false);
mMapHist["clusters"].emplace_back(std::make_unique<TH1F>("clusters", "Clusters;NClusters;Entries", binsClusters.bins, binsClusters.min, binsClusters.max));
mMapHist["sharedClusters"].emplace_back(std::make_unique<TH1F>("sharedClusters", "sharedClusters;NSharedClusters;Entries", binsSharedClusters.bins, binsSharedClusters.min, binsSharedClusters.max));
mMapHist["crossedRows"].emplace_back(std::make_unique<TH1F>("crossedRows", "crossedRows;crossedRows;Entries", binsCrossedRows.bins, binsCrossedRows.min, binsCrossedRows.max));
mMapHist["crossedRows"].emplace_back(std::make_unique<TH1F>("crossedRows", "crossedRows;NCrossedRows;Entries", binsCrossedRows.bins, binsCrossedRows.min, binsCrossedRows.max));
mMapHist["sharedClustersOverClusters"].emplace_back(std::make_unique<TH1F>("sharedClustersOverClusters", "sharedClustersOverClusters;NSharedClusters/NClusters;Entries", binsRatio.bins, binsRatio.min, binsRatio.max));
mMapHist["clustersOverCrossedRow"].emplace_back(std::make_unique<TH1F>("clustersOverCrossedRow", "clustersOverCrossedRow;NClusters/NCrossedRows;Entries", binsRatio.bins, binsRatio.min, binsRatio.max));
}

//______________________________________________________________________________
Expand All @@ -71,16 +76,19 @@ bool TrackClusters::processTrackAndClusters(const std::vector<o2::tpc::TrackTPC>
const auto nCls = uint8_t(track.getNClusters());
const auto eta = track.getEta();

if (nCls < mCutMinNCls || dEdxTot < mCutMindEdxTot || abs(eta) > mCutAbsEta) {
if (nCls < mCutMinNCls || dEdxTot < mCutMindEdxTot || std::fabs(eta) > mCutAbsEta) {
continue;
}

uint8_t shared = 200, found = 0, crossed = 0;

o2::TrackMethods::countTPCClusters(track, *clusRefs, mBufVec, *clusterIndex, shared, found, crossed);

mMapHist["clusters"][0]->Fill(found);
mMapHist["sharedClusters"][0]->Fill(shared);
mMapHist["crossedRows"][0]->Fill(crossed);
mMapHist["sharedClustersOverClusters"][0]->Fill(static_cast<float>(shared) / static_cast<float>(found));
mMapHist["clustersOverCrossedRow"][0]->Fill(static_cast<float>(found) / static_cast<float>(crossed));
}

return true;
Expand Down
2 changes: 1 addition & 1 deletion Detectors/TPC/qc/src/Tracks.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct binning {
const std::vector<std::string_view> types{"A_Pos", "A_Neg", "C_Pos", "C_Neg"};
const binning binsDCAr{200, -5., 5.};
const binning binsDCArLargerRange{400, -10., 10.};
const binning binsEta{200, -1., 1.};
const binning binsEta{300, -1.5, 1.5};
const binning binsClus{120, 60., 180.};
const binning binsClusLargerRange{140, 60., 200.};
//______________________________________________________________________________
Expand Down