27 std::cout <<
" TL1TracksCatCounters: Error. Addition of counters of different sizes: " <<
NCounters <<
" " << a.
NCounters << std::endl;
43 template <
typename T2>
47 std::cout <<
" TL1TracksCatCounters: Error. Addition of counters of different sizes: " <<
NCounters <<
" " << a.
NCounters << std::endl;
57 template <
typename T2>
68 for(
unsigned int iV=0; iV<a.
counters.size(); iV++)
76 for(
unsigned int iV=0; iV<a.
counters.size(); iV++)
88 for(
int iV=0; iV<tmp; iV++)
98 double Div(
double a,
double b){
return (b > 0) ? a/b : -1.;};
114 virtual void AddCounter(TString shortname, TString name);
118 void Inc(
bool isReco, TString name);
141 names.push_back(name);
173 const int index =
indices[name];
180 std::cout.setf(ios::fixed);
181 std::cout.setf(ios::showpoint);
182 std::cout.precision(3);
183 std::cout.setf(ios::right);
184 std::cout <<
"Track category : " <<
" Eff " <<
" | "<<
"All MC" << std::endl;
187 for (
int iC = 0; iC < NCounters; iC++){
188 std::cout <<
names[iC] <<
" : "
TL1TracksCatCounters< int > reco
TL1TracksCatCounters< int > mc
map< TString, int > indices
TL1Efficiencies & operator+=(TL1Efficiencies &a)
TL1TracksCatCounters< double > ratio_reco
void Inc(bool isReco, TString name)
virtual void AddCounter(TString shortname, TString name)
virtual ~TL1Efficiencies()
counters used for efficiency calculation
TL1TracksCatCounters operator+(TL1TracksCatCounters &a)
TL1TracksCatCounters & operator+=(TL1TracksCatCounters &a)
void AddCounters(int nCounters)
friend std::fstream & operator<<(std::fstream &strm, const TL1TracksCatCounters< T > &a)
TL1TracksCatCounters< double > operator/(TL1TracksCatCounters< T2 > &a)
TL1TracksCatCounters(int nCounters)
friend std::fstream & operator>>(std::fstream &strm, TL1TracksCatCounters< T > &a)
friend std::ostream & operator<<(std::ostream &strm, const TL1TracksCatCounters< T > &a)
TL1TracksCatCounters< T2 > operator/(double a)