/usr/include/root/RooStats/HistFactory/Measurement.h is in libroot-roofit-dev 5.34.00-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | #ifndef HISTFACTORY_MEASUREMENT_H
#define HISTFACTORY_MEASUREMENT_H
#include <string>
#include <map>
#include <fstream>
#include <iostream>
#include "TObject.h"
#include "TFile.h"
#include "PreprocessFunction.h"
#include "RooStats/HistFactory/Channel.h"
namespace RooStats{
namespace HistFactory {
class Measurement : public TNamed {
public:
Measurement();
// Measurement( const Measurement& other ); // Copy
Measurement(const char* Name, const char* Title="");
// std::string Name;
void SetOutputFilePrefix( const std::string& prefix ) { fOutputFilePrefix = prefix; }
std::string GetOutputFilePrefix() { return fOutputFilePrefix; }
void SetPOI( const std::string& POI ) { fPOI = POI; }
std::string GetPOI() { return fPOI; }
void AddConstantParam( const std::string& param ) { fConstantParams.push_back( param ); }
void ClearConstantParams() { fConstantParams.clear(); }
std::vector< std::string >& GetConstantParams() { return fConstantParams; }
void AddFunctionObject( const RooStats::HistFactory::PreprocessFunction function) { fFunctionObjects.push_back( function ); }
void SetFunctionObjects( std::vector< RooStats::HistFactory::PreprocessFunction > objects ) { fFunctionObjects = objects; }
std::vector< RooStats::HistFactory::PreprocessFunction >& GetFunctionObjects() { return fFunctionObjects; }
void AddPreprocessFunction( const std::string& function ) { fPreprocessFunctions.push_back( function ); }
void SetPreprocessFunctions( std::vector< std::string > functions ) { fPreprocessFunctions = functions; }
std::vector< std::string >& GetPreprocessFunctions() { return fPreprocessFunctions; }
void ClearPreprocessFunctions() { fPreprocessFunctions.clear(); }
void SetLumi(double Lumi ) { fLumi = Lumi; }
void SetLumiRelErr( double RelErr ) { fLumiRelErr = RelErr; }
double GetLumi() { return fLumi; }
double GetLumiRelErr() { return fLumiRelErr; }
void SetBinLow( int BinLow ) { fBinLow = BinLow; }
void SetBinHigh ( int BinHigh ) { fBinHigh = BinHigh; }
int GetBinLow() { return fBinLow; }
int GetBinHigh() { return fBinHigh; }
void SetExportOnly( bool ExportOnly ) { fExportOnly = ExportOnly; }
bool GetExportOnly() { return fExportOnly; }
void PrintTree( std::ostream& = std::cout ); // Print to a stream
void PrintXML( std::string Directory="", std::string NewOutputPrefix="" );
std::vector< RooStats::HistFactory::Channel >& GetChannels() { return fChannels; }
RooStats::HistFactory::Channel& GetChannel( std::string );
void AddChannel( RooStats::HistFactory::Channel chan ) { fChannels.push_back( chan ); }
bool HasChannel( std::string );
void writeToFile( TFile* file );
void CollectHistograms();
std::map< std::string, double >& GetGammaSyst() { return fGammaSyst; }
std::map< std::string, double >& GetUniformSyst() { return fUniformSyst; }
std::map< std::string, double >& GetLogNormSyst() { return fLogNormSyst; }
std::map< std::string, double >& GetNoSyst() { return fNoSyst; }
private:
std::string fOutputFilePrefix;
std::string fPOI;
std::vector< RooStats::HistFactory::Channel > fChannels;
std::vector< std::string > fConstantParams;
std::vector< RooStats::HistFactory::PreprocessFunction > fFunctionObjects;
std::vector< std::string > fPreprocessFunctions;
//std::vector< std::string > constraintTerms;
std::map< std::string, double > fGammaSyst;
std::map< std::string, double > fUniformSyst;
std::map< std::string, double > fLogNormSyst;
std::map< std::string, double > fNoSyst;
double fLumi;
double fLumiRelErr;
int fBinLow;
int fBinHigh;
bool fExportOnly;
// bool fSaveExtra;
std::string fInterpolationScheme;
std::string GetDirPath( TDirectory* dir );
ClassDef(RooStats::HistFactory::Measurement, 1);
};
} // namespace HistFactory
} // namespace RooStats
#endif
|