- void SDigitiseModule(AliITSmodule *mod, Int_t dummy0,Int_t dummy1);
- // digitize module. Also need to digitize modules with only noise.
- void DigitiseModule(AliITSmodule *mod,Int_t dummy0, Int_t dummy1);
- // sum digits to Digits.
- void SDigitsToDigits(Int_t module,AliITSpList *pList);
- // updates the Map of signal, adding the energy (ene) released by
- // the current track
- void UpdateMapSignal(Int_t row,Int_t col,Int_t trk,Int_t hit,Int_t mod,
- Double_t ene,AliITSpList *pList);
- // updates the Map of noise, adding the energy (ene) give my noise
- void UpdateMapNoise(Int_t row,Int_t col,Int_t mod,Double_t ene,
- AliITSpList *pList);
- // Loops over all hits to produce Analog/floting point digits. This
- // is also the first task in producing standard digits.
- void HitsToAnalogDigits(AliITSmodule *mod,Int_t *frowpixel,
- Int_t *fcolpixel,Double_t *fenepixel,
- AliITSpList *pList);
- // Steering function to determine the digits associated to a given
- // hit (hitpos)
- // The digits are created by charge sharing (ChargeSharing) and by
- // capacitive coupling (SetCoupling). At all the created digits is
- // associated the track number of the hit (ntrack)
- void HitToDigit(AliITSmodule *mod, Int_t hitpos,Int_t *frowpixel,
- Int_t *fcolpixel, Double_t *fenepixel,AliITSpList *pList);
- // Take into account the geometrical charge sharing when the track
- // crosses more than one pixel.
- void ChargeSharing(Float_t x1l,Float_t z1l,Float_t x2l,Float_t z2l,
- Int_t c1,Int_t r1,Int_t c2,Int_t r2,Float_t etot,
- Int_t &npixel,Int_t *frowpixel,Int_t *fcolpixel,
- Double_t *fenepixel);
- // Take into account the coupling between adiacent pixels.
- // The parameters probcol and probrow are the fractions of the
- // signal in one pixel shared in the two adjacent pixels along
- // the column and row direction, respectively. Now done in a statistical
- // way and not "mechanical" as in the Old version.
- void SetCoupling(Int_t row,Int_t col,Int_t ntrack,Int_t idhit,Int_t module,
- AliITSpList *pList);
- // Take into account the coupling between adiacent pixels.
- // The parameters probcol and probrow are the fractions of the
- // signal in one pixel shared in the two adjacent pixels along
- // the column and row direction, respectively.
- void SetCouplingOld(Int_t row,Int_t col,Int_t ntrack,Int_t idhit,
- Int_t module,AliITSpList *pList);
- // The pixels are fired if the energy deposited inside them is above
- // the threshold parameter ethr. Fired pixed are interpreted as digits
- // and stored in the file digitfilename. One also needs to write out
- // cases when there is only noise (nhits==0).
- void CreateDigit(Int_t module,AliITSpList *pList);
- // Set the electronic noise and threshold non-uniformities to all the
- // pixels in a detector.
- // The parameter fSigma is the squared sum of the sigma due to noise
- // and the sigma of the threshold distribution among pixels.
- void SetFluctuations(AliITSpList *pList,Int_t module);
- // Apply a mask to the SPD module. 1% of the pixel channels are
- // masked. When the database will be ready, the masked pixels
- // should be read from it.
- void SetMask();
- // Create Histograms
+ // From hits to Digits, without creating SDigits
+ void DigitiseModule(AliITSmodule *mod,Int_t,Int_t);
+
+ // More or less Internal Routines
+ // Create S Digits from specific module
+ void SDigitiseModule(AliITSmodule *mod, Int_t mask, Int_t event);
+ // Write S Digits to the tree of SDigits.
+ void WriteSDigits();
+ // fill pList from hits, charge sharing, diffusion, coupling
+ void HitToSDigit(AliITSmodule *mod);
+ // fill pList from hits, charge sharing, diffusion, coupling (faster method optimized by Bjorne)
+ void HitToSDigitFast(AliITSmodule *mod);
+ // Removes dead pixels from pList
+ void RemoveDeadPixels(AliITSmodule *mod);
+ // Take pList of signals and apply noise... create Digis
+ void FrompListToDigits();
+ //