]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSsimulationSSD.h
AliMiniHeader moved to separate file
[u/mrichter/AliRoot.git] / ITS / AliITSsimulationSSD.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSSIMULATIONSSD_H
2#define ALIITSSIMULATIONSSD_H
57817f7c 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
88cb7938 5
57817f7c 6/* $Id$ */
b0f5e3fc 7
b0f5e3fc 8#include "AliITSsimulation.h"
c7a4dac0 9#include "AliITSsegmentationSSD.h" // function used in inline functions
b0f5e3fc 10
fd61217e 11class AliITSMapA2;
c7a4dac0 12class AliITSpList;
0dbfc771 13class AliITSTableSSD;
b0f5e3fc 14class AliITSdcsSSD;
57817f7c 15class AliITSsegmentationSSD;
c7a4dac0 16class AliITSresponseSSD;
b0f5e3fc 17
18class AliITSsimulationSSD: public AliITSsimulation {
19
57817f7c 20 public:
21 AliITSsimulationSSD(); // Default constructor
22 AliITSsimulationSSD(const AliITSsimulationSSD &source); // copy constructor
23 // operator =
24 AliITSsimulationSSD& operator=(const AliITSsimulationSSD &source);
25 //Standard Constructor
26 AliITSsimulationSSD(AliITSsegmentation *seg,AliITSresponse *resp);
27 //Destructor
28 virtual ~AliITSsimulationSSD();
c7a4dac0 29 // Initilize variables for this simulation
30 void Init(AliITSsegmentationSSD *seg,AliITSresponseSSD *resp);
3a97c582 31 // Create maps to build the lists of tracks for each summable digit
32 void InitSimulationModule(Int_t module,Int_t events);
3a97c582 33 // Digitize module from the sum of summable digits.
34 void FinishSDigitiseModule();
57817f7c 35 //Digitizes all of the hits in a module
c7a4dac0 36 void DigitiseModule(AliITSmodule *mod,Int_t dummy0,Int_t dummy1);
37 // Computes the Summable Digits
38 void SDigitiseModule(AliITSmodule *mod,Int_t module,Int_t dummy);
39 // Computes the Charge on each Strip/ Analog/summable digits
40 void HitsToAnalogDigits(AliITSmodule *mod,AliITSpList *pList);
57817f7c 41 //Computes the signal from one hit
42 void HitToDigit(Int_t module,Double_t x0,Double_t y0,Double_t z0,
43 Double_t x,Double_t y,Double_t z,Double_t de,
633e7c28 44 AliITSTableSSD *tav);
57817f7c 45 //returns a pointer to the SSD segmentation.
46 AliITSsegmentationSSD *GetSegmentation() {
47 return (AliITSsegmentationSSD*) fSegmentation;}
48 //Returns the ionization energy for Si in GeV.
49 Double_t GetIonizeE() const {return fIonE;}
50 //Sets the ionization energy for Si in GeV.
51 void SetIonizeE(Double_t e=3.62E-09){fIonE = e;}
52 //Returns the Diffusion constant h in cm**2/sec
53 Double_t GetDiffConst(Int_t i) const {return fDifConst[i];}
54 //Sets the Diffusion constant h in cm**2/sec
55 void SetDiffConst(Double_t h=11.0,Double_t e=30.0)
56 {fDifConst[0] = h;fDifConst[1]=e;}
57 //Returns the Drift velocity for the side i
58 Double_t GetDriftVelocity(Int_t i) const {return fDriftVel[i];}
59 //Sets the Drift velocity for the P and N sides
60 void SetDriftVelocity(Double_t v0=0.86E+06,Double_t v1=2.28E+06)
61 {fDriftVel[0] = v0;fDriftVel[1] = v1;}
62 // Standard ascii class print function
63 void Print(ostream *os);
64 // Standard ascii class read function
65 void Read(istream *is);
b0f5e3fc 66
c7a4dac0 67 private:
68 // returns the number of steps needed to proplerly distribute the charge
69 // in a step
70 Int_t NumOfSteps(Double_t x,Double_t y,Double_t z,
71 Double_t &dex,Double_t &dey,Double_t &dez);
72 // Keepts track and orders tracks for a give strip.
0dbfc771 73 void GetList(Int_t trk,Int_t ht,Int_t mod,AliITSpList *pLt,
74 AliITSTableSSD *tav);
c7a4dac0 75 // sets thresholds and fills digits
76 void ChargeToSignal(AliITSpList *pList);
77 // Writes Summable Digits to a root file for later use.
78 void WriteSDigits(AliITSpList *pList);
79 // ReadSDigits and create Digits
80 void SDigitToDigit(Int_t module,AliITSpList *pList);
81 // Fills fMapA2 from pList AliITSpList
82 void FillMapFrompList(AliITSpList *pList);
57817f7c 83 // Diffuses the charge onto neighboring strips.
84 void IntegrateGaussian(Int_t k,Double_t par,Double_t av,Double_t sigma,
85 Double_t inf, Double_t sup,
633e7c28 86 AliITSTableSSD *tav);
c7a4dac0 87 // Applies noise to strips randomly
88 void ApplyNoise(AliITSpList *pList,Int_t mod);
89 // Applies posible signal coupling between strips
90 void ApplyCoupling(AliITSpList *pList,Int_t mod);
91 // Computes the integral of a gaussian using Error Function
57817f7c 92 Float_t F(Float_t av, Float_t x, Float_t s);
c7a4dac0 93 // returns, from the segmentation, the number of stips
94 Int_t GetNStrips() {return GetSegmentation()->Npx();}
95 // returns, from the segmentation, the strip pitch
96 Float_t GetStripPitch() {return GetSegmentation()->Dpx(0);}
57817f7c 97
98 // Data members
fd61217e 99 protected:
57817f7c 100 AliITSdcsSSD *fDCS; // Class containing detector controle paramters
fd61217e 101
57817f7c 102 private:
103 AliITSMapA2 *fMapA2; //! Map of ionization, used localy only
104 Double_t fIonE; // ionization energy of Si in GeV
105 Double_t fDifConst[2]; // Diffusion constants [h,e] in cm**2/sec
106 Double_t fDriftVel[2]; // Drift velocities [P,N sides] cm/sec
3a97c582 107// Int_t fModule; //! Current module number
108// Int_t fEvent; //! Current Event number
109// AliITSpList *fpList; //! Array of s digits.
b0f5e3fc 110
57817f7c 111 ClassDef(AliITSsimulationSSD,2) // SSD signal simulation class
b0f5e3fc 112
57817f7c 113};
114// Input and output functions for standard C++ input/output.
115ostream &operator<<(ostream &os,AliITSsimulationSSD &source);
116istream &operator>>(istream &is,AliITSsimulationSSD &source);
b0f5e3fc 117#endif