]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSresponseSPD.cxx
Fix coverity defect (Jochen)
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSPD.cxx
index 0c88001b10690c9bdfe4118727901a7984b73869..2dcebe7c2a98a5ca20fe1ad02cc966d62ec8bc87 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-//////////////////////////////////////////////////////
-//  Response class for set:ITS                      //
-//  Specific subdetector implementation for         //
-//  Silicon pixels                                  //
-//  An alternative version "SPDdubna"               //
-//  is also available                               //
-//////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////
+//  Base Response class forITS                      
+//  It is used to set static data members           
+//  connected to parameters equal for all           
+//  the SPD modules                                 
+//
+//  Modified by D. Elia, G.E. Bruno
+//  March-April 2006
+//  September   2007: Coupling params taken out
+//                    left in AliITSCalibrationSPD only
+//
+///////////////////////////////////////////////////////////////////////////
 
 #include "AliITSresponseSPD.h"
 
-const Double_t AliITSresponseSPD::fgkDiffCoeffDefault = 0.;
-const Double_t AliITSresponseSPD::fgkThreshDefault = 2000.;
-const Double_t AliITSresponseSPD::fgkSigmaDefault = 280.;
+const Float_t AliITSresponseSPD::fgkDiffCoeffDefault = 0.; //change this
+const TString AliITSresponseSPD::fgkCouplingOptDefault = "old";
+const Float_t AliITSresponseSPD::fgkEccentricityDiffDefault = 0.85;
 
 ClassImp(AliITSresponseSPD)    
 //______________________________________________________________________
 AliITSresponseSPD::AliITSresponseSPD():
-AliITSresponse(),
-fBaseline(0.0),
-fNoise(0.0),
-fThresh(fgkThreshDefault),
-fSigma(fgkSigmaDefault),
-fCouplCol(0.0),
-fCouplRow(0.0),
-fDeadPixels(0.01){
-  // constructor
+  AliITSresponse(),
+fCouplOpt(0),
+fEccDiff(0){
 
-   SetThresholds(fgkThreshDefault,fgkSigmaDefault);
-   //SetDiffCoeff(fgkDiffCoeffDefault,0.);
-   SetNoiseParam(0.,0.);
-   SetDataType("simulated");
-   SetFractionDead();
-}
-//_________________________________________________________________________
-Bool_t AliITSresponseSPD::IsPixelDead(Int_t mod,Int_t ix,Int_t iz) const {
-  // Returns kTRUE if pixel is dead
-  // Inputs:
-  //    Int_t mod      module number
-  //    Int_t ix       x pixel number
-  //    Int_t iz       z pixel number
-  // Outputs:
-  //    none.
-  // Return:
-  //    kFALSE if pixel is alive, or kTRUE if pixel is dead.
-  Bool_t  dead = kFALSE;
-  Int_t   seed;
-  static TRandom ran; // don't use gRandom. This must not be a true randome
-  // sequence. These sequence must be random one and then fully repetable.
+  // constructor
+  SetCouplingOption(fgkCouplingOptDefault);
+  SetDiffCoeff(fgkDiffCoeffDefault,0.);
+  SetSigmaDiffusionAsymmetry(fgkEccentricityDiffDefault);
 
-  seed = mod*256*256+iz*256+ix;
-  ran.SetSeed(seed);
-  if(ran.Rndm(0)<fDeadPixels) dead = kTRUE;
-  return dead;
 }