ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataCont/src/ProcIDRef.cc
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

# Content
1 // $Id: RefArray.cc,v 1.1 2008/07/29 10:36:21 loizides Exp $
2
3 #include "MitAna/DataCont/interface/ProcIDRef.h"
4
5 ClassImp(mithep::ProcIDRef)
6
7 //--------------------------------------------------------------------------------------------------
8 void mithep::ProcIDRef::Streamer(TBuffer &b)
9 {
10 // Stream all objects in the array to or from the I/O buffer.
11
12 if (b.IsReading()) {
13 //UInt_t sv, cv;
14 //b.ReadVersion(&sv, &cv);
15 //TObject::Streamer(b);
16 UShort_t pidf;
17 b >> pidf;
18 pidf += b.GetPidOffset();
19 fProcID = b.ReadProcessID(pidf);
20 //b.CheckByteCount(sv, cv, ProcIDRef::IsA());
21 } else { /*writing*/
22 //UInt_t cv;
23 //cv = b.WriteVersion(ProcIDRef::IsA(), kTRUE);
24 //TObject::Streamer(b);
25 UShort_t pidf;
26 pidf = b.WriteProcessID(fProcID);
27 b << pidf;
28 //b.SetByteCount(cv, kTRUE);
29 }
30 }