X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSdigit.cxx;h=1689dc8367ab87947f6ee7bdcef32f09531a6bc9;hb=58fab13cfa018c3eb39a4259a8b073af8abc2329;hp=2804f85a8deef0efe31a0ea5a2e4c1769d85465b;hpb=4c03906077acc435bf9790b980186e0015ea0b89;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSdigit.cxx b/ITS/AliITSdigit.cxx index 2804f85a8de..1689dc8367a 100644 --- a/ITS/AliITSdigit.cxx +++ b/ITS/AliITSdigit.cxx @@ -1,5 +1,5 @@ /************************************************************************** - * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * + * Copyright(c) 2004-2006, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * @@ -13,52 +13,66 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* -$Log$ -*/ +/* $Id$ */ + +//////////////////////////////////////////////// +// Digits classes for all ITS detectors // +// // +// // +//////////////////////////////////////////////// -// -#include "AliITS.h" #include "AliITSdigit.h" -#include "AliRun.h" -//////////////////////////////////////////////////////////////////////// -// Version: 0 -// Written by Rene Brun, Federico Carminati, and Roberto Barbera -// Minor modifications made and documented by Bjorn S. Nilsen -// July 11 1999 -// -// The default ITS digit structure. This should either be replaced -// or added on to later with the proper digit structure defined for -// each detector type. See the proposed Digit structure defined by -// Bjorn S. Nilsen for an example. -//Begin_Html -/* - - -
- -

This show the relasionships between the ITS digit class' and the rest of Aliroot. - -

-*/
-//End_Html
-//_____________________________________________________________________________
+
+
+//______________________________________________________________________
 ClassImp(AliITSdigit)
 
-AliITSdigit::AliITSdigit(Int_t *tracks, Int_t *digits):
-  AliDigit(tracks){
-  //
-  // Create ITS digit
-  //     The creator for the AliITSdigit class. This routine fills the
-  // AliITSdigit data members from the array digits. The array of track
-  // numbers are passed to the AliDigit creator. The order of the elements
-  // in the digits array are fEvent = digits[0], fLayer = digits[1],
-  // fLadder = digits[2], fDet = digits[3], and fNoverl = digits[4].
-  // Therefore the array digits is expected to be at least 5 elements long.
-  //
-  fEvent      = digits[0];
-  fLayer      = digits[1];
-  fLadder     = digits[2];
-  fDet        = digits[3];
-  fNoverl     = digits[4];
+AliITSdigit::AliITSdigit():
+fCoord1(0),
+fCoord2(0),
+fSignal(0){
+  //default constructor. zero all values.
+  for(Int_t i=0;i> fCoord1 >> fCoord2 >> fSignal;
+}
+//______________________________________________________________________
+ostream &operator<<(ostream &os,AliITSdigit &source){
+    // Standard output streaming function.
+
+    source.Print(&os);
+    return os;
 }
+//______________________________________________________________________
+istream &operator>>(istream &os,AliITSdigit &source){
+    // Standard output streaming function.
+
+    source.Read(&os);
+    return os;
+}
+
+