ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataCont/interface/ProcIDRef.h
Revision: 1.3
Committed: Wed Dec 10 11:26:52 2008 UTC (16 years, 4 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_006b, Mit_006a
Changes since 1.2: +2 -2 lines
Log Message:
Implemented ObjAt function.

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.3 // $Id: ProcIDRef.h,v 1.2 2008/11/20 17:49:15 loizides Exp $
3 bendavid 1.1 //
4     // ProcIDRef
5     //
6 loizides 1.2 // Implementation of a process id that can be used in the
7     // StackArray (and then used in the RefArray).
8 bendavid 1.1 //
9     // Authors: C.Loizides, J.Bendavid
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITANA_DATACONT_PROCIDREF
13     #define MITANA_DATACONT_PROCIDREF
14    
15     #include <TObject.h>
16     #include <TProcessID.h>
17    
18     namespace mithep
19     {
20     class ProcIDRef : public TObject
21     {
22     public:
23 loizides 1.2 ProcIDRef() {};
24 bendavid 1.1 ProcIDRef(TProcessID *pid) : fProcID(pid) {}
25     ~ProcIDRef() { fProcID = 0; }
26    
27 loizides 1.2 TProcessID *Pid() const { return fProcID; }
28     void SetPid(TProcessID *pid) { fProcID = pid; }
29 bendavid 1.1
30     protected:
31 loizides 1.2 TProcessID *fProcID; //!ptr to the Process Unique Identifier
32 bendavid 1.1
33 loizides 1.3 ClassDef(ProcIDRef, 1) // Implementation of our own TProcIDRef
34 bendavid 1.1 };
35     }
36     #endif