#include "hmdcseg.h"
HMdcSeg::HMdcSeg(void) {
Clear();
}
HMdcSeg::~HMdcSeg(void) {
}
void HMdcSeg::Clear(void) {
z=0.;
r=0.;
theta=0.;
phi=0.;
chi2=0.;
flag=0;
ind=0;
cov.Clear();
zPrime=0.;
rPrime=0;
clear();
}
void HMdcSeg::Streamer(TBuffer &R__b)
{
UInt_t R__s, R__c;
if (R__b.IsReading()) {
Version_t R__v = R__b.ReadVersion(&R__s, &R__c); if (R__v) { }
HMdcCellGroup12::Streamer(R__b);
R__b >> z;
R__b >> r;
R__b >> theta;
R__b >> phi;
R__b >> chi2;
R__b >> flag;
cov.Streamer(R__b);
R__b >> ind;
if (R__v > 1) {
R__b >> zPrime;
R__b >> rPrime;
if (chi2>0) {
Int_t nw=getSumWires()-3;
if (nw>0) chi2/=nw;
}
} else {
zPrime = z;
rPrime = r;
}
R__b.CheckByteCount(R__s, R__c, HMdcSeg::IsA());
} else {
R__c = R__b.WriteVersion(HMdcSeg::IsA(), kTRUE);
HMdcCellGroup12::Streamer(R__b);
R__b << z;
R__b << r;
R__b << theta;
R__b << phi;
R__b << chi2;
R__b << flag;
cov.Streamer(R__b);
R__b << ind;
R__b << zPrime;
R__b << rPrime;
R__b.SetByteCount(R__c, kTRUE);
}
}
ClassImp(HMdcSeg)
Last change: Sat May 22 13:03:20 2010
Last generated: 2010-05-22 13:03
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.