New condtion for definition of bad anodes in SDD pedestal DA
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Jan 2010 17:33:51 +0000 (17:33 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Jan 2010 17:33:51 +0000 (17:33 +0000)
ITS/AliITSOnlineSDDBase.cxx

index 9cb5c39..5cdb9c0 100644 (file)
@@ -76,9 +76,14 @@ void  AliITSOnlineSDDBase::ValidateAnodes(){
   //
   for(Int_t ian=0;ian<fgkNAnodes;ian++){
     fGoodAnode[ian]=1;
-    if(GetAnodeBaseline(ian)>fMaxBaseline || GetAnodeBaseline(ian)<fMinBaseline) fGoodAnode[ian]=0;
-    else if(GetAnodeRawNoise(ian)>fMaxRawNoise || GetAnodeRawNoise(ian)<fMinRawNoise) fGoodAnode[ian]=0;
-    else if(GetAnodeRawNoise(ian)>fNSigmaNoise*CalcMeanRawNoise()) fGoodAnode[ian]=0;
+    Float_t basel=GetAnodeBaseline(ian);
+    Float_t rawn=GetAnodeRawNoise(ian);
+    Float_t ratio=0.;
+    if(rawn>0) ratio=basel/rawn;
+    if(basel>fMaxBaseline || basel<fMinBaseline) fGoodAnode[ian]=0;
+    else if(rawn>fMaxRawNoise || rawn<fMinRawNoise) fGoodAnode[ian]=0;
+    else if(rawn>fNSigmaNoise*CalcMeanRawNoise()) fGoodAnode[ian]=0;
+    else if(ratio<3.) fGoodAnode[ian]=0;
   }
 }