Analysis Software
Documentation for sPHENIX simulation software
|
A helper structure to store information on the number of reconstructed and Monte Carlo particles for efficiency calculation. More...
#include <KFParticle/blob/master/KFParticlePerformance/KFMCCounter.h>
Public Member Functions | |
KFMCCounter () | |
KFMCCounter (int nCounters) | |
Constructs the object with the set of counters "nCounters". | |
void | AddCounter () |
Adds a counter to the existing list. | |
void | AddCounters (int nCounters) |
Adds several counters to the existing list. | |
KFMCCounter & | operator+= (KFMCCounter &a) |
KFMCCounter | operator+ (KFMCCounter &a) |
template<typename T2 > | |
KFMCCounter< double > | operator/ (KFMCCounter< T2 > &a) |
template<typename T2 > | |
KFMCCounter< T2 > | operator/ (double a) |
Public Attributes | |
int | NCounters |
Number of counters in the current object. | |
std::vector< T > | counters |
Counters of different set of particles. | |
Private Member Functions | |
double | Div (double a, double b) |
Friends | |
std::fstream & | operator<< (std::fstream &strm, const KFMCCounter< T > &a) |
std::ostream & | operator<< (std::ostream &strm, const KFMCCounter< T > &a) |
std::fstream & | operator>> (std::fstream &strm, KFMCCounter< T > &a) |
A helper structure to store information on the number of reconstructed and Monte Carlo particles for efficiency calculation.
The class is used to calculate reconstruction efficiency and ratios of a given set of particles.
Definition at line 39 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 39 of file KFMCCounter.h
|
inline |
Definition at line 45 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 45 of file KFMCCounter.h
|
inline |
Constructs the object with the set of counters "nCounters".
Definition at line 46 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 46 of file KFMCCounter.h
|
inline |
Adds a counter to the existing list.
Definition at line 48 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 48 of file KFMCCounter.h
Referenced by KFPVEfficiencies::AddCounter(), and KFPartEfficiencies::AddCounter().
|
inline |
Adds several counters to the existing list.
Definition at line 49 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 49 of file KFMCCounter.h
|
inlineprivate |
Divides value "a" on value "b" if b is not zero, otherwise returns "-1".
Definition at line 126 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 126 of file KFMCCounter.h
Referenced by KFMCCounter< int >::operator/().
|
inline |
Operator adds all counters from object "a" to the current object, result is stored to the temporary object. Returns the temporary object.
Definition at line 64 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 64 of file KFMCCounter.h
|
inline |
Operator adds all counters from object "a" to the current object. Returns the current object.
Definition at line 52 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 52 of file KFMCCounter.h
|
inline |
Operator divides all counters from the current object to the counters from object "a", result is stored to the temporary object. Returns the temporary object.
Definition at line 71 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 71 of file KFMCCounter.h
|
inline |
Operator divides all counters from the current object to the value "a", result is stored to the temporary object. Returns the temporary object.
Definition at line 85 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 85 of file KFMCCounter.h
|
friend |
Operator to write the object "a" to the file "strm".
Definition at line 93 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 93 of file KFMCCounter.h
|
friend |
Operator to write the object "a" to the stream "strm".
Definition at line 101 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 101 of file KFMCCounter.h
|
friend |
Operator to read the object "a" from the file "strm".
Definition at line 109 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 109 of file KFMCCounter.h
std::vector<T> KFMCCounter< T >::counters |
Counters of different set of particles.
Definition at line 43 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 43 of file KFMCCounter.h
Referenced by KFMCCounter< int >::AddCounter(), KFMCCounter< int >::AddCounters(), KFPartEfficiencies::GetPrimary4piEfficiency(), KFPartEfficiencies::GetPrimaryKFPEfficiency(), KFPartEfficiencies::GetSecondary4piEfficiency(), KFPartEfficiencies::GetSecondaryKFPEfficiency(), KFPartEfficiencies::GetTotal4piEfficiency(), KFPartEfficiencies::GetTotalKFPEfficiency(), KFPVEfficiencies::Inc(), KFPartEfficiencies::Inc(), KFPVEfficiencies::IncReco(), KFPartEfficiencies::IncReco(), KFMCCounter< int >::operator+=(), KFMCCounter< int >::operator/(), KFPVEfficiencies::PrintEff(), and KFPartEfficiencies::PrintEff().
int KFMCCounter< T >::NCounters |
Number of counters in the current object.
Definition at line 41 of file KFMCCounter.h.
View newest version in sPHENIX GitHub at line 41 of file KFMCCounter.h
Referenced by KFMCCounter< int >::AddCounter(), KFMCCounter< int >::AddCounters(), KFMCCounter< int >::operator+=(), KFMCCounter< int >::operator/(), KFPVEfficiencies::PrintEff(), and KFPartEfficiencies::PrintEff().