1 #ifndef ALIMUONSTOPWATCHGROUPELEMENT_H
2 #define ALIMUONSTOPWATCHGROUPELEMENT_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONStopwatchGroupElement
11 /// \brief A class to group timers by name
13 // Author Laurent Aphecetche
15 #ifndef ALIMUONSTOPWATCHGROUP_H
16 # include "AliMUONStopwatchGroup.h"
23 class AliMUONStopwatchGroupElement
26 AliMUONStopwatchGroupElement(AliMUONStopwatchGroup* group, const char* a, const char *b)
27 : fGroup(group), fA(a), fB(b)
28 { group->Start(a,b); }
29 AliMUONStopwatchGroupElement(const AliMUONStopwatchGroupElement& rhs) : fGroup(0),fA(),fB()
30 { fGroup = rhs.fGroup; fA = rhs.fA; fB=rhs.fB ; }
31 AliMUONStopwatchGroupElement& operator=(const AliMUONStopwatchGroupElement& rhs)
32 { if ( this != &rhs ) { fGroup = rhs.fGroup; fA = rhs.fA; fB=rhs.fB ; } return *this; }
34 ~AliMUONStopwatchGroupElement()
35 { fGroup->Stop(fA.Data(),fB.Data()); }
38 AliMUONStopwatchGroup* fGroup; // the group for which we're just a proxy
39 TString fA; // first parameter
40 TString fB; // second parameter