ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataCont/interface/ProcIDRef.h
Revision: 1.1
Committed: Fri Oct 31 18:56:14 2008 UTC (16 years, 6 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_006
Log Message:
Switched to new optimized RefArray now supporting multiple PIDs

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: ProcIDRef.h,v 1.5 2008/10/02 14:00:02 bendavid Exp $
3     //
4     // ProcIDRef
5     //
6     // Implementation of a TProcIDRef using stack (and not heap) memory.
7     // For various reasons, the array can not be written in split mode.
8     // Maximum size of references is set to 1024 (but this could be
9     // changed if there is need for it).
10     //
11     // Authors: C.Loizides, J.Bendavid
12     //--------------------------------------------------------------------------------------------------
13    
14     #ifndef MITANA_DATACONT_PROCIDREF
15     #define MITANA_DATACONT_PROCIDREF
16    
17     #include <TObject.h>
18     #include <TProcessID.h>
19    
20     namespace mithep
21     {
22     class ProcIDRef : public TObject
23     {
24     public:
25     ProcIDRef();
26     ProcIDRef(TProcessID *pid) : fProcID(pid) {}
27     ~ProcIDRef() { fProcID = 0; }
28    
29     TProcessID *Pid() const { return fProcID; }
30     void SetPid(TProcessID *pid) { fProcID = pid; }
31    
32     protected:
33     TProcessID *fProcID; //!ptr to Process Unique Identifier
34    
35     ClassDef(ProcIDRef,1) // Implementation of our own TProcIDRef
36     };
37     }
38    
39     //--------------------------------------------------------------------------------------------------
40     inline mithep::ProcIDRef::ProcIDRef()
41     {
42     // Default constructor.
43     }
44     #endif