Reducing the printout
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 8 Sep 2004 09:14:59 +0000 (09:14 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 8 Sep 2004 09:14:59 +0000 (09:14 +0000)
MUON/AliMUONClusterFinderVS.cxx
MUON/AliMUONHitMapA1.cxx
TPC/AliTPC.cxx

index 6c600ae1ca11e941be79a1d36650b2d30e2da8b9..f27e356451f77c3d3383cc8595a05b3bb8ddeec2 100644 (file)
@@ -354,25 +354,25 @@ void AliMUONClusterFinderVS::SplitByLocalMaxima(AliMUONRawCluster *c)
 // 1 maximum is initialised with the maximum of the combination found (X->cathode 2, Y->cathode 1)
 // 1 maximum is initialised with the other maximum of the first cathode  
            if (accepted[0]){
-               fprintf(stderr,"ico=0\n");
+               if (fDebugLevel) fprintf(stderr,"ico=0\n");
                fXInit[0]=xm[0][1];
                fYInit[0]=ym[0][0];
                fXInit[1]=xm[3][0];
                fYInit[1]=ym[3][0];
            } else if (accepted[1]){
-               fprintf(stderr,"ico=1\n");
+               if (fDebugLevel) fprintf(stderr,"ico=1\n");
                fXInit[0]=xm[1][1];
                fYInit[0]=ym[1][0];
                fXInit[1]=xm[2][0];
                fYInit[1]=ym[2][0];
            } else if (accepted[2]){
-               fprintf(stderr,"ico=2\n");
+               if (fDebugLevel) fprintf(stderr,"ico=2\n");
                fXInit[0]=xm[2][1];
                fYInit[0]=ym[2][0];
                fXInit[1]=xm[1][0];
                fYInit[1]=ym[1][0];
            } else if (accepted[3]){
-               fprintf(stderr,"ico=3\n");
+               if (fDebugLevel) fprintf(stderr,"ico=3\n");
                fXInit[0]=xm[3][1];
                fYInit[0]=ym[3][0];
                fXInit[1]=xm[0][0];
@@ -396,25 +396,25 @@ void AliMUONClusterFinderVS::SplitByLocalMaxima(AliMUONRawCluster *c)
 // 1 maximum is initialised with the maximum of the combination found (X->cathode 2, Y->cathode 1)
 // 1 maximum is initialised with the other maximum of the second cathode  
                if (accepted[0]){
-                   fprintf(stderr,"ico=0\n");
+                   if (fDebugLevel) fprintf(stderr,"ico=0\n");
                    fXInit[0]=xm[0][1];
                    fYInit[0]=ym[0][0];
                    fXInit[1]=xm[3][1];
                    fYInit[1]=ym[3][1];
                } else if (accepted[1]){
-                   fprintf(stderr,"ico=1\n");
+                   if (fDebugLevel) fprintf(stderr,"ico=1\n");
                    fXInit[0]=xm[1][1];
                    fYInit[0]=ym[1][0];
                    fXInit[1]=xm[2][1];
                    fYInit[1]=ym[2][1];
                } else if (accepted[2]){
-                   fprintf(stderr,"ico=2\n");
+                   if (fDebugLevel) fprintf(stderr,"ico=2\n");
                    fXInit[0]=xm[2][1];
                    fYInit[0]=ym[2][0];
                    fXInit[1]=xm[1][1];
                    fYInit[1]=ym[1][1];
                } else if (accepted[3]){
-                   fprintf(stderr,"ico=3\n");
+                   if (fDebugLevel) fprintf(stderr,"ico=3\n");
                    fXInit[0]=xm[3][1];
                    fYInit[0]=ym[3][0];
                    fXInit[1]=xm[0][1];
@@ -449,8 +449,10 @@ void AliMUONClusterFinderVS::SplitByLocalMaxima(AliMUONRawCluster *c)
                                    cnew.SetIndex(i, cath, c->GetIndex(i,cath));
                                    fSeg[cath]->SetPad(fIx[i][cath], fIy[i][cath]);
                                }
-                               fprintf(stderr,"\nRawCluster %d cath %d\n",ico,cath);
-                               fprintf(stderr,"mult_av %d\n",c->GetMultiplicity(cath));
+                               if (fDebugLevel) {
+                                 fprintf(stderr,"\nRawCluster %d cath %d\n",ico,cath);
+                                 fprintf(stderr,"mult_av %d\n",c->GetMultiplicity(cath));
+                               }
                                FillCluster(&cnew,cath);
                            } 
                            cnew.SetClusterType(cnew.PhysicsContribution());
@@ -467,7 +469,7 @@ void AliMUONClusterFinderVS::SplitByLocalMaxima(AliMUONRawCluster *c)
        if (iacc==2) {
 // Was the same maximum taken twice
            if ((accepted[0]&&accepted[1]) || (accepted[2]&&accepted[3])) {
-               fprintf(stderr,"\n Maximum taken twice !!!\n");
+               if (fDebugLevel) fprintf(stderr,"\n Maximum taken twice !!!\n");
 
 // Have a try !! with that
                if (accepted[0]&&accepted[3]) {
@@ -733,8 +735,10 @@ void AliMUONClusterFinderVS::SplitByLocalMaxima(AliMUONRawCluster *c)
                            cnew.SetIndex(i, cath, c->GetIndex(i, cath));
                            fSeg[cath]->SetPad(fIx[i][cath], fIy[i][cath]);
                        }
-                       fprintf(stderr,"\nRawCluster %d cath %d\n",ico,cath);
-                       fprintf(stderr,"mult_av %d\n",c->GetMultiplicity(cath));
+                       if (fDebugLevel){
+                         fprintf(stderr,"\nRawCluster %d cath %d\n",ico,cath);
+                         fprintf(stderr,"mult_av %d\n",c->GetMultiplicity(cath));
+                       }
                        FillCluster(&cnew,cath);
                    } 
                    cnew.SetClusterType(cnew.PhysicsContribution());
@@ -794,7 +798,7 @@ void AliMUONClusterFinderVS::SplitByLocalMaxima(AliMUONRawCluster *c)
            if ((dx <= dpx) && (dy <= dpy+eps)) {
                // consistent
                accepted[ico]=kTRUE;
-               fprintf(stderr,"ico %d\n",ico);
+               if (fDebugLevel) fprintf(stderr,"ico %d\n",ico);
                iacc++;
            } else {
                // reject
@@ -871,8 +875,10 @@ void AliMUONClusterFinderVS::SplitByLocalMaxima(AliMUONRawCluster *c)
                            cnew.SetIndex(i, cath, c->GetIndex(i, cath));
                            fSeg[cath]->SetPad(fIx[i][cath], fIy[i][cath]);
                        }
-                       fprintf(stderr,"\nRawCluster %d cath %d\n",ico,cath);
-                       fprintf(stderr,"mult_av %d\n",c->GetMultiplicity(cath));
+                       if (fDebugLevel) {
+                         fprintf(stderr,"\nRawCluster %d cath %d\n",ico,cath);
+                         fprintf(stderr,"mult_av %d\n",c->GetMultiplicity(cath));
+                       }
                        FillCluster(&cnew,cath);
                    } 
                    cnew.SetClusterType(cnew.PhysicsContribution());
@@ -1358,6 +1364,7 @@ void  AliMUONClusterFinderVS::FindCluster(Int_t i, Int_t j, Int_t cath, AliMUONR
 
     c.SetMultiplicity(cath, c.GetMultiplicity(cath)+1);
     if (c.GetMultiplicity(cath) >= 50 ) {
+      if (fDebugLevel)
        printf("FindCluster - multiplicity >50  %d \n",c.GetMultiplicity(0));
        c.SetMultiplicity(cath, 49);
     }
index 1e8ad685a4d96d30a840cd0b2cf04e53762b7dfe..21b98259a2576411c4bea7c69c5a982739c3fba0 100644 (file)
@@ -85,8 +85,8 @@ Int_t AliMUONHitMapA1::CheckedIndex(Int_t ix, Int_t iy) const
 // Return checked indices ix, iy
     Int_t index=2*fNpy*(ix+fNpx)+(iy+fNpy);
     if (index >= fMaxIndex) {
-       printf("\n \n \n Try to read/write outside array !!!! \n \n %d %d %d %d %d %d",
-              ix,iy, fMaxIndex, index, fNpx, fNpy);
+//     printf("\n \n \n Try to read/write outside array !!!! \n \n %d %d %d %d %d %d",
+//            ix,iy, fMaxIndex, index, fNpx, fNpy);
        return  fMaxIndex-1;
     } else {
        return index;
index 6020cde38670a2e8879f30244c0f54c3ef5eb149..567cbb1d3c642961895ccd3b5f1fa3c813f985b6 100644 (file)
@@ -2573,7 +2573,7 @@ AliTPCParam* AliTPC::LoadTPCParam(TFile *file) {
   sprintf(paramName,"75x40_100x60_150x60");
   AliTPCParam *paramTPC=(AliTPCParam*)file->Get(paramName);
   if (paramTPC) {
-    cout<<"TPC parameters "<<paramName<<" found."<<endl;
+    //    cout<<"TPC parameters "<<paramName<<" found."<<endl;
   } else {
     cerr<<"TPC parameters not found. Create new (they may be incorrect)."
        <<endl;