update for coding violations (only variable names and comments)
authordsilverm <dsilverm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 Feb 2012 11:41:46 +0000 (11:41 +0000)
committerdsilverm <dsilverm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 Feb 2012 11:41:46 +0000 (11:41 +0000)
EMCAL/AliEMCALQAChecker.cxx

index 79f7cfb..58b195f 100644 (file)
@@ -196,15 +196,15 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
                                //
                                //now check the ratio histogram
                                Double_t binContent = 0. ;  
-                               Int_t NGoodTower = 0 ;
+                               Int_t nGoodTower = 0 ;
                                Double_t rv = 0. ;
                                for(Int_t ix = 1; ix <= hdata->GetNbinsX(); ix++) {
                                        for(Int_t iy = 1; iy <= hdata->GetNbinsY(); iy++) {
                                                binContent = hdata->GetBinContent(ix, iy) ; 
-                                               if (binContent < 1.2 && binContent > 0.8) NGoodTower++ ;
+                                               if (binContent < 1.2 && binContent > 0.8) nGoodTower++ ;
                                        }
                                }
-                               rv = NGoodTower/nTot ; 
+                               rv = nGoodTower/nTot ; 
                                printf("%2.2f %% towers out of range [0.8, 1.2]\n", (1-rv)*100);
                                if(fText){
                                        lstF->Add(fText->Clone()) ;
@@ -232,18 +232,18 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
 
 
                                //Checker for L1GammaPatch (if a patch triggers > sigmaG * mean value (1/#patch positions total) says "hot spot !")
-                               Double_t L1GmeanTrig = 1/2961.; 
+                               Double_t dL1GmeanTrig = 1/2961.; 
                                Int_t sigmaG = 5; // deviation from mean value
-                               Double_t L1GEntries = hL1GammaPatch->GetEntries();
-                               Int_t BadL1G[48][64] = {{0}} ;
-                               Int_t NBadL1G = 0;
+                               Double_t dL1GEntries = hL1GammaPatch->GetEntries();
+                               Int_t badL1G[48][64] = {{0}} ;
+                               Int_t nBadL1G = 0;
                                for(Int_t ix = 1; ix <=  hL1GammaPatch->GetNbinsX(); ix++) {
                                        for(Int_t iy = 1; iy <=  hL1GammaPatch->GetNbinsY(); iy++) {
                                                Double_t binContent = hL1GammaPatch->GetBinContent(ix, iy) ; 
                                                if (binContent != 0) {
-                                                       if ((double)binContent/(double)L1GEntries > sigmaG*L1GmeanTrig) {
-                                                               BadL1G[ix-1][iy-1] += 1;
-                                                               NBadL1G += 1;
+                                                       if ((double)binContent/(double)dL1GEntries > sigmaG*dL1GmeanTrig) {
+                                                               badL1G[ix-1][iy-1] += 1;
+                                                               nBadL1G += 1;
                                                        }
                                                }
                                        }
@@ -253,7 +253,7 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
                                        lstF->Add(fTextL1[0]->Clone()) ;
                                        fTextL1[0]->Clear() ; 
 
-                                       if (NBadL1G == 0) {
+                                       if (nBadL1G == 0) {
                                                fTextL1[0]->SetFillColor(3) ;
                                                fTextL1[0]->AddText(Form("L1 GAMMA TRIGGER = OK, ENJOY...")); 
                                        }
@@ -263,7 +263,7 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
 /*
                                                for(Int_t ix = 1; ix <=  hL1GammaPatch->GetNbinsX(); ix++) {
                                                        for(Int_t iy = 1; iy <=  hL1GammaPatch->GetNbinsY(); iy++) {
-                                                               if(BadL1G[ix-1][iy-1] != 0) printf("L1 Gamma patch with position x = %d, y = %d is out of range\n",ix,iy);
+                                                               if(badL1G[ix-1][iy-1] != 0) printf("L1 Gamma patch with position x = %d, y = %d is out of range\n",ix,iy);
                                                        }
                                                }
 */
@@ -276,18 +276,18 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
                                CleanListOfFunctions(lstF);
                        
                                //Checker for L1JetPatch (if a patch triggers > sigmaJ * mean value (1/#patch positions total) says "hot spot !")
-                               Double_t L1JmeanTrig = 1/126.;
+                               Double_t dL1JmeanTrig = 1/126.;
                                Int_t sigmaJ = 5; // deviation from  mean value
-                               Double_t L1JEntries = hL1JetPatch->GetEntries();
-                               Int_t BadL1J[12][16] = {{0}} ;
-                               Int_t NBadL1J = 0;
+                               Double_t dL1JEntries = hL1JetPatch->GetEntries();
+                               Int_t badL1J[12][16] = {{0}} ;
+                               Int_t nBadL1J = 0;
                                for(Int_t ix = 1; ix <=  hL1JetPatch->GetNbinsX(); ix++) {
                                        for(Int_t iy = 1; iy <=  hL1JetPatch->GetNbinsY(); iy++) {
                                                Double_t binContent = hL1JetPatch->GetBinContent(ix, iy) ; 
                                                if (binContent != 0) {
-                                                       if ((double)binContent/(double)L1JEntries > sigmaJ*L1JmeanTrig) {
-                                                               BadL1J[ix-1][iy-1] += 1 ;
-                                                               NBadL1J += 1;
+                                                       if ((double)binContent/(double)dL1JEntries > sigmaJ*dL1JmeanTrig) {
+                                                               badL1J[ix-1][iy-1] += 1 ;
+                                                               nBadL1J += 1;
                                                        }
                                                }
                                        }
@@ -297,7 +297,7 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
                                        lstF->Add(fTextL1[1]->Clone()) ;
                                        fTextL1[1]->Clear() ; 
 
-                                       if (NBadL1J == 0) {
+                                       if (nBadL1J == 0) {
                                                fTextL1[1]->SetFillColor(3) ;
                                                fTextL1[1]->AddText(Form("L1 JET TRIGGER = OK, ENJOY...")); 
                                        }
@@ -307,7 +307,7 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
 /*
                                                for(Int_t ix = 1; ix <=  hL1JetPatch->GetNbinsX(); ix++) {
                                                        for(Int_t iy = 1; iy <=  hL1JetPatch->GetNbinsY(); iy++) {
-                                                               if(BadL1J[ix-1][iy-1] != 0) printf("L1 Jet patch with position x = %d, y = %d is out of range\n",(4*ix-4),(4*iy-4));
+                                                               if(badL1J[ix-1][iy-1] != 0) printf("L1 Jet patch with position x = %d, y = %d is out of range\n",(4*ix-4),(4*iy-4));
                                                        }
                                                }
 */
@@ -320,20 +320,20 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
                                lstF = hFrameR->GetListOfFunctions();
                                CleanListOfFunctions(lstF);
 
-                               Int_t BadLink[32] = {0};
-                               Int_t NBadLink = 0;
+                               Int_t badLink[32] = {0};
+                               Int_t nBadLink = 0;
                                for(Int_t ix = 0; ix <= hFrameR->GetNbinsX(); ix++) {
                                        Double_t binContent = hFrameR->GetBinContent(ix) ; 
                                        if (binContent == 0) {
-                                               BadLink[ix] += 1;
-                                               NBadLink += 1;
+                                               badLink[ix] += 1;
+                                               nBadLink += 1;
                                        }
                                }
                                if(fTextL1[2]){
                                        lstF->Add(fTextL1[2]->Clone()) ;
                                        fTextL1[2]->Clear() ; 
        
-                               if (NBadLink == 0) {
+                               if (nBadLink == 0) {
                                                fTextL1[2]->SetFillColor(3) ;
                                                fTextL1[2]->AddText(Form("LINK TRU-STU = OK, ENJOY...")); 
                                        }
@@ -342,7 +342,7 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
                                                fTextL1[2]->AddText(Form("PROBLEM WITH TRU-STU LINK = CALL EXPERT!!"));
 /*
                                                for(Int_t ix = 0; ix <= hFrameR->GetNbinsX(); ix++) {
-                                                       if(BadLink[ix] != 0) printf("STU link with TRU %d is out\n",ix);
+                                                       if(badLink[ix] != 0) printf("STU link with TRU %d is out\n",ix);
                                                }
 */
                                        }   
@@ -374,7 +374,7 @@ void AliEMCALQAChecker::Init(const AliQAv1::DETECTORINDEX_t det)
 //______________________________________________________________________________
 
 void AliEMCALQAChecker::CleanListOfFunctions(TList *list)
-{
+{ // clean up
 
        if (list) {
                TObject *stats = list->FindObject("stats"); list->Remove(stats);