//this file looks like plain C, but it's actually -*- c++ -*-
#ifndef __TQCutflowPlotter__
#define __TQCutflowPlotter__

#include "QFramework/TQCutflowPrinter.h"
#include "TColor.h"
#include "TROOT.h"
#include "QFramework/TQPlotter.h"

class TQCutflowPlotter : public TQPresenter {
protected:


  void writePlain(std::ostream& out, TQTaggable& tags);
  void writeTikZHead(std::ostream& out, TQTaggable& tags);
  void writeTikZBody(std::ostream& out, TQTaggable& tags);
  void writeTikZFoot(std::ostream& out, TQTaggable& tags);

public:

  static TString getColorDefStringLaTeX(const TString& name, int color);
  static TString getColorDefStringLaTeX(const TString& name, TColor* color);

  TQCutflowPlotter(TQSampleFolder* sf);
  TQCutflowPlotter(TQSampleDataReader* reader);

  void setup();

  bool writeToFile(const TString& filename, const TString& tags);
  bool writeToFile(const TString& filename, TQTaggable& tags);

  ClassDefOverride(TQCutflowPlotter,0) // presenter class to plot cutflows as bar charts

};

#endif
 TQCutflowPlotter.h:1
 TQCutflowPlotter.h:2
 TQCutflowPlotter.h:3
 TQCutflowPlotter.h:4
 TQCutflowPlotter.h:5
 TQCutflowPlotter.h:6
 TQCutflowPlotter.h:7
 TQCutflowPlotter.h:8
 TQCutflowPlotter.h:9
 TQCutflowPlotter.h:10
 TQCutflowPlotter.h:11
 TQCutflowPlotter.h:12
 TQCutflowPlotter.h:13
 TQCutflowPlotter.h:14
 TQCutflowPlotter.h:15
 TQCutflowPlotter.h:16
 TQCutflowPlotter.h:17
 TQCutflowPlotter.h:18
 TQCutflowPlotter.h:19
 TQCutflowPlotter.h:20
 TQCutflowPlotter.h:21
 TQCutflowPlotter.h:22
 TQCutflowPlotter.h:23
 TQCutflowPlotter.h:24
 TQCutflowPlotter.h:25
 TQCutflowPlotter.h:26
 TQCutflowPlotter.h:27
 TQCutflowPlotter.h:28
 TQCutflowPlotter.h:29
 TQCutflowPlotter.h:30
 TQCutflowPlotter.h:31
 TQCutflowPlotter.h:32
 TQCutflowPlotter.h:33
 TQCutflowPlotter.h:34
 TQCutflowPlotter.h:35
 TQCutflowPlotter.h:36