37 std::cout <<
"Error: Given empty name for ConstraintType" << std::endl;
41 else if (
Name ==
"Gaussian" ||
Name ==
"Gauss" ) {
45 else if (
Name ==
"Poisson" ||
Name ==
"Pois" ) {
50 std::cout <<
"Error: Unknown name given for Constraint Type: " <<
Name << std::endl;
61 stream <<
"\t \t Name: " <<
fName
64 <<
"\t High: " <<
fHigh
69 xml <<
" <NormFactor Name=\"" <<
GetName() <<
"\" "
70 <<
" Val=\"" <<
GetVal() <<
"\" "
71 <<
" High=\"" <<
GetHigh() <<
"\" "
72 <<
" Low=\"" <<
GetLow() <<
"\" "
73 <<
" /> " << std::endl;
78 stream <<
"\t \t Name: " <<
fName
80 <<
"\t High: " <<
fHigh
85 xml <<
" <OverallSys Name=\"" <<
GetName() <<
"\" "
86 <<
" High=\"" <<
GetHigh() <<
"\" "
87 <<
" Low=\"" <<
GetLow() <<
"\" "
88 <<
" /> " << std::endl;
93 stream <<
"\t \t Name: " <<
fName
104 const std::string& DirName ) {
110 if( histLow==
nullptr ) {
111 std::cout <<
"Error: Cannot write " <<
GetName()
112 <<
" to file: " << FileName
113 <<
" HistoLow is nullptr"
123 if( histHigh==
nullptr ) {
124 std::cout <<
"Error: Cannot write " <<
GetName()
125 <<
" to file: " << FileName
126 <<
" HistoHigh is nullptr"
141 xml <<
" <HistoSys Name=\"" <<
GetName() <<
"\" "
149 <<
" /> " << std::endl;
155 stream <<
"\t \t Name: " <<
fName
164 xml <<
" <ShapeSys Name=\"" <<
GetName() <<
"\" "
169 <<
" /> " << std::endl;
174 const std::string& DirName ) {
177 if( histError==
nullptr ) {
178 std::cout <<
"Error: Cannot write " <<
GetName()
179 <<
" to file: " << FileName
180 <<
" ErrorHist is nullptr"
199 xml <<
" <HistoFactor Name=\"" <<
GetName() <<
"\" "
208 <<
" /> " << std::endl;
215 stream <<
"\t \t Name: " <<
fName << std::endl;
225 if(
fConstant ) { stream <<
"\t \t ( Constant ): " << std::endl; }
231 const std::string& DirName ) {
235 if( histInitialShape==
nullptr ) {
236 std::cout <<
"Error: Cannot write " <<
GetName()
237 <<
" to file: " << FileName
238 <<
" InitialShape is nullptr"
242 histInitialShape->Write();
254 xml <<
" <ShapeFactor Name=\"" <<
GetName() <<
"\" ";
260 xml <<
" /> " << std::endl;
276 <<
"/> " << std::endl << std::endl;
283 stream <<
"\t \t Activate: " <<
fActivate
293 xml <<
" <StatError Activate=\""
294 << (
GetActivate() ? std::string(
"True") : std::string(
"False"))
299 <<
" /> " << std::endl;
306 const std::string& DirName ) {
310 std::string statErrorHistName =
"statisticalErrors";
313 if( hStatError ==
nullptr ) {
314 std::cout <<
"Error: Stat Error error hist is nullptr" << std::endl;
317 hStatError->Write(statErrorHistName.c_str());
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
void PrintXML(std::ostream &) const override
void PrintXML(std::ostream &) const override
std::string fHistoPathHigh
virtual void writeToFile(const std::string &FileName, const std::string &DirName)
std::string fInputFileLow
std::string fHistoPathLow
const std::string & GetName() const
const TH1 * GetHistoHigh() const
const std::string & GetHistoNameHigh() const
std::string fHistoNameLow
std::string fHistoNameHigh
const std::string & GetHistoNameLow() const
std::string fInputFileHigh
virtual void Print(std::ostream &=std::cout) const
const std::string & GetHistoPathLow() const
const std::string & GetInputFileHigh() const
const std::string & GetInputFileLow() const
const std::string & GetHistoPathHigh() const
const TH1 * GetHistoLow() const
std::string GetName() const
void Print(std::ostream &=std::cout) const
void PrintXML(std::ostream &) const
const std::string & GetName() const
void PrintXML(std::ostream &) const
void Print(std::ostream &=std::cout) const
void PrintXML(std::ostream &) const override
const std::string & GetHistoPath() const
const TH1 * GetInitialShape() const
void writeToFile(const std::string &FileName, const std::string &DirName) override
void Print(std::ostream &=std::cout) const override
const std::string & GetInputFile() const
bool HasInitialShape() const
const std::string & GetHistoName() const
std::string GetHistoPath() const
void PrintXML(std::ostream &) const override
Constraint::Type GetConstraintType() const
const TH1 * GetErrorHist() const
std::string GetHistoName() const
void writeToFile(const std::string &FileName, const std::string &DirName) override
void Print(std::ostream &=std::cout) const override
std::string GetInputFile() const
double fRelErrorThreshold
void PrintXML(std::ostream &) const
Constraint::Type fConstraintType
double GetRelErrorThreshold() const
Constraint::Type GetConstraintType() const
void Print(std::ostream &=std::cout) const
const std::string & GetHistoPath() const
const TH1 * GetErrorHist() const
const std::string & GetInputFile() const
const std::string & GetHistoName() const
void Print(std::ostream &=std::cout) const override
void PrintXML(std::ostream &) const override
void writeToFile(const std::string &FileName, const std::string &DirName) override
Type GetType(const std::string &Name)
std::string Name(Type type)