Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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.32 2009/11/26 12:03:29 bckhouse 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 648 of file NCCoordinateConverter.cxx.

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

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

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

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

Internal helper function.

Definition at line 686 of file NCCoordinateConverter.cxx.

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

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

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

CVSID "$Id: NCCoordinateConverter.  cxx,
v 1.32 2009/11/26 12:03:29 bckhouse Exp $" 
 


Generated on Mon Feb 15 11:08:06 2010 for loon by  doxygen 1.3.9.1