susy_cfa  b611ccad937ea179f86a1f5663960264616c0a20
event_handler.hpp
Go to the documentation of this file.
1  // event_handler: main class for reduced tree production
2  //File generated with generate_small_tree.exe
3 
4 #ifndef H_EVENT_HANDLER
5 #define H_EVENT_HANDLER
6 
7 #include <string>
8 #include "TString.h"
9 
10 #include "event_handler_base.hpp"
11 
12 #include "event_handler_quick.hpp"
14 public:
15  event_handler(const std::string &file_name, const std::string &type);
16  void ReduceTree(int num_entries, const TString &out_file_name, int num_total_entries);
17  long TotalEntries() const;
18  short GetVersion() const;
19  const std::string& SampleName() const;
20  const std::string& SampleName(const std::string &sample_name);
21  void SetFile(const std::string &file, bool is_8TeV = false);
22  void AddFiles(const std::string &file);
25 private:
26  static event_handler_base * LookUpType(const std::string &file_name, const std::string &type);
27 };
28 
29 #endif
static event_handler_base * LookUpType(const std::string &file_name, const std::string &type)
long TotalEntries() const
void SetFile(const std::string &file, bool is_8TeV=false)
const std::string & SampleName() const
event_handler_base * ehb
event_handler(const std::string &file_name, const std::string &type)
void AddFiles(const std::string &file)
short GetVersion() const
void ReduceTree(int num_entries, const TString &out_file_name, int num_total_entries)