1 #ifndef ALIMUONSTOPWATCHGROUP_H
2 #define ALIMUONSTOPWATCHGROUP_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONStopwatchGroup
11 /// \brief A class to group timers by name
13 // Author Laurent Aphecetche
22 class AliMUONStopwatchGroup : public TObject
26 AliMUONStopwatchGroup();
27 AliMUONStopwatchGroup(const AliMUONStopwatchGroup& rhs);
28 AliMUONStopwatchGroup& operator=(const AliMUONStopwatchGroup& rhs);
30 virtual ~AliMUONStopwatchGroup();
32 void Continue(const char* detector, const char* method);
34 Double_t CpuTime(const char* detector, const char* method) const;
36 void Print(Option_t* opt="") const;
38 Double_t RealTime(const char* detector, const char* method) const;
42 void Start(const char* detector, const char* method);
44 void Stop(const char* detector, const char* method);
48 TMap* Map(const char* detector) const;
50 TStopwatch* Stopwatch(const char* detector, const char* method) const;
52 void CopyTo(AliMUONStopwatchGroup& timers) const;
56 TMap* fTimers; //< internal timers (map from TObjString to TStopwatch*)
58 ClassDef(AliMUONStopwatchGroup,1) // A timer holder