Go to the documentation of this file. 1 #ifndef CbmL1Counters_H
2 #define CbmL1Counters_H
35 std::cout <<
" TL1TracksCatCounters: Error. Addition of counters of "
56 std::cout <<
" TL1TracksCatCounters: Error. Addition of counters of "
79 for (
unsigned int iV = 0; iV < a.
counters.size(); iV++)
88 for (
unsigned int iV = 0; iV < a.
counters.size(); iV++)
101 for (
int iV = 0; iV < tmp; iV++) {
110 double Div(
double a,
double b) {
return (b > 0) ? a / b : -1.; };
134 virtual void AddCounter(TString shortname, TString name);
138 void Inc(
bool isReco,
162 names.push_back(name);
192 const int index =
indices[name];
199 std::cout.setf(ios::fixed);
200 std::cout.setf(ios::showpoint);
201 std::cout.precision(3);
202 std::cout.setf(ios::right);
203 std::cout <<
"Track category : "
206 <<
"All MC" << std::endl;
209 for (
int iC = 0; iC < NCounters; iC++) {
virtual ~TL1Efficiencies()
TL1TracksCatCounters & operator+=(TL1TracksCatCounters &a)
friend std::fstream & operator<<(std::fstream &strm, const TL1TracksCatCounters< T > &a)
friend std::fstream & operator>>(std::fstream &strm, TL1TracksCatCounters< T > &a)
TL1TracksCatCounters(int nCounters)
TL1TracksCatCounters< double > operator/(TL1TracksCatCounters< T2 > &a)
TL1TracksCatCounters< T2 > operator/(double a)
void Inc(bool isReco, TString name)
friend std::ostream & operator<<(std::ostream &strm, const TL1TracksCatCounters< T > &a)
TL1TracksCatCounters< int > reco
TL1Efficiencies & operator+=(TL1Efficiencies &a)
counters used for efficiency calculation
virtual void AddCounter(TString shortname, TString name)
void AddCounters(int nCounters)
TL1TracksCatCounters< double > ratio_reco
map< TString, int > indices
TL1TracksCatCounters operator+(TL1TracksCatCounters &a)
double Div(double a, double b)
TL1TracksCatCounters< int > mc