StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StThreeVector.cc
1 #include "StThreeVector.hh"
2 #ifdef __ROOT__
3 #include "TBuffer.h"
4 #include "TClass.h"
5 ClassImpT(StThreeVector,float);
6 //________________________________________________________________________________
7 template <> void StThreeVector<float>::Streamer(TBuffer &R__b)
8 {
9 // Stream an object of class StThreeVectorD.
10  if (R__b.IsReading()) {
11  UInt_t R__s, R__c;
12  Version_t R__v = R__b.ReadVersion(&R__s, &R__c);
13  if (R__v > 2){Class()->ReadBuffer(R__b, this, R__v, R__s, R__c); return;}
14  R__b >> mX1;
15  R__b >> mX2;
16  R__b >> mX3;
17  }
18  else Class()->WriteBuffer(R__b,this);
19 }
20 //________________________________________________________________________________
21 template <> void StThreeVector<double>::Streamer(TBuffer &R__b)
22 {
23 // Stream an object of class StThreeVectorD.
24  if (R__b.IsReading()) {
25  UInt_t R__s, R__c;
26  Version_t R__v = R__b.ReadVersion(&R__s, &R__c);
27  if (R__v > 2){Class()->ReadBuffer(R__b, this, R__v, R__s, R__c); return;}
28  R__b >> mX1;
29  R__b >> mX2;
30  R__b >> mX3;
31  }
32  else Class()->WriteBuffer(R__b,this);
33 }
34 #endif