//-*- Mode: C++ -*- // $Id: AliHLTTPCCAStiPerformance.h,v 1.5 2010/08/16 14:32:23 ikulakov Exp $ // ************************************************************************ // This file is property of and copyright by the ALICE HLT Project * // ALICE Experiment at CERN, All rights reserved. * // See cxx source for full Copyright notice * // * //************************************************************************* #ifdef DO_TPCCATRACKER_EFF_PERFORMANCE #ifndef AliHLTTPCCAStiPerformance_H #define AliHLTTPCCAStiPerformance_H #include "AliHLTTPCCATrackPerformanceBase.h" #include "AliHLTTPCCAOutTrack.h" #include "AliHLTTPCCADef.h" #include "AliHLTArray.h" #include "AliHLTTPCCAMCTrack.h" #include "AliHLTTPCCAMCPoint.h" #include #include #include class TObject; class TParticle; class AliHLTTPCCAMCPoint; class AliHLTTPCCAGBTracker; class AliHLTTPCCAGBTrack; class TDirectory; class TH1D; class TH2D; class TProfile; class TFile; class AliHLTTPCCATracker; /** * @class AliHLTTPCCAStiPerformance */ class AliHLTTPCCAStiPerformance: public AliHLTTPCCATrackPerformanceBase // TODO public GlobalPerfo { public: AliHLTTPCCAStiPerformance(){ }; virtual ~AliHLTTPCCAStiPerformance(){}; virtual void SetNewEvent(const AliHLTTPCCAGBTracker * const Tracker, AliHLTResizableArray *hitLabels, AliHLTResizableArray *mcTracks, AliHLTResizableArray *localMCPoints); void SetTracker(const AliHLTTPCCAGBTracker * const Tracker) { fTracker = Tracker;}; /// Efficiency // Check if MC track is reconstructable. Calculate set of MC track. Etc. virtual void CheckMCTracks(); // fill mcData. // Find reco-MCTracks correspondence virtual void MatchTracks(); // fill recoData. // Calculate efficiencies virtual void EfficiencyPerformance(); /// Histograms virtual void FillHistos(); virtual void Draw(); // draw diff things after performance int NTracks() {return Tracks.size();} void SetRecoTracks(vector &Trs_){Tracks.clear(); for (unsigned i = 0; i < Trs_.size(); i++) Tracks.push_back(Trs_[i]); } void AddHit (int &Hi) {HitIndex.push_back(Hi);} private: int fISlice; int firstSliceHit, endSliceHit; vector Tracks; vector HitIndex; }; #endif #endif //DO_TPCCATRACKER_EFF_PERFORMANCE