X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSdigitSSD.h;h=34831189c9bf679aa18e6cf0999a2521bc229688;hb=f1cdfa6d1f5420e407a2a59f8f9a5b63d7197266;hp=b57fdcc8270d6da9897a7f0da4c434e746b13f68;hpb=58005f185f4f08f2c0c0eaf5fbbc30c7435d442c;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSdigitSSD.h b/ITS/AliITSdigitSSD.h index b57fdcc8270..34831189c9b 100644 --- a/ITS/AliITSdigitSSD.h +++ b/ITS/AliITSdigitSSD.h @@ -1,34 +1,46 @@ -#ifndef AliITSDIGITSSD_H -#define AliITSDIGITSSD_H +#ifndef ALIITSDIGITSSD_H +#define ALIITSDIGITSSD_H +/* Copyright(c) 2004-2006, ALICE Experiment at CERN, All rights reserved. * + * See cxx source for full Copyright notice */ +//////////////////////////////////////////////////////// +// Digit class for SSD // +//////////////////////////////////////////////////////// -#include "AliITS.h" +#include +//______________________________________________________________________ class AliITSdigitSSD: public AliITSdigit { -protected: - Bool_t fSide; //true if P side - Int_t fStripNumber; //Number of Strip - Int_t fSignal; //Signal on ADC + public: + AliITSdigitSSD(); //default constructor + //Standard constructor with digits + AliITSdigitSSD(const Int_t *digits); + //Standard constructor with digits, tracks, and hits + AliITSdigitSSD(const Int_t *digits,const Int_t *tracks,const Int_t *hits); + virtual ~AliITSdigitSSD(){/* destructor */} + // returns the array size used to store Tracks and Hits + // static Int_t GetNTracks() {return fgkSssd;} + Int_t GetSignal() const {/* returns signal*/return fSignal;} + Int_t GetStripNumber() const {/* returns strip number*/return fCoord2;} + //returns 1 when side P and 0 when side N + Int_t IsSideP() const {if(fCoord1==0) return 1; else return 0; } + // returns the pointer to the array of hits which made this digit + // returns TArrayI of unduplicated track numbers (summed over hits). + virtual Int_t GetListOfTracks(TArrayI &t); + void Print(ostream *os); // Class ascii print function + void Read(istream *os); // Class ascii read function + virtual void Print(Option_t *option="") const {TObject::Print(option);} + virtual Int_t Read(const char *name) {return TObject::Read(name);} + + + protected: -public: - AliITSdigitSSD() {}; - ~AliITSdigitSSD() {}; - AliITSdigitSSD(Int_t *tracks, Int_t *digits, Int_t strNo, Int_t s, Bool_t p); + ClassDef(AliITSdigitSSD,3) // Simulated digit object for SSD - // Methods for accesing signal on strip - inline void SetSignal(Int_t s) {fSignal = s;} - inline Int_t GetSignal() {return fSignal;} - - // Methods for accesing strip number - inline Int_t GetStripNumber() {return fStripNumber;}; - inline void SetStripNumber(Int_t s) {fStripNumber = s;}; - - // Methods for accesing side of the strip P/N - inline Bool_t IsSideP() {return fSide;}; //returns true when side P - inline void SetSideP(Bool_t b) {fSide = b;}; //set side of digit - - ClassDef(AliITSdigitSSD, 1) }; +// Input and output functions for standard C++ input/output. +ostream &operator<<(ostream &os,AliITSdigitSSD &source); +istream &operator>>(istream &os,AliITSdigitSSD &source); #endif