X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRD%2FAliTRDhit.cxx;h=46a4b4341d7064ddf810c242bd486734353ff6f4;hb=14dde481517060592e41e24995e00d0d6384dc96;hp=41ef71a621a90468807f3dc2278599df22d2dea4;hpb=793ff80c55ff5c109e52679681ffde680cc9ff22;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRDhit.cxx b/TRD/AliTRDhit.cxx index 41ef71a621a..46a4b4341d7 100644 --- a/TRD/AliTRDhit.cxx +++ b/TRD/AliTRDhit.cxx @@ -13,24 +13,7 @@ * 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 - -*/ +/* $Id$ */ /////////////////////////////////////////////////////////////////////////////// // // @@ -43,7 +26,11 @@ AliTRDhit class now in separate files ClassImp(AliTRDhit) //_____________________________________________________________________________ -AliTRDhit::AliTRDhit():AliHit() +AliTRDhit::AliTRDhit() + :AliHit() + ,fDetector(0) + ,fQ(0) + ,fTime(0) { // // AliTRDhit default constructor @@ -53,23 +40,20 @@ AliTRDhit::AliTRDhit():AliHit() //_____________________________________________________________________________ AliTRDhit::AliTRDhit(Int_t shunt, Int_t track, Int_t det - , Float_t *hits, Int_t q) - :AliHit(shunt, track) + , const Float_t * const hits, Int_t q, Float_t time) + :AliHit(shunt,track) + ,fDetector((UShort_t) det) + ,fQ((Short_t) q) + ,fTime(time) { // // 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; + fX = hits[0]; + fY = hits[1]; + fZ = hits[2]; } @@ -81,25 +65,3 @@ AliTRDhit::~AliTRDhit() // } - -//_____________________________________________________________________________ -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; - } - -}