MINT2
DalitzHistoStackSet.h
Go to the documentation of this file.
1 #ifndef DALITZ_HISTO_STACK_SET_HH
2 #define DALITZ_HISTO_STACK_SET_HH
3 
4 #include "Mint/DalitzSet.h"
5 #include "THStack.h"
6 #include "Mint/DalitzHistogram.h"
7 #include "Mint/DalitzHistoSet.h"
8 #include "TH1.h"
9 #include "TH2F.h"
10 #include "Mint/counted_ptr.h"
11 
12 class TPaletteAxis;
13 
14 class DalitzHistoStackSet : public DalitzSet<THStack>{
15 
16  std::vector< MINT::counted_ptr<TH1*> > _histograms;
18 
19  int _ncol;
20  int* _palette;
21  double _max;
22  double _min;
23 
25 
26  void makeH2ForPalette() const;
28  TPaletteAxis* getPaletteAxis() const;
29 
30  public:
33 
34  virtual void add(const DalitzCoordSet& coord, const MINT::counted_ptr<TH1>& histo);
35  virtual void add(const DalitzHistogram& histo);
36  virtual void add(const DalitzHistoSet& hL);
37 
38  bool draw(const std::string& baseName=""
39  , const std::string& drawOpt="HIST"
40  , const std::string& format="eps") const;
41 
42  void setColourPalette(int nCol, int* pal, double max, double min = 0.000001);
43 
44  virtual ~DalitzHistoStackSet();
45 };
46 
47 #endif
48 //
49 //
TPaletteAxis * getPaletteAxis() const
virtual void add(const DalitzCoordSet &coord, const MINT::counted_ptr< TH1 > &histo)
MINT::counted_ptr< TH2F > getH2ForPalette() const
MINT::counted_ptr< THStack > makeHStack(const DalitzCoordSet &coord) const
bool draw(const std::string &baseName="", const std::string &drawOpt="HIST", const std::string &format="eps") const
MINT::counted_ptr< TH2F > _h2ForPalette
std::vector< MINT::counted_ptr< TH1 * > > _histograms
void setColourPalette(int nCol, int *pal, double max, double min=0.000001)