#include "hgeantmdc.h" #include "TBuffer.h" //*-- Author : Romain Holzmann, GSI //*-- Modified : 1/12/2000 by Romain Holzmann //*-- Copyright : GSI, Darmstadt // //**************************************************************************** // HGeantMdc // // GEANT MDC hit data // // This class stores the GEANT hits in the MDC detector, per sector, module // and layer, with the central cathode plane added as 7th layer. // //**************************************************************************** // // Inline functions: // // inline void setTrack(Int_t track) set GEANT track number // inline Int_t getTrack() return GEANT track number // inline Char_t getSector(void) return sector number // inline Char_t getModule(void) return module number // inline Char_t getLayer(void) return layer number // ClassImp(HGeantMdc) #include HGeantMdc::HGeantMdc(void) { // Default constructor. trackNumber = 0; xHit = 0.0; yHit = 0.0; thetaHit = 0.0; phiHit = 0.0; tofHit = 0.0; sector = -1; module = -1; layer = -1; } /* HGeantMdc::HGeantMdc(HGeantMdc &aMdc) { // Copy constructor. std::cout<<"geantmdc copy "<> trackNumber; R__b >> xHit; R__b >> yHit; R__b >> thetaHit; R__b >> phiHit; R__b >> tofHit; if (R__v <3) momHit=0.; else R__b >> momHit; R__b >> sector; R__b >> module; R__b >> layer; } else { R__b.WriteVersion(HGeantMdc::IsA()); HLinkedDataObject::Streamer(R__b); R__b << trackNumber; R__b << xHit; R__b << yHit; R__b << thetaHit; R__b << phiHit; R__b << tofHit; R__b << momHit; R__b << sector; R__b << module; R__b << layer; } }