/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-#include "TH1F.h"
+////////////////////////////////////////////////////////////
+// Simulation class for SPD //
+////////////////////////////////////////////////////////////
+
#include "TObjArray.h"
#include "AliITSsimulation.h"
#include "AliITSCalibrationSPD.h"
#include "AliITSsegmentationSPD.h"
-#include "AliITSresponseSPD.h"
-#include "AliCDBEntry.h"
-#include "AliCDBLocal.h"
+class TH1F;
class AliITSmodule;
+class AliITSresponseSPD;
//-------------------------------------------------------------------
// Removes dead pixels from pList
void RemoveDeadPixels(AliITSmodule *mod);
// Take pList of signals and apply noise... create Digis
- void pListToDigits();
+ void FrompListToDigits();
//
void CreateHistograms();
void FillHistograms(Int_t ix,Int_t iz,Double_t v=1.0);
// For backwards compatibility
void SDigitsToDigits(){ FinishSDigitiseModule();};
void HitToDigit(AliITSmodule *mod){
- // Standard interface to DigitiseModule
- // Inputs:
- // AliITSmodule *mod Pointer to this module
- // Outputs:
- // none.
- // Return:
- // none.
+ // Standard interface to DigitiseModule Inputs: AliITSmodule *mod Pointer to this module
DigitiseModule(mod,GetModuleNumber(),0);};
private:
Double_t el,Double_t sigx,Double_t sigz,Int_t t,Int_t hi);
void UpdateMapSignal(Int_t ix,Int_t iz,Int_t trk,Int_t ht,Double_t signal){
// This function adds a signal to the pList from the pList class
- // Inputs:
- // Int_t iz // row number
- // Int_t ix // column number
- // Int_t trk // track number
- // Int_t ht // hit number
- // Double_t signal // signal strength
- // Outputs:
- // none.
- // Return:
- // none
+ // Inputs: iz column number ix row number trk track number ht hit number signal signal strength
GetMap()->AddSignal(iz,ix,trk,ht,GetModuleNumber(),signal);};
void UpdateMapNoise(Int_t ix,Int_t iz,Float_t noise){
// This function adds noise to data in the MapA2 as well as the pList
- // Inputs:
- // Int_t iz // row number
- // Int_t ix // column number
- // Double_t ns // electronic noise generated by pListToDigits
- // Outputs:
- // none.
- // Return:
- // none
+ // Inputs: iz column number ix row number noise electronic noise generated by FrompListToDigits
GetMap()->AddNoise(iz,ix,GetModuleNumber(),noise);}
// Get a pointer to the segmentation object
virtual AliITSsegmentation* GetSegmentationModel(Int_t /*dt*/){return fDetType->GetSegmentationModel(0);}
virtual void SetSegmentationModel(Int_t /*dt*/, AliITSsegmentation *seg){fDetType->SetSegmentationModel(0,seg);}
// Bari-Salerno Coupling parameters
// "New" coupling routine Tiziano Virgili
- void SetCoupling(Int_t row,Int_t col,Int_t ntrack,Int_t idhit);
+ void SetCoupling(Int_t col,Int_t row,Int_t ntrack,Int_t idhit);
// "Old" coupling routine Rocco Caliandro
- void SetCouplingOld(Int_t row, Int_t col,Int_t ntrack,Int_t idhit);
+ void SetCouplingOld(Int_t col, Int_t row,Int_t ntrack,Int_t idhit);
// Getters for data kept in fSegmentation and fResponse.
// Returns the Threshold in electrons
Double_t GetThreshold(){
TString fSPDname; //! Histogram name
Int_t fCoupling; // Sets the coupling to be used.
// ==1 use SetCoupling, ==2 use SetCouplingOld
- AliITSCalibrationSPD* calObj[240];
+ AliITSCalibrationSPD* fCalObj[240]; // Calibration objects (per module)
ClassDef(AliITSsimulationSPD,2) // Simulation of SPD clusters
};
#endif