17#ifndef AliceO2_TPC_QC_TRACKS_H
18#define AliceO2_TPC_QC_TRACKS_H
23#include <unordered_map>
72 int nClusterCut = 60,
float dEdxTot = 20,
float cutPtForDCAr = 1.5,
float samplingFractionDCAr = 0.1,
bool turnOffHistosForAsync =
false,
float cutMaxAbsDCAr = 0.1,
bool useCutMaxAbsDCArOnHistos =
false)
75 mCutMinnCls = nClusterCut;
76 mCutMindEdxTot = dEdxTot;
77 mCutMinPtDCAr = cutPtForDCAr;
78 mSamplingFractionDCAr = samplingFractionDCAr;
79 mTurnOffHistosForAsync = turnOffHistosForAsync;
80 mCutMaxAbsDCAr = cutMaxAbsDCAr;
81 mUseCutMaxAbsDCArOnHistos = useCutMaxAbsDCArOnHistos;
85 std::unordered_map<std::string, std::unique_ptr<TH1>>&
getMapHist() {
return mMapHist; }
86 const std::unordered_map<std::string, std::unique_ptr<TH1>>&
getMapHist()
const {
return mMapHist; }
89 float mCutAbsEta = 1.f;
91 float mCutMindEdxTot = 20.f;
92 float mCutMinPtDCAr = 1.5f;
93 float mSamplingFractionDCAr = 0.1f;
94 bool mTurnOffHistosForAsync =
false;
95 float mCutMaxAbsDCAr = 1.f;
96 bool mUseCutMaxAbsDCArOnHistos =
false;
98 std::unordered_map<std::string, std::unique_ptr<TH1>> mMapHist;
99 std::vector<TH1F> mHist1D{};
100 std::vector<TH2F> mHist2D{};
101 std::vector<TH1F> mHistRatio1D{};
Tracks quality control class.
void initializeHistograms()
Initialize all histograms.
void processEndOfCycle()
Function to be called at each endOfCycle.
void dumpToFile(std::string_view filename)
Dump results to a file.
std::unordered_map< std::string, std::unique_ptr< TH1 > > & getMapHist()
get ratios of 1D histograms
void setTrackCuts(float AbsEta=1., int nClusterCut=60, float dEdxTot=20, float cutPtForDCAr=1.5, float samplingFractionDCAr=0.1, bool turnOffHistosForAsync=false, float cutMaxAbsDCAr=0.1, bool useCutMaxAbsDCArOnHistos=false)
bool processTrack(const o2::tpc::TrackTPC &track)
void resetHistograms()
Reset all histograms.
const std::unordered_map< std::string, std::unique_ptr< TH1 > > & getMapHist() const
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...