using namespace std;
#include "hshowergeantwire.h"
#include <iostream> 
#include <iomanip>

//_HADES_CLASS_DESCRIPTION 
//////////////////////////////////////////////////////
// HShowerGeantWire
//
// This class describes  of the hit on the wire of pre-SHOWER
// detector
//
//////////////////////////////////////////////////////

ClassImp(HShowerGeantWire)

HShowerGeantWire::HShowerGeantWire(void) {
  Clear();
}

void HShowerGeantWire::Clear(void) {
//clearing data
  setCharge(0.0);
  setXY(0.0, 0.0);
  setWireNr(-1);
  setSector(-1);
  setModule(-1);
  setTrack(-1);
}

void HShowerGeantWire::getXY(Float_t* pfX, Float_t* pfY) {
//return position x,y of the hit on the wire
  *pfX = fXWire;
  *pfY = fYWire;
}

void HShowerGeantWire::setXY(Float_t fX, Float_t fY) {
//set position x,y of the hit on the wire
  fXWire = fX;
  fYWire = fY;
}


ostream& operator<< (ostream& output, HShowerGeantWire& raw) {
        output<<"charge:"<<raw.fCharge;
        output<<"X wire:"<<raw.fXWire;
        output<<"Y wire:"<<raw.fYWire;
        return output;
}    


void HShowerGeantWire::Streamer(TBuffer &R__b)
{
   // Stream an object of class HShowerGeantWire.

   if (R__b.IsReading()) {
      Version_t R__v = R__b.ReadVersion(); 
	  if (R__v == 1) 
	  { 
	    Version_t R__v =0;
	    R__v = R__b.ReadVersion(); // read version of HDataObject
      }
      TObject::Streamer(R__b);
      R__b >> fCharge;
      R__b >> fXWire;
      R__b >> fYWire;
      R__b >> nWireNr;
      R__b >> nModule;
      R__b >> nSector;
      R__b >> nTrack;
   } else {   
      R__b.WriteVersion(HShowerGeantWire::IsA());
      TObject::Streamer(R__b);
      R__b << fCharge;
      R__b << fXWire;
      R__b << fYWire;
      R__b << nWireNr;
      R__b << nModule;
      R__b << nSector;
      R__b << nTrack;
   }
}

Last change: Sat May 22 13:13:31 2010
Last generated: 2010-05-22 13:13

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.