File indexing completed on 2025-12-16 10:29:43
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef HISTFACTORY_DATA_H
0012 #define HISTFACTORY_DATA_H
0013
0014 #include <string>
0015 #include <fstream>
0016 #include <iostream>
0017
0018
0019 #include "RooStats/HistFactory/Sample.h"
0020
0021 namespace RooStats{
0022 namespace HistFactory {
0023
0024 class Data {
0025
0026 public:
0027
0028
0029 Data() {}
0030
0031 Data( std::string HistoName, std::string InputFile, std::string HistoPath="" );
0032
0033 std::string const& GetName() const { return fName; }
0034 void SetName(const std::string& name) { fName=name; }
0035
0036 void SetInputFile(const std::string& InputFile) { fInputFile = InputFile; }
0037 std::string const& GetInputFile() const { return fInputFile; }
0038
0039 void SetHistoName(const std::string& HistoName) { fHistoName = HistoName; }
0040 std::string const& GetHistoName() const { return fHistoName; }
0041
0042 void SetHistoPath(const std::string& HistoPath) { fHistoPath = HistoPath; }
0043 std::string const& GetHistoPath() const { return fHistoPath; }
0044
0045 void Print(std::ostream& = std::cout);
0046 void PrintXML( std::ostream& ) const;
0047 void writeToFile( std::string FileName, std::string DirName );
0048
0049 TH1* GetHisto();
0050 const TH1* GetHisto() const;
0051 void SetHisto(TH1* Hist) { fhData = Hist; fHistoName=Hist->GetName(); }
0052
0053 protected:
0054
0055 std::string fName;
0056
0057 std::string fInputFile;
0058 std::string fHistoName;
0059 std::string fHistoPath;
0060
0061
0062
0063 HistRef fhData;
0064
0065
0066 };
0067
0068 }
0069 }
0070
0071
0072 #endif