CombineHarvester
HistMapping.h
Go to the documentation of this file.
1 #ifndef CombineTools_HistMapping_h
2 #define CombineTools_HistMapping_h
3 #include <string>
4 #include <memory>
5 #include "TFile.h"
6 #include "RooWorkspace.h"
7 
8 namespace ch {
9 
10  struct HistMapping {
11  std::string process;
12  std::string category;
13  std::string pattern;
14  std::string syst_pattern;
15  std::shared_ptr<TFile> file;
16  std::shared_ptr<RooWorkspace> ws;
17  std::shared_ptr<RooWorkspace> sys_ws;
18  bool is_fake;
19  bool IsHist() const;
20  bool IsPdf() const;
21  bool IsData() const;
22  std::string WorkspaceName() const;
23  std::string WorkspaceObj() const;
24  std::string SystWorkspaceName() const;
25  std::string SystWorkspaceObj() const;
26 
27  HistMapping();
28  HistMapping(std::string const& p, std::string const& c,
29  std::string const& pat, std::string const& s_pat);
30 
31  friend std::ostream& operator<< (std::ostream &out, HistMapping const& val);
32  };
33 }
34 
35 #endif
Definition: Algorithm.h:10
friend std::ostream & operator<<(std::ostream &out, HistMapping const &val)
Definition: HistMapping.cc:70
std::string SystWorkspaceObj() const
Definition: HistMapping.cc:61
std::shared_ptr< TFile > file
Definition: HistMapping.h:15
std::string category
Definition: HistMapping.h:12
std::string SystWorkspaceName() const
Definition: HistMapping.cc:53
std::string pattern
Definition: HistMapping.h:13
bool IsData() const
Definition: HistMapping.cc:29
std::string WorkspaceObj() const
Definition: HistMapping.cc:45
bool IsHist() const
Definition: HistMapping.cc:13
std::string process
Definition: HistMapping.h:11
std::string syst_pattern
Definition: HistMapping.h:14
bool IsPdf() const
Definition: HistMapping.cc:21
std::shared_ptr< RooWorkspace > ws
Definition: HistMapping.h:16
std::shared_ptr< RooWorkspace > sys_ws
Definition: HistMapping.h:17
std::string WorkspaceName() const
Definition: HistMapping.cc:37