]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSsimulationSPD.h
Remove AliTRDv2
[u/mrichter/AliRoot.git] / ITS / AliITSsimulationSPD.h
index c1ae2080fd11a702a38d765e5b3774877726feb2..55855ff8e26875925795c4b2d35b66a823e1dbbd 100644 (file)
@@ -4,16 +4,18 @@
 /* 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;
 
 //-------------------------------------------------------------------
 
@@ -54,7 +56,7 @@ class AliITSsimulationSPD : public AliITSsimulation {
     // 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);
@@ -67,13 +69,7 @@ class AliITSsimulationSPD : public AliITSsimulation {
     // 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:
@@ -83,27 +79,11 @@ class AliITSsimulationSPD : public AliITSsimulation {
                       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);}
@@ -111,9 +91,9 @@ class AliITSsimulationSPD : public AliITSsimulation {
     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(){
@@ -132,7 +112,7 @@ class AliITSsimulationSPD : public AliITSsimulation {
     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