// @(#)root/proofplayer:$Id$
// Author: Maarten Ballintijn   19/04/2002

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TProofLimitsFinder
#define ROOT_TProofLimitsFinder

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TProofLimitsFinder                                                   //
//                                                                      //
// Class to find nice axis limits and synchronize them between workers  //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_THLimitsFinder
#include "THLimitsFinder.h"
#endif

class TH1;
class TString;

class TProofLimitsFinder : public THLimitsFinder {

public:
   TProofLimitsFinder() { }
   virtual ~TProofLimitsFinder() { }
   virtual Int_t FindGoodLimits(TH1 *h, Axis_t xmin, Axis_t xmax);
   virtual Int_t FindGoodLimits(TH1 *h, Axis_t xmin, Axis_t xmax, Axis_t ymin, Axis_t ymax);
   virtual Int_t FindGoodLimits(TH1 *h, Axis_t xmin, Axis_t xmax, Axis_t ymin, Axis_t ymax, Axis_t zmin, Axis_t zmax);

   static void AutoBinFunc(TString& key,
                           Double_t& xmin, Double_t& xmax,
                           Double_t& ymin, Double_t& ymax,
                           Double_t& zmin, Double_t& zmax);

   ClassDef(TProofLimitsFinder,0)  //Find and communicate best axis limits
};

#endif
 TProofLimitsFinder.h:1
 TProofLimitsFinder.h:2
 TProofLimitsFinder.h:3
 TProofLimitsFinder.h:4
 TProofLimitsFinder.h:5
 TProofLimitsFinder.h:6
 TProofLimitsFinder.h:7
 TProofLimitsFinder.h:8
 TProofLimitsFinder.h:9
 TProofLimitsFinder.h:10
 TProofLimitsFinder.h:11
 TProofLimitsFinder.h:12
 TProofLimitsFinder.h:13
 TProofLimitsFinder.h:14
 TProofLimitsFinder.h:15
 TProofLimitsFinder.h:16
 TProofLimitsFinder.h:17
 TProofLimitsFinder.h:18
 TProofLimitsFinder.h:19
 TProofLimitsFinder.h:20
 TProofLimitsFinder.h:21
 TProofLimitsFinder.h:22
 TProofLimitsFinder.h:23
 TProofLimitsFinder.h:24
 TProofLimitsFinder.h:25
 TProofLimitsFinder.h:26
 TProofLimitsFinder.h:27
 TProofLimitsFinder.h:28
 TProofLimitsFinder.h:29
 TProofLimitsFinder.h:30
 TProofLimitsFinder.h:31
 TProofLimitsFinder.h:32
 TProofLimitsFinder.h:33
 TProofLimitsFinder.h:34
 TProofLimitsFinder.h:35
 TProofLimitsFinder.h:36
 TProofLimitsFinder.h:37
 TProofLimitsFinder.h:38
 TProofLimitsFinder.h:39
 TProofLimitsFinder.h:40
 TProofLimitsFinder.h:41
 TProofLimitsFinder.h:42
 TProofLimitsFinder.h:43
 TProofLimitsFinder.h:44
 TProofLimitsFinder.h:45
 TProofLimitsFinder.h:46
 TProofLimitsFinder.h:47