ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataCont/interface/ProcIDRef.h
Revision: 1.2
Committed: Thu Nov 20 17:49:15 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.1: +7 -15 lines
Log Message:
Add Print plus Cleaned up.

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.2 // $Id: ProcIDRef.h,v 1.1 2008/10/31 18:56:14 bendavid 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     ClassDef(ProcIDRef,1) // Implementation of our own TProcIDRef
34     };
35     }
36     #endif