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;
87 mPositionOfPV = meanVtxPoint3D;
91 std::unordered_map<std::string, std::unique_ptr<TH1>>&
getMapHist() {
return mMapHist; }
92 const std::unordered_map<std::string, std::unique_ptr<TH1>>&
getMapHist()
const {
return mMapHist; }
95 float mCutAbsEta = 1.f;
97 float mCutMindEdxTot = 20.f;
98 float mCutMinPtDCAr = 1.5f;
99 float mSamplingFractionDCAr = 0.1f;
100 bool mTurnOffHistosForAsync =
false;
101 float mCutMaxAbsDCAr = 1.f;
102 bool mUseCutMaxAbsDCArOnHistos =
false;
105 std::unordered_map<std::string, std::unique_ptr<TH1>> mMapHist;
106 std::vector<TH1F> mHist1D{};
107 std::vector<TH2F> mHist2D{};
108 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.
void setPVposition(const o2::math_utils::Point3D< float > meanVtxPoint3D)
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 ...