FairRoot/PandaRoot
Public Member Functions | Private Attributes | List of all members
PndCATFIterTimerInfo Class Reference

#include <PndCATimer.h>

Public Member Functions

void Clear ()
 
void Add (string name)
 
PndCATimerInfooperator[] (string name)
 
PndCATimerInfooperator[] (int i)
 
void operator+= (PndCATFIterTimerInfo &t)
 
PndCATFIterTimerInfo operator/ (float f)
 
void PrintReal (int f=0)
 
void PrintNames ()
 

Private Attributes

map< string, int > fNameToI
 
vector< PndCATimerInfofTIs
 

Detailed Description

Definition at line 47 of file PndCATimer.h.

Member Function Documentation

void PndCATFIterTimerInfo::Add ( string  name)
inline

Definition at line 54 of file PndCATimer.h.

References fNameToI, fTIs, and name.

Referenced by PndCATFTimerInfo::Add(), and PndCAGBTracker::PndCAGBTracker().

54 { fNameToI[name] = fTIs.size(); fTIs.push_back(PndCATimerInfo(name)); };
vector< PndCATimerInfo > fTIs
Definition: PndCATimer.h:76
map< string, int > fNameToI
Definition: PndCATimer.h:73
TString name
void PndCATFIterTimerInfo::Clear ( void  )
inline

Definition at line 49 of file PndCATimer.h.

References fTIs, and i.

Referenced by PndCATFTimerInfo::Clear(), and PndCAGBTracker::FindTracks().

49  {
50  for( unsigned int i = 0; i < fTIs.size(); i++ )
51  fTIs[i].Clear();
52  };
Int_t i
Definition: run_full.C:25
vector< PndCATimerInfo > fTIs
Definition: PndCATimer.h:76
void PndCATFIterTimerInfo::operator+= ( PndCATFIterTimerInfo t)
inline

Definition at line 57 of file PndCATimer.h.

References fTIs, and i.

57 { for( unsigned int i = 0; i < fTIs.size(); ++i ) fTIs[i] += t[i]; }
Int_t i
Definition: run_full.C:25
vector< PndCATimerInfo > fTIs
Definition: PndCATimer.h:76
PndCATFIterTimerInfo PndCATFIterTimerInfo::operator/ ( float  f)
inline

Definition at line 58 of file PndCATimer.h.

References f, fNameToI, fTIs, i, and r.

58  {
60  r.fNameToI = fNameToI;
61  r.fTIs.resize(fTIs.size());
62  for( unsigned int i = 0; i < fTIs.size(); ++i ) {
63  r.fTIs[i] = fTIs[i]/f;
64  }
65  return r;
66  }
double r
Definition: RiemannTest.C:14
Int_t i
Definition: run_full.C:25
vector< PndCATimerInfo > fTIs
Definition: PndCATimer.h:76
map< string, int > fNameToI
Definition: PndCATimer.h:73
TFile * f
Definition: bump_analys.C:12
PndCATimerInfo& PndCATFIterTimerInfo::operator[] ( string  name)
inline

Definition at line 55 of file PndCATimer.h.

References fNameToI, fTIs, and name.

55 { return fTIs[fNameToI[name]]; };
vector< PndCATimerInfo > fTIs
Definition: PndCATimer.h:76
map< string, int > fNameToI
Definition: PndCATimer.h:73
TString name
PndCATimerInfo& PndCATFIterTimerInfo::operator[] ( int  i)
inline

Definition at line 56 of file PndCATimer.h.

References fTIs, and i.

56 { return fTIs[i]; };
Int_t i
Definition: run_full.C:25
vector< PndCATimerInfo > fTIs
Definition: PndCATimer.h:76
void PndCATFIterTimerInfo::PrintNames ( )
inline

Definition at line 73 of file PndCATimer.h.

References fTIs, and i.

Referenced by PrintReal(), and PndCATFTimerInfo::PrintReal().

73 { cout << fTIs[0].Name(); for( unsigned int i = 1; i < fTIs.size(); ++i ) { cout << " | " << fTIs[i].Name(); } };
Int_t i
Definition: run_full.C:25
vector< PndCATimerInfo > fTIs
Definition: PndCATimer.h:76
void PndCATFIterTimerInfo::PrintReal ( int  f = 0)
inline

Definition at line 68 of file PndCATimer.h.

References f, fTIs, i, and PrintNames().

Referenced by PndCATFTimerInfo::PrintReal().

68  {
69  if (f) { PrintNames(); cout << endl; }
70  fTIs[0].PrintReal(); for( unsigned int i = 1; i < fTIs.size(); ++i ) { cout << " | " << setw(fTIs[i].Name().size()); fTIs[i].PrintReal(); }
71  if (f) cout << endl;
72  };
Int_t i
Definition: run_full.C:25
vector< PndCATimerInfo > fTIs
Definition: PndCATimer.h:76
TFile * f
Definition: bump_analys.C:12

Member Data Documentation

map< string, int > PndCATFIterTimerInfo::fNameToI
private

Definition at line 73 of file PndCATimer.h.

Referenced by Add(), operator/(), and operator[]().

vector<PndCATimerInfo> PndCATFIterTimerInfo::fTIs
private

Definition at line 76 of file PndCATimer.h.

Referenced by Add(), Clear(), operator+=(), operator/(), operator[](), PrintNames(), and PrintReal().


The documentation for this class was generated from the following file: