/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* $Log$ Revision 1.1.2.2 2000/09/18 13:41:29 cblume Changed fDetector to UShort and fQ to Short_t. Use customized streamer Revision 1.4 2000/06/08 18:32:58 cblume Make code compliant to coding conventions Revision 1.3 2000/06/07 16:25:37 cblume Try to remove compiler warnings on Sun and HP Revision 1.2 2000/05/08 16:17:27 cblume Merge TRD-develop Revision 1.1.2.1 2000/05/08 14:48:31 cblume AliTRDhit class now in separate files */ /////////////////////////////////////////////////////////////////////////////// // // // Hit object for the TRD // // // /////////////////////////////////////////////////////////////////////////////// #include "AliTRDhit.h" ClassImp(AliTRDhit) //_____________________________________________________________________________ AliTRDhit::AliTRDhit():AliHit() { // // AliTRDhit default constructor // } //_____________________________________________________________________________ AliTRDhit::AliTRDhit(Int_t shunt, Int_t track, Int_t det , Float_t *hits, Int_t q) :AliHit(shunt, track) { // // Create a TRD hit // // Store detector number fDetector = (UShort_t) det; // Store position fX = hits[0]; fY = hits[1]; fZ = hits[2]; // Store the charge fQ = (Short_t) q; } //_____________________________________________________________________________ AliTRDhit::~AliTRDhit() { // // AliTRDhit destructor // } //_____________________________________________________________________________ void AliTRDhit::Streamer(TBuffer &R__b) { // // Stream an object of class AliTRDhit. // if (R__b.IsReading()) { Version_t R__v = R__b.ReadVersion(); if (R__v) { } AliHit::Streamer(R__b); R__b >> fDetector; R__b >> fQ; } else { R__b.WriteVersion(AliTRDhit::IsA()); AliHit::Streamer(R__b); R__b << fDetector; R__b << fQ; } }