Public Member Functions | Private Attributes | Friends | List of all members
cmf::GridPoint Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/CovarianceMatrixFit/dataProducts/GridPointResult.h"

Inheritance diagram for cmf::GridPoint:
cmf::FCResultCollection cmf::FCUniverseCollection cmf::PointSpectra

Public Member Functions

 GridPoint (float x, float y, cmf::OscParm_t const &parX, cmf::OscParm_t const &parY)
 
std::pair< float, float > const & Point () const
 
float const & X () const
 
float const & Y () const
 
cmf::OscParm_t const & XPar () const
 
cmf::OscParm_t const & YPar () const
 
bool operator< (cmf::GridPoint const &other) const
 
bool operator== (cmf::GridPoint const &other) const
 

Private Attributes

std::pair< float, float > fPoint
 point in space More...
 
std::pair< cmf::OscParm_t, cmf::OscParm_tfOscParms
 oscillation parameters More...
 

Friends

std::ostream & operator<< (std::ostream &o, cmf::GridPoint const &gp)
 

Detailed Description

Definition at line 15 of file GridPointResult.h.

Constructor & Destructor Documentation

cmf::GridPoint::GridPoint ( float  x,
float  y,
cmf::OscParm_t const &  parX,
cmf::OscParm_t const &  parY 
)
inline

Definition at line 18 of file GridPointResult.h.

22  : fPoint (std::make_pair(x, y))
23  , fOscParms(std::make_pair(parX, parY))
24  {}
std::pair< float, float > fPoint
point in space
std::pair< Spectrum *, CheatDecomp * > make_pair(SpectrumLoaderBase &loader_data, SpectrumLoaderBase &loader_mc, HistAxis *axis, Cut *cut, const SystShifts &shift, const Var &wei)
Definition: DataMCLoad.C:336
std::pair< cmf::OscParm_t, cmf::OscParm_t > fOscParms
oscillation parameters

Member Function Documentation

bool cmf::GridPoint::operator< ( cmf::GridPoint const &  other) const

Definition at line 13 of file GridPointResult.cxx.

References X(), and Y().

Referenced by cmf::OscParamPoint::OscPointAsVec(), and YPar().

14  {
15  if(this->X() < other.X()) return true;
16  else if(this->X() == other.X()){
17  if(this->Y() < other.Y()) return true;
18  }
19 
20  return false;
21  }
float const & X() const
float const & Y() const
bool cmf::GridPoint::operator== ( cmf::GridPoint const &  other) const

Definition at line 24 of file GridPointResult.cxx.

References X(), and Y().

Referenced by cmf::OscParamPoint::OscPointAsVec(), and YPar().

25  {
26  if(this->X() == other.X() && this->Y() == other.Y()) return true;
27 
28  return false;
29  }
float const & X() const
float const & Y() const
std::pair<float, float> const& cmf::GridPoint::Point ( ) const
inline

Definition at line 26 of file GridPointResult.h.

References fPoint.

26 { return fPoint; }
std::pair< float, float > fPoint
point in space
float const& cmf::GridPoint::X ( ) const
inline
cmf::OscParm_t const& cmf::GridPoint::XPar ( ) const
inline

Definition at line 29 of file GridPointResult.h.

References fOscParms.

Referenced by cmf::ContourFromLibrary::MakeAndStorePlots(), cmf::operator<<(), and cmf::FitFeldmanCousinsPoint::writeResults().

29 { return fOscParms.first; }
std::pair< cmf::OscParm_t, cmf::OscParm_t > fOscParms
oscillation parameters
float const& cmf::GridPoint::Y ( ) const
inline
cmf::OscParm_t const& cmf::GridPoint::YPar ( ) const
inline

Definition at line 30 of file GridPointResult.h.

References fOscParms, MECModelEnuComparisons::gp, msf_helper::o, operator<(), operator<<, operator==(), and fhicl::other.

Referenced by cmf::ContourFromLibrary::MakeAndStorePlots(), cmf::operator<<(), and cmf::FitFeldmanCousinsPoint::writeResults().

30 { return fOscParms.second; }
std::pair< cmf::OscParm_t, cmf::OscParm_t > fOscParms
oscillation parameters

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
cmf::GridPoint const &  gp 
)
friend

Definition at line 32 of file GridPointResult.cxx.

Referenced by cmf::OscParamPoint::OscPointAsVec(), and YPar().

33  {
34 
35  if(cmf::IsAngleParameter(gp.XPar()))
36  o << "sin^{2}("
37  << cmf::cOscParams_Strings[gp.XPar()]
38  << ") : ";
39  else
40  o << cmf::cOscParams_Strings[gp.XPar()]
41  << " : ";
42 
43  o << gp.X()
44  << " ";
45 
46  if(cmf::IsAngleParameter(gp.YPar()))
47  o << "sin^{2}("
48  << cmf::cOscParams_Strings[gp.YPar()]
49  << ") : ";
50  else
51  o << cmf::cOscParams_Strings[gp.YPar()]
52  << " : ";
53 
54  o << gp.Y();
55 
56  return o;
57  }
static bool IsAngleParameter(cmf::OscParm_t const &par)
Definition: StaticFuncs.h:350
const std::string cOscParams_Strings[kNumOscParams]
Definition: Constants.h:257

Member Data Documentation

std::pair<cmf::OscParm_t, cmf::OscParm_t> cmf::GridPoint::fOscParms
private

oscillation parameters

Definition at line 40 of file GridPointResult.h.

Referenced by XPar(), and YPar().

std::pair<float, float> cmf::GridPoint::fPoint
private

point in space

Definition at line 39 of file GridPointResult.h.

Referenced by Point(), X(), and Y().


The documentation for this class was generated from the following files: