#define ALIITSSIMULATIONSDD_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+
/* $Id$ */
#include <TNtuple.h>
void CompressionParam(Int_t i, Int_t &db, Int_t &tl);
virtual Int_t Convert10to8(Int_t signal) const;// 10 to 8 bit SDD compresion
- virtual Int_t Convert8to10(Int_t signal) const;//undo 10 to 8 bit SDD compresion
virtual void ZeroSuppression(const char *opt); // Apply zero suppresion
virtual void Init2D(); // initiilzes 2D compresion algorithm
virtual void Compress2D(); // Applies 2D compresion algorithm
virtual void SetFileName(const char *filnam) {fFileName=filnam;}
// add baseline, noise, electronics and ADC saturation effects
- void ChargeToSignal();
+ void ChargeToSignal(Bool_t bAddNoise=kFALSE);
// add dead channels
void ApplyDeadChannels();
// add crosstalk effect
void ClearMaps();
// Summable Digitses a SDD module
void SDigitiseModule(AliITSmodule *mod,Int_t md,Int_t ev);
-// // Add Summable digits to module maps.
-// void AddSDigitsToModule( TClonesArray *pItemArray, Int_t mask );
+ // Add Summable digits to module maps.
+ Bool_t AddSDigitsToModule( TClonesArray *pItemArray, Int_t mask );
// digitize module from the sum of summable digits.
void FinishSDigitiseModule();
// Writes summable digits
TObjArray* GetHistArray() {return fHis;}
// create a separate tree for background monitoring (2D)
virtual void MakeTreeB(Option_t *option="B")
- { fTreeB = new TNtuple("ntuple","2D backgr","nz:nl:nh:low:anode");}
+ { if(strstr(option,"B"))
+ fTreeB = new TNtuple("ntuple", "2D backgr","nz:nl:nh:low:anode");}
// presently a dummy routine use TreeB() instead
void GetTreeB(Int_t) { }
// Return pointer to TreeB
AliITS *fITS; //! local pointer to ITS
// AliITSMapA1 *fHitMap1; //! local pointer to map of digits
AliITSMapA2 *fHitMap2; //! local pointer to map of signals
+ AliITSMapA2 *fHitSigMap2; //! local pointer to map of signals
+ AliITSMapA2 *fHitNoiMap2; //! local pointer to map of signals
// AliITSpList *fpList; //!
// TObjArray *falist; //
// TClonesArray *fpadr; //
// output of the real part of FFT
Double_t *fOutZI; //! [fScaleSize*fMaxNofSamples]
// output of the imaginary part of FFT
+ Bool_t *fAnodeFire; //! [#of anodes] Flag if there is a signal
TObjArray *fHis; // just in case for histogramming
TArrayI fD; // decrease values for baseline eq.