]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSSimParam.cxx
Coverity fixes
[u/mrichter/AliRoot.git] / PHOS / AliPHOSSimParam.cxx
index fc20fa18eb3b65c20842c520116822240c9d0fb4..14684e09635ee7d5363d117cba7ded6d378ff711 100644 (file)
@@ -31,7 +31,8 @@ AliPHOSSimParam::AliPHOSSimParam() :
   fLightFactor(0.),fAPDFactor(0.),         
   fAPDNoise(0.),fEMCDigitThreshold(0.),
   fEMCADCchannel(0.),fTOFa(0.),fTOFb(0.),
-  fFastDecalibration(0.),
+  fEMCSubtractPedestals(kFALSE),
+  fGlobalAltroOffset(0),fGlobalAltroThreshold(0),fEMCSampleQualityCut(0),
   fADCpedestalCpv(0.),fADCchanelCpv(0.),
   fCPVNoise(0.),fCPVDigitThreshold(0.),fNADCcpv(0),
   fDigitizeE(0)
@@ -47,9 +48,11 @@ AliPHOSSimParam::AliPHOSSimParam(Int_t) :
   fLightFactor(0.),fAPDFactor(0.),         
   fAPDNoise(0.),fEMCDigitThreshold(0.),
   fEMCADCchannel(0.),fTOFa(0.),fTOFb(0.),
-  fFastDecalibration(0.),
+  fEMCSubtractPedestals(kFALSE),
+  fGlobalAltroOffset(0),fGlobalAltroThreshold(0),fEMCSampleQualityCut(0),
   fADCpedestalCpv(0.),fADCchanelCpv(0.),
-  fCPVNoise(0.),fCPVDigitThreshold(0.),fNADCcpv(0),
+  fCPVNoise(0.),fCPVDigitThreshold(0.),
+  fNADCcpv(0),
   fDigitizeE(0)
 {
   //Real (private) constructor 
@@ -79,19 +82,21 @@ AliPHOSSimParam::AliPHOSSimParam(Int_t) :
   //Parameters defining electronic noise calculation and Digits noise thresholds
   //used in AliPHOSDigitizer
   fAPDNoise           = 0.004 ;  // [GeV]
-  fEMCDigitThreshold  = 0.012 ;  // [GeV]
+  fEMCDigitThreshold  = 2.5   ;  // [ADC counts]
   fEMCADCchannel      = 0.005 ;  // [GeV]
   fTOFa               = 0.5e-9 ; // [sec] constant term
   fTOFb               = 1.e-9 ;  // [sec/sqrt(GeV)]] stohastic term
 
-  fFastDecalibration = 0. ; //Relative decalibration. By default there is no decalibration
-
   fADCpedestalCpv     = 0.012 ;  // [aux units]
   fADCchanelCpv       = 0.0012;  // [aux units]    
   fCPVNoise           = 0.01;    // [aux units]
   fCPVDigitThreshold  = 0.09 ;   // [aux units]
   fNADCcpv  =  (Int_t)TMath::Power(2,12) ;
 
+  fGlobalAltroOffset = 10;
+  fGlobalAltroThreshold = 5;
+  fEMCSampleQualityCut = 4.;
+
   //Imput streams for merging. If true => this stream contains digits (and thus noise) and not SDigits.
   for(Int_t i=0; i<10; i++){
     fDStream[i] = 0 ;
@@ -106,7 +111,8 @@ AliPHOSSimParam::AliPHOSSimParam(const AliPHOSSimParam& ):
   fLightFactor(0.),fAPDFactor(0.),         
   fAPDNoise(0.),fEMCDigitThreshold(0.),
   fEMCADCchannel(0.),fTOFa(0.),fTOFb(0.),
-  fFastDecalibration(0.),
+  fEMCSubtractPedestals(kFALSE),
+  fGlobalAltroOffset(0),fGlobalAltroThreshold(0),fEMCSampleQualityCut(1.),
   fADCpedestalCpv(0.),fADCchanelCpv(0.),
   fCPVNoise(0.),fCPVDigitThreshold(0.),fNADCcpv(0),
   fDigitizeE(0)