22 #ifdef DO_TPCCATRACKER_EFF_PERFORMANCE
29 #ifndef HLTCA_STANDALONE
40 #include "Riostream.h"
57 fHitLabels = hitLabels;
59 fLocalMCPoints = localMCPoints;
61 nMCTracks = (*fMCTracks).
Size();
68 PndFTSPerformanceBase::PndFTSPerformanceBase():
69 fStatNEvents(0),NHisto(0),fTracker(0),fHitLabels(0),fMCTracks(0),fLocalMCPoints(0),nRecoTracks(0),nMCTracks(0),fHistoDir(0)
74 PndFTSPerformanceBase::~PndFTSPerformanceBase()
77 for(
int i = 0;
i < NHisto;
i++ ){
78 if (fHistos[
i])
delete fHistos[
i];
81 if(fHistosInfo)
delete [] fHistosInfo;
82 if(fHistos)
delete [] fHistos;
86 void PndFTSPerformanceBase::Exec(
bool PrintFlag )
88 assert( fTracker != 0 );
93 EfficiencyPerformance();
94 if (PrintFlag) PrintEfficiency();
103 void PndFTSPerformanceBase::EfficiencyPerformance()
110 TH1 *PndFTSPerformanceBase::GetHisto(
const char*
name)
113 for (iHisto = 0; iHisto < NHisto; iHisto++){
114 if (
string(fHistosInfo[iHisto].name) ==
string(name)){
119 assert ( (iHisto != NHisto) || (
string(
"") ==
string(
" wrong histo name ")) );
120 if (iHisto == NHisto){
121 cout <<
"ERROR: wrong histo name: " << name << endl;
125 return fHistos[iHisto];
128 #endif //DO_TPCCATRACKER_EFF_PERFORMANCE
tree Draw("fELoss:TMath::Sqrt(fPx_out*fPx_out+ fPy_out*fPy_out+ fPz_out*fPz_out)", ppos &&"fELoss < 0.04")