#include <PndPidTestTask.h>
Definition at line 21 of file PndPidTestTask.h.
PndPidTestTask::PndPidTestTask |
( |
| ) |
|
PndPidTestTask::~PndPidTestTask |
( |
| ) |
|
void PndPidTestTask::Exec |
( |
Option_t * |
opt | ) |
|
|
virtual |
Definition at line 117 of file PndPidTestTask.cxx.
References fAnalysis, fCandLists, fClassifier, fConfusionMatrix, fEvtCount, PndAnalysis::FillList(), fParticleNames, fPdgIndex, fSelector, fVerbose, PndAnalysis::GetEventInTask(), RhoCandidate::GetMcTruth(), RhoCandidate::PdgCode(), and RhoCandidate::PrintOn().
141 int candListIndex = 0;
143 if (
fVerbose > 1) std::cout <<
"CandList " << candListIndex++ <<
" Entries: " << candidates->GetLength() << std::endl;
144 for (
int candInd = 0; candInd < candidates->GetLength(); candInd++){
147 if (
fVerbose > 1) std::cout << std::endl;
149 if (
fVerbose > 1) std::cout << candInd <<
" Cand: " << cand->
PdgCode() <<
" MCCand " << mccand->
PdgCode() << std::endl;
150 if (
fVerbose > 1) std::cout << *(FairMultiLinkedData_Interface*)mccand << std::endl;
154 std::cout <<
"-W- PndPidTestTask::Exec Wrong PDG Codes: Cand: " << cand->
PdgCode() <<
" MCCand: " << mccand->
PdgCode() << std::endl;
Bool_t FillList(RhoCandList &l, TString listkey="All", TString pidTcaNames="", int trackHypothesis=-1)
std::vector< RhoCandList * > fCandLists
std::map< int, int > fPdgIndex
void PrintOn(std::ostream &o=std::cout) const
std::vector< std::string > fParticleNames
RhoCandidate * GetMcTruth() const
std::vector< std::vector< int > > fConfusionMatrix
void PndPidTestTask::Finish |
( |
| ) |
|
|
virtual |
std::vector<std::vector <int> > PndPidTestTask::GetConfusionMatrix |
( |
| ) |
const |
|
inline |
InitStatus PndPidTestTask::Init |
( |
| ) |
|
|
virtual |
void PndPidTestTask::PrintConfusionMatrix |
( |
bool |
relative = false | ) |
|
Definition at line 161 of file PndPidTestTask.cxx.
References fConfusionMatrix, fParticleNames, fPdgIndex, and i.
Referenced by Finish().
164 for (
int j = 0; j <
fPdgIndex.size(); j++){
165 if (relative ==
false)
168 std::cout << std::setw(5);
169 int entryCount = std::accumulate(fConfusionMatrix[
i].begin(), fConfusionMatrix[
i].end(), 0);
171 std::cout << std::fixed << std::setprecision(2) << fConfusionMatrix[
i][j] / (double)entryCount <<
" ";
173 std::cout << std::fixed << std::setprecision(2) << 0.0 <<
" ";
176 std::cout << std::endl;
std::map< int, int > fPdgIndex
std::vector< std::string > fParticleNames
std::vector< std::vector< int > > fConfusionMatrix
void PndPidTestTask::SetClassifier |
( |
TString |
val | ) |
|
|
inline |
void PndPidTestTask::SetParContainers |
( |
| ) |
|
|
privatevirtual |
Definition at line 106 of file PndPidTestTask.cxx.
References run.
109 FairRun*
run = FairRun::Instance();
110 if ( ! run ) Fatal(
"SetParContainers",
"No analysis run");
void PndPidTestTask::SetSelector |
( |
TString |
val | ) |
|
|
inline |
TString PndPidTestTask::fClassifier |
|
private |
std::vector<std::vector <int> > PndPidTestTask::fConfusionMatrix |
|
private |
int PndPidTestTask::fEvtCount |
|
private |
std::vector<std::string> PndPidTestTask::fParticleNames |
|
private |
std::map<int, int> PndPidTestTask::fPdgIndex |
|
private |
The documentation for this class was generated from the following files: