ROOT logo
#include "htofhit.h"

#include "TBuffer.h"

//*-- Modified 14/11/2001 by D.Zovinec

//_HADES_CLASS_DESCRIPTION 
/////////////////////////////
//HTofHit 
//
// Class with a TOF Hit's data
//
// adapted from /u/halo/packages/abase/new by Manuel Sanchez (17/06/98)
/////////////////////////////

void HTofHit::Streamer(TBuffer &R__b)
{
  // Stream an object of class HTofHit.
  if (R__b.IsReading()) {
    Version_t R__v = R__b.ReadVersion();
    TObject::Streamer(R__b);
    R__b >> index;
    R__b >> tof;
    R__b >> xpos;
    R__b >> xlab;
    R__b >> ylab;
    R__b >> zlab;
    R__b >> dist;
    R__b >> theta;
    R__b >> phi;
    R__b >> sector;
    R__b >> module;
    R__b >> cell;
    if(R__v <= 1){
      xposAdc = 0.;
      edep = 0.;
      lAmp = 0.;
      rAmp = 0.;
      flagAdc = 0;
    } else {
      R__b >> xposAdc;
      R__b >> edep;
      R__b >> lAmp;
      R__b >> rAmp;
      R__b >> flagAdc;
    }
  } else {
    R__b.WriteVersion(HTofHit::IsA());
    TObject::Streamer(R__b);
    R__b << index;
    R__b << tof;
    R__b << xpos;
    R__b << xposAdc;
    R__b << edep;
    R__b << lAmp;
    R__b << rAmp;
    R__b << xlab;
    R__b << ylab;
    R__b << zlab;
    R__b << dist;
    R__b << theta;
    R__b << phi;
    R__b << sector;
    R__b << module;
    R__b << cell;
    R__b << flagAdc;
  }
}

ClassImp(HTofHit)
 htofhit.cc:1
 htofhit.cc:2
 htofhit.cc:3
 htofhit.cc:4
 htofhit.cc:5
 htofhit.cc:6
 htofhit.cc:7
 htofhit.cc:8
 htofhit.cc:9
 htofhit.cc:10
 htofhit.cc:11
 htofhit.cc:12
 htofhit.cc:13
 htofhit.cc:14
 htofhit.cc:15
 htofhit.cc:16
 htofhit.cc:17
 htofhit.cc:18
 htofhit.cc:19
 htofhit.cc:20
 htofhit.cc:21
 htofhit.cc:22
 htofhit.cc:23
 htofhit.cc:24
 htofhit.cc:25
 htofhit.cc:26
 htofhit.cc:27
 htofhit.cc:28
 htofhit.cc:29
 htofhit.cc:30
 htofhit.cc:31
 htofhit.cc:32
 htofhit.cc:33
 htofhit.cc:34
 htofhit.cc:35
 htofhit.cc:36
 htofhit.cc:37
 htofhit.cc:38
 htofhit.cc:39
 htofhit.cc:40
 htofhit.cc:41
 htofhit.cc:42
 htofhit.cc:43
 htofhit.cc:44
 htofhit.cc:45
 htofhit.cc:46
 htofhit.cc:47
 htofhit.cc:48
 htofhit.cc:49
 htofhit.cc:50
 htofhit.cc:51
 htofhit.cc:52
 htofhit.cc:53
 htofhit.cc:54
 htofhit.cc:55
 htofhit.cc:56
 htofhit.cc:57
 htofhit.cc:58
 htofhit.cc:59
 htofhit.cc:60
 htofhit.cc:61
 htofhit.cc:62
 htofhit.cc:63
 htofhit.cc:64
 htofhit.cc:65
 htofhit.cc:66
 htofhit.cc:67
 htofhit.cc:68
 htofhit.cc:69
 htofhit.cc:70