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

#include <L1Timer.h>

Public Member Functions

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

Private Attributes

map< string, int > fNameToI
 
vector< TimerInfofTIs
 

Detailed Description

Definition at line 47 of file L1Timer.h.

Member Function Documentation

void L1CATFIterTimerInfo::Add ( string  name)
inline

Definition at line 54 of file L1Timer.h.

References fNameToI, fTIs, and name.

Referenced by L1CATFTimerInfo::Add(), and PndFTSCAGBTracker::PndFTSCAGBTracker().

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

Definition at line 49 of file L1Timer.h.

References fTIs, and i.

Referenced by L1CATFTimerInfo::Clear().

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< TimerInfo > fTIs
Definition: L1Timer.h:76
void L1CATFIterTimerInfo::operator+= ( L1CATFIterTimerInfo t)
inline

Definition at line 57 of file L1Timer.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< TimerInfo > fTIs
Definition: L1Timer.h:76
L1CATFIterTimerInfo L1CATFIterTimerInfo::operator/ ( float  f)
inline

Definition at line 58 of file L1Timer.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< TimerInfo > fTIs
Definition: L1Timer.h:76
TFile * f
Definition: bump_analys.C:12
map< string, int > fNameToI
Definition: L1Timer.h:73
TimerInfo& L1CATFIterTimerInfo::operator[] ( string  name)
inline

Definition at line 55 of file L1Timer.h.

References fNameToI, fTIs, and name.

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

Definition at line 56 of file L1Timer.h.

References fTIs, and i.

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

Definition at line 73 of file L1Timer.h.

References fTIs, and i.

Referenced by PrintReal(), and L1CATFTimerInfo::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< TimerInfo > fTIs
Definition: L1Timer.h:76
void L1CATFIterTimerInfo::PrintReal ( int  f = 0)
inline

Definition at line 68 of file L1Timer.h.

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

Referenced by PndCAGBTracker::FindTracks(), and L1CATFTimerInfo::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< TimerInfo > fTIs
Definition: L1Timer.h:76
void PrintNames()
Definition: L1Timer.h:73
TFile * f
Definition: bump_analys.C:12

Member Data Documentation

map< string, int > L1CATFIterTimerInfo::fNameToI
private

Definition at line 73 of file L1Timer.h.

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

vector<TimerInfo> L1CATFIterTimerInfo::fTIs
private

Definition at line 76 of file L1Timer.h.

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


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