-#ifndef ITSDIGIT_H
-#define ITSDIGIT_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice */
+#ifndef ALIITSDIGIT_H
+#define ALIITSDIGIT_H
-/* $Id$ */
+////////////////////////////////////////////////
+// Digits classes for set:ITS //
+////////////////////////////////////////////////
-#include "AliDigit.h"
-#include "AliITS.h"
-#include "AliITSgeom.h"
+#include <TObject.h>
+#include <TObjArray.h>
//___________________________________________
-class AliITSdigit: public AliDigit {
-////////////////////////////////////////////////////////////////////////
-// 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.
-//
-// Data members:
-//
-// Int_t fTracks[3]
-// See AliDigit for a full description. The track numbers, up to 3,
-// that make up this digit.
-//
-// Int_t fEvent
-// The event number for this digit. This information is probably
-// kept someplace else already (via the TTree structure already in use).
-//
-// Int_t fLayer
-// The layer number of this digit. This is part of the information
-// that determines the detector where this digit is located (layer, ladder,
-// and detector numbers).
-//
-// Int_t fLadder
-// The ladder number of this digit. This is part of the information
-// that determines the detector where this digit is located (layer, ladder,
-// and detector numbers).
-//
-// Int_t fDet
-// The detector number of this digit. This is part of the information
-// that determines the detector where this digit is located (layer, ladder,
-// and detector numbers).
-//
-// Int_t fNoverl
-// The number of hits that make up this digit.
-//
-// Member functions:
-//
-// int *GetTracks()
-// See AliDigit for a full description. Returns a pointer to the
-// array fTracks where the tracks number of the tracks that make up
-// this digit are stored.
-//
-// AliITSdigit()
-// The default creator for the AliITSdigit class.
-//
-// AliITSdigit(Int_t *tracks, Int_t *digits)
-// 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.
-//
-// ~AliITSdigit()
-// The destructor for the AliITSdigit class. At present the default
-// destructor is used.
-////////////////////////////////////////////////////////////////////////
- public:
- Int_t fEvent; // Event number
- Int_t fLayer; // Layer number
- Int_t fLadder; // Ladder number
- Int_t fDet; // Detector number
- Int_t fNoverl; // Number of overflow
+class AliITSdigit: public TObject {
+
+public:
+
+ Int_t fCoord1; // Cell number on Z axis (SPD+SDD) , flag for side type (SSD)
+ Int_t fCoord2 ; // Cell number on X axis (SPD+SDD) , strip number (SSD)
+ Int_t fSignal; // Signal
+
+public:
+ AliITSdigit() {
+ // constructor
+ fSignal=fCoord1=fCoord2=0;
+ }
+ AliITSdigit(Int_t *digits);
+ virtual ~AliITSdigit() {
+ // destructor
+ }
+
+ ClassDef(AliITSdigit,1) // Real data digit object for set:ITS
+ };
+
+//___________________________________________
+class AliITSdigitSPD: public AliITSdigit {
+
+public:
+
+ // debugging -- goes to the dictionary
+ Int_t fTracks[3]; // tracks making this digit
+
+public:
+ AliITSdigitSPD() {
+ // constructor
+ fSignal=fCoord1=fCoord2=0;
+ fTracks[0]=fTracks[1]=fTracks[2]=0;
+ }
+
+ AliITSdigitSPD(Int_t *digits);
+ AliITSdigitSPD(Int_t *digits, Int_t *tracks);
+
+ virtual ~AliITSdigitSPD(){
+ // destructor
+ }
+ virtual int *GetTracks() {
+ // returns pointer to the array of tracks which make this digit
+ return &fTracks[0];
+ }
+
+ ClassDef(AliITSdigitSPD,1) // Simulated digit object for SPD
+ };
+
+//___________________________________________
+class AliITSdigitSDD: public AliITSdigit {
+
+public:
+
+ // debugging -- goes to the dictionary
+ Int_t fTracks[3]; // tracks making this digit
+ Float_t fTcharges[3]; // charge per track making this digit
+ Float_t fPhysics; // signal particles contribution to signal
+
+public:
+ AliITSdigitSDD() {
+ // constructor
+ fSignal=fCoord1=fCoord2=0;
+ fTracks[0]=fTracks[1]=fTracks[2]=0;
+ fPhysics=0; fTcharges[0]=fTcharges[1]=fTcharges[2]=0;
+ }
+
+ AliITSdigitSDD(Float_t phys,Int_t *digits);
+ AliITSdigitSDD( Float_t phys, Int_t *digits, Int_t *tracks, Float_t *charges);
+
+ virtual ~AliITSdigitSDD(){
+ // destructor
+ }
+ virtual int *GetTracks() {
+ // returns pointer to the array of tracks which make this digit
+ return &fTracks[0];
+ }
+
+ ClassDef(AliITSdigitSDD,1) // Simulated digit object for SDD
+ };
+
+//_____________________________________________________________________________
+
+class AliITSTransientDigit : public AliITSdigitSDD {
+public:
+ TObjArray *fTrackList; // track list
+public:
+ AliITSTransientDigit() {
+ // constructor
+ fTrackList=0;
+ }
+ AliITSTransientDigit(Float_t phys,Int_t *digits);
+ virtual ~AliITSTransientDigit() {
+ // destructor
+ delete fTrackList;
+ }
+ AliITSTransientDigit(const AliITSTransientDigit &source); // copy constructor
+ AliITSTransientDigit& operator=(const AliITSTransientDigit &source); // ass. operator
+ TObjArray *TrackList() {
+ // returns pointer to the TObjArray of tracks and associated charges
+ return fTrackList;
+ }
+
+ ClassDef(AliITSTransientDigit,1) // Transient digit for set: ITS
+ };
+
+//___________________________________________
+class AliITSdigitSSD: public AliITSdigit {
+
+public:
+
+ // debugging -- goes to the dictionary
+ Int_t fTracks[3]; // tracks making this digit
+
+public:
+ AliITSdigitSSD() {
+ // constructor
+ fSignal=fCoord1=fCoord2=0;
+ fTracks[0]=fTracks[1]=fTracks[2]=0;
+ }
+
+ AliITSdigitSSD(Int_t *digits);
+ AliITSdigitSSD(Int_t *digits, Int_t *tracks);
+
+ virtual ~AliITSdigitSSD(){
+ // destructor
+ }
+
+ Int_t GetSignal() const {
+ // returns signal
+ return fSignal;
+ }
+
+ Int_t GetStripNumber() const {
+ // returns strip number
+ return fCoord2;
+ }
+
+ Int_t IsSideP() const {
+ //returns 1 when side P and 0 when side N
+ return fCoord1;
+ }
+
+ virtual int *GetTracks() {
+ // returns pointer to the array of tracks which make this digit
+ return &fTracks[0];
+ }
+
+ ClassDef(AliITSdigitSSD,1) // Simulated digit object for SSD
+ };
- public:
- AliITSdigit() {}
- AliITSdigit(Int_t *tracks, Int_t *digits);
- virtual ~AliITSdigit() {}
- ClassDef(AliITSdigit,1) //Digit (Header) object for set:ITS
-};
#endif