Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 4279)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 4280)
@@ -18,4 +18,11 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+
+ 2004/06/08: Markus Gaug
+
+  * mhist/MHCamera.cc
+    - reduce number of default bins in AzimuthProfile
+    - use MatchSector in AzimuthProfile, like in RadialProfile
 
 
Index: /trunk/MagicSoft/Mars/mhist/MHCamera.cc
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 4279)
+++ /trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 4280)
@@ -160,5 +160,5 @@
     fUsed.Set(geom.GetNumPixels());
     for (Int_t i=0; i<fNcells-2; i++)
-        ResetUsed(i);
+      ResetUsed(i);
 }
 
@@ -750,6 +750,7 @@
   for (Int_t idx=0; idx<fNcells-2; idx++)
     {
-      h1->Fill(TMath::ATan2((*fGeomCam)[idx].GetY(),(*fGeomCam)[idx].GetX())*180./TMath::Pi()+180.,
-               GetBinContent(idx+1));
+      if (IsUsed(idx) && MatchSector(idx, TArrayI(), aidx))
+        h1->Fill(TMath::ATan2((*fGeomCam)[idx].GetY(),(*fGeomCam)[idx].GetX())*180./TMath::Pi()+180.,
+                 GetPixContent(idx));
       
     }
Index: /trunk/MagicSoft/Mars/mhist/MHCamera.h
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MHCamera.h	(revision 4279)
+++ /trunk/MagicSoft/Mars/mhist/MHCamera.h	(revision 4280)
@@ -255,9 +255,9 @@
 
     TProfile *AzimuthProfile(const char *name="_azi") const { return  AzimuthProfileA(TArrayI(), name);  }
-    TProfile *AzimuthProfile(Int_t aidx, const char *name="_rad", const Int_t nbins=60) const
+    TProfile *AzimuthProfile(Int_t aidx, const char *name="_rad", const Int_t nbins=25) const
       {
         return AzimuthProfileA(TArrayI(1, &aidx), name, nbins);
       }
-    TProfile *AzimuthProfileA(const TArrayI &aidx, const char *name="_rad", const Int_t nbins=60) const;
+    TProfile *AzimuthProfileA(const TArrayI &aidx, const char *name="_rad", const Int_t nbins=25) const;
     
     void CamDraw(TCanvas &c, const Int_t x, const Int_t y, 
