]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Avoid all warnings on SunOS. Again!
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Jul 1999 16:50:40 +0000 (16:50 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Jul 1999 16:50:40 +0000 (16:50 +0000)
RICH/AliRICH.cxx
RICH/AliRICHHitMap.h
RICH/AliRICHSegResV0.h
RICH/AliRICHdisplay.cxx

index 7e3071dab8c8b2d823a862fc5fdf22e1d9b93139..ee69b108f811d2ca01cfd8d3c35a99715bba82d6 100644 (file)
@@ -828,9 +828,10 @@ void AliRICH::Digitise(Int_t nev,Option_t *option,Text_t *filename)
     // keep galice.root for signal and name differently the file for 
     // background when add! otherwise the track info for signal will be lost !
     
-    static Bool_t first=true;
+    static Bool_t first=kTRUE;
     static TTree *TH1;
     static TFile *File;
+    Int_t i;
     char *Add = strstr(option,"Add");
 
     AliRICHchamber*  iChamber;
@@ -844,7 +845,7 @@ void AliRICH::Digitise(Int_t nev,Option_t *option,Text_t *filename)
     
     AliRICH *RICH  = (AliRICH *) gAlice->GetDetector("RICH");
     AliRICHHitMap* HitMap[10];
-    for (Int_t i=0; i<10; i++) {HitMap[i]=0;}
+    for (i=0; i<10; i++) {HitMap[i]=0;}
     if (Add ) {
        if(first) {
            fFileName=filename;
@@ -853,7 +854,7 @@ void AliRICH::Digitise(Int_t nev,Option_t *option,Text_t *filename)
            cout<<"I have opened "<<fFileName<<" file "<<endl;
            fHits2     = new TClonesArray("AliRICHhit",1000  );
            fClusters2 = new TClonesArray("AliRICHcluster",10000);
-           first=false;
+           first=kFALSE;
        }
        File->cd();
        File->ls();
@@ -888,7 +889,7 @@ void AliRICH::Digitise(Int_t nev,Option_t *option,Text_t *filename)
     AliRICHHitMap* hm;
     
     for (int icat=0; icat<1; icat++) { 
-       for (Int_t i=0; i<7; i++) {
+       for (i=0; i<7; i++) {
            if (HitMap[i]) {
                hm=HitMap[i];
                delete hm;
@@ -896,7 +897,7 @@ void AliRICH::Digitise(Int_t nev,Option_t *option,Text_t *filename)
            }
        }
        Int_t counter=0;
-       for (Int_t i =0; i<7; i++) {
+       for (i =0; i<7; i++) {
            iChamber=(AliRICHchamber*) (*fChambers)[i];
            if (iChamber->Nsec()==1 && icat==1) {
                continue;
@@ -1176,8 +1177,8 @@ void AliRICH::Digitise(Int_t nev,Option_t *option,Text_t *filename)
        TClonesArray *fDch;
        for (int k=0;k<7;k++) {
            fDch= RICH->DigitsAddress(k);
-           int ndig=fDch->GetEntriesFast();
-           printf (" k, ndigits %d %d \n",k,ndig);
+           int ndigit=fDch->GetEntriesFast();
+           printf (" k, ndigits %d %d \n",k,ndigit);
        }
        RICH->ResetDigits();
        
index 6bf3caa0bc8b3bff602bad4e0d9624010f69cf90..bbcfda7450159189ffcdf7fc8a6f998bcf6a9451 100644 (file)
@@ -30,7 +30,7 @@ public AliRICHHitMap
     Int_t fNpy;
     TObjArray *fDigits;
     Int_t fNdigits;
-    Int_t *fHitMap;
+    Int_t *fHitMap;                  //!
     Int_t fMaxIndex;
     
  public:
index d9c0a4ca37194a466bd60d6dec21cdd44945a350..65fc6864026d36b886bd37a03179dbb0cd88cb1b 100644 (file)
@@ -86,8 +86,7 @@ public AliRICHsegmentation {
     Float_t fxt;
     Float_t fyt;
     //
-    // Version Identifier
-    char    *fName;       
+    char    *fName;       //! Version Identifier
 };
 
 class AliRICHresponseV0 : //Mathieson response
@@ -147,7 +146,7 @@ public AliRICHresponse {
     Float_t fKy2;
     Float_t fKy4;
     Float_t fPitch;           //anode-cathode pitch
-    char    *fName;           // Version Identifier
+    char    *fName;           //! Version Identifier
 };
 
 #endif
index 4364c8a5a04534ce11ca2fd33b60241d5e88b76d..4484c51a47b0e1549d9caef4deba07c1cc4b8f70 100644 (file)
@@ -625,8 +625,9 @@ void AliRICHdisplay::LoadDigits()
    AliRICHchamber*       iChamber;
    AliRICHsegmentation*  segmentation;
    Int_t NallDigits=0;
+   Int_t ich;
    
-   for (Int_t ich=0; ich<7; ich++) {
+   for (ich=0; ich<7; ich++) {
        TClonesArray *RICHdigits  = RICH->DigitsAddress(ich);
        if (RICHdigits == 0) continue;
        gAlice->ResetDigits();
@@ -637,7 +638,7 @@ void AliRICHdisplay::LoadDigits()
    }
    if (fPoints == 0) fPoints = new TObjArray(NallDigits);   
    Int_t counter=0;
-   for (Int_t ich=0; ich<7; ich++) {
+   for (ich=0; ich<7; ich++) {
        TClonesArray *RICHdigits  = RICH->DigitsAddress(ich);
        if (RICHdigits == 0) continue;
        gAlice->ResetDigits();