NCCoordinateConverter.cxx File Reference

#include "NCCoordinateConverter.h"
#include "MessageService/MsgService.h"
#include "NCUtils/NCUtility.h"
#include <stdexcept>

Go to the source code of this file.

Functions

 CVSID ("$Id: NCCoordinateConverter.cxx,v 1.35 2010/04/22 13:20:54 rodriges Exp $")
TH1 * AxesForNCParameter (TString name, TString title, NCParameter xp, TString yLabel)
 Internal helper function.
TH2 * AxesForNCParameters (TString name, TString title, NCParameter xp, NCParameter yp)
 Internal helper function.

Function Documentation

TH1* AxesForNCParameter ( TString  name,
TString  title,
NCParameter  xp,
TString  yLabel 
)

Internal helper function.

Definition at line 651 of file NCCoordinateConverter.cxx.

References Plot::Format(), NCParameter::LatexName(), NCParameter::Max(), NCParameter::Min(), and NCParameter::ShortName().

Referenced by NC::CoordinateConverter::AxesForParameter().

00653 {
00654  return new TH1F((name != "") ? TString::Format("%s_%s",
00655                                                  name.Data(),
00656                                                  xp.ShortName().c_str())
00657                                : "",
00658                   TString::Format("%s;%s;%s",
00659                                   title.Data(),
00660                                   xp.LatexName().c_str(),
00661                                   yLabel.Data()),
00662                   100, xp.Min(), xp.Max());
00663 }

TH2* AxesForNCParameters ( TString  name,
TString  title,
NCParameter  xp,
NCParameter  yp 
)

Internal helper function.

Definition at line 689 of file NCCoordinateConverter.cxx.

References Plot::Format(), NCParameter::LatexName(), NCParameter::Max(), NCParameter::Min(), and NCParameter::ShortName().

Referenced by NC::CoordinateConverter::AxesForParameters().

00691 {
00692   return new TH2F((name != "") ? TString::Format("%s_%s_%s",
00693                                                  name.Data(),
00694                                                  xp.ShortName().c_str(),
00695                                                  yp.ShortName().c_str())
00696                                : "",
00697                   TString::Format("%s;%s;%s",
00698                                   title.Data(),
00699                                   xp.LatexName().c_str(),
00700                                   yp.LatexName().c_str()),
00701                   100, xp.Min(), xp.Max(),
00702                   100, yp.Min(), yp.Max());
00703 }

CVSID ( "$Id: NCCoordinateConverter.  cxx,
v 1.35 2010/04/22 13:20:54 rodriges Exp $"   
)

Generated on 8 Jul 2019 for loon by  doxygen 1.6.1