]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSsimulationSDD.h
Obsolete - removed
[u/mrichter/AliRoot.git] / ITS / AliITSsimulationSDD.h
index 0ff1b91acc2fc3512d6281fb91523add87b26f33..57981c134c8e57a55393e01dd85ccd88ad18dcce 100644 (file)
@@ -2,6 +2,7 @@
 #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>
@@ -85,7 +86,7 @@ class AliITSsimulationSDD : public AliITSsimulation {
     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
@@ -97,8 +98,8 @@ class AliITSsimulationSDD : public AliITSsimulation {
     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
@@ -125,7 +126,8 @@ class AliITSsimulationSDD : public AliITSsimulation {
     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
@@ -149,6 +151,8 @@ class AliITSsimulationSDD : public AliITSsimulation {
     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;         //
@@ -162,6 +166,7 @@ class AliITSsimulationSDD : public AliITSsimulation {
                                    // 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.