//-*- Mode: C++ -*- // ***************************************************************************** // This file is property of and copyright by the CBM and the ALICE HLT Project * // All rights reserved. * // * // Primary Authors: Ivan Kisel * // Igor Kulakov * // Maksym Zyzak * // GSI, Uni Frankfurt and HICforFAIR. * // * // Permission to use, copy, modify and distribute this software and its * // documentation strictly for non-commercial purposes is hereby granted * // without fee, provided that the above copyright notice appears in all * // copies and that both the copyright notice and this permission notice * // appear in the supporting documentation. The authors make no claims * // about the suitability of this software for any purpose. It is * // provided "as is" without express or implied warranty. * // * //****************************************************************************** #ifdef DO_TPCCATRACKER_EFF_PERFORMANCE #ifndef PERFORMANCE #define PERFORMANCE #include #include #include using std::fstream; #include using std::string; #include "arbb.hpp" #include "TH1F.h" class TObject; class TDirectory; class TFile; class AliHLTTPCCAFitter; class FitPerformance { public: FitPerformance(); ~FitPerformance(); void FitQualityCheck(AliHLTTPCCAFitter &fitter); void ReadData(fstream &InputTraksMC, const int &NTracks); void SetOutputFile(TFile *oF) { fOutputFile = oF; } void WriteHistos(); static FitPerformance &Instance(); private: void WriteDir2Current( TObject *obj ); arbb::dense mcX; arbb::dense mcY; arbb::dense mcZ; arbb::dense mcPX; arbb::dense mcPY; arbb::dense mcPZ; arbb::dense mcQP; static const int NParameters = 5; TH1F fResHistos[NParameters]; TH1F fPullHistos[NParameters]; TFile *fOutputFile; }; #endif //PERFORMANCE #endif //DO_TPCCATRACKER_EFF_PERFORMANCE