40 LOG(error) <<
" TL1TracksCatCounters: Error. Addition of counters of "
64 LOG(error) <<
" TL1TracksCatCounters: Error. Addition of counters of "
89 for (
unsigned int iV = 0; iV < a.
counters.size(); iV++)
98 for (
unsigned int iV = 0; iV < a.
counters.size(); iV++)
110 for (
int iV = 0; iV < tmp; iV++) {
119 double Div(
double a,
double b) {
return (b > 0) ? a / b : -1.; };
142 virtual void AddCounter(
const TString& shortname,
const TString& name);
146 void Inc(
bool isReco,
147 const TString& name);
170 names.push_back(name);
204 const int index =
indices[name];
212 std::stringstream ss;
213 ss.setf(std::ios::fixed);
214 ss.setf(std::ios::showpoint);
216 ss.setf(std::ios::right);
217 ss <<
"Track category : "
224 for (
int iC = 0; iC < NCounters; iC++) {
TODO: SZh 8.11.2022: add selection of parameterisation.
virtual void AddCounter(const TString &shortname, const TString &name)
std::map< TString, int > indices
void Inc(bool isReco, const TString &name)
TL1TracksCatCounters< int > reco
std::vector< TString > names
TL1TracksCatCounters< int > mc
TL1Efficiencies & operator+=(TL1Efficiencies &a)
std::string ToString() const
virtual ~TL1Efficiencies()
TL1TracksCatCounters< double > ratio_reco
counters used for efficiency calculation
TL1TracksCatCounters operator+(TL1TracksCatCounters &a)
TL1TracksCatCounters & operator+=(TL1TracksCatCounters &a)
void AddCounters(int nCounters)
double Div(double a, double b)
friend std::fstream & operator<<(std::fstream &strm, const TL1TracksCatCounters< T > &a)
TL1TracksCatCounters< double > operator/(TL1TracksCatCounters< T2 > &a)
cacore::Vector< T > counters
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)