CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions
Geometry Class Reference

Class Geometry Contains vector for fit parameters (mean, sigma, etc.) obtained from multiple IOVs See Structure Point for description of the parameters. More...

#include <PrepareDMRTrends.h>

Public Member Functions

std::vector< float > DeltaMu () const
 
 Geometry ()
 
 Geometry (TString Title)
 
TString GetTitle ()
 
std::vector< float > Mu () const
 
std::vector< float > MuMinus () const
 
std::vector< float > MuPlus () const
 
Geometryoperator= (const Geometry &geom)
 
std::vector< float > Run () const
 
void SetTitle (TString Title)
 
std::vector< float > Sigma () const
 
std::vector< float > SigmaDeltaMu () const
 
std::vector< float > SigmaMinus () const
 
std::vector< float > SigmaPlus () const
 

Public Attributes

std::vector< Pointpoints
 
TString title
 

Private Member Functions

std::vector< float > GetQuantity (float(Point::*getter)() const) const
 

Detailed Description

Class Geometry Contains vector for fit parameters (mean, sigma, etc.) obtained from multiple IOVs See Structure Point for description of the parameters.

Definition at line 126 of file PrepareDMRTrends.h.

Constructor & Destructor Documentation

◆ Geometry() [1/2]

Geometry::Geometry ( )
inline

Definition at line 143 of file PrepareDMRTrends.h.

143 : title("") {}
TString title

◆ Geometry() [2/2]

Geometry::Geometry ( TString  Title)
inline

Definition at line 144 of file PrepareDMRTrends.h.

144 : title(Title) {}
TString title

Member Function Documentation

◆ DeltaMu()

std::vector<float> Geometry::DeltaMu ( ) const
inline

Definition at line 159 of file PrepareDMRTrends.h.

References Point::GetDeltaMu(), and GetQuantity().

Referenced by PrepareDMRTrends::compileDMRTrends().

159 { return GetQuantity(&Point::GetDeltaMu); }
float GetDeltaMu() const
std::vector< float > GetQuantity(float(Point::*getter)() const) const

◆ GetQuantity()

std::vector<float> Geometry::GetQuantity ( float(Point::*)() const  getter) const
inlineprivate

Definition at line 132 of file PrepareDMRTrends.h.

References point, points, and findQualityFiles::v.

Referenced by DeltaMu(), Mu(), MuMinus(), MuPlus(), Run(), Sigma(), SigmaDeltaMu(), SigmaMinus(), and SigmaPlus().

132  {
133  std::vector<float> v;
134  for (Point point : points) {
135  float value = (point.*getter)();
136  v.push_back(value);
137  }
138  return v;
139  }
std::vector< Point > points
Definition: value.py:1
Structure Point Contains parameters of Gaussian fits to DMRs.
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5

◆ GetTitle()

TString Geometry::GetTitle ( )
inline

Definition at line 151 of file PrepareDMRTrends.h.

References title.

151 { return title; }
TString title

◆ Mu()

std::vector<float> Geometry::Mu ( ) const
inline

Definition at line 153 of file PrepareDMRTrends.h.

References Point::GetMu(), and GetQuantity().

Referenced by PrepareDMRTrends::compileDMRTrends().

153 { return GetQuantity(&Point::GetMu); }
float GetMu() const
std::vector< float > GetQuantity(float(Point::*getter)() const) const

◆ MuMinus()

std::vector<float> Geometry::MuMinus ( ) const
inline

Definition at line 155 of file PrepareDMRTrends.h.

References Point::GetMuMinus(), and GetQuantity().

Referenced by PrepareDMRTrends::compileDMRTrends().

155 { return GetQuantity(&Point::GetMuMinus); }
float GetMuMinus() const
std::vector< float > GetQuantity(float(Point::*getter)() const) const

◆ MuPlus()

std::vector<float> Geometry::MuPlus ( ) const
inline

Definition at line 154 of file PrepareDMRTrends.h.

References Point::GetMuPlus(), and GetQuantity().

Referenced by PrepareDMRTrends::compileDMRTrends().

154 { return GetQuantity(&Point::GetMuPlus); }
float GetMuPlus() const
std::vector< float > GetQuantity(float(Point::*getter)() const) const

◆ operator=()

Geometry& Geometry::operator= ( const Geometry geom)
inline

Definition at line 145 of file PrepareDMRTrends.h.

References relativeConstraints::geom, points, and title.

145  {
146  title = geom.title;
147  points = geom.points;
148  return *this;
149  }
std::vector< Point > points
TString title

◆ Run()

std::vector<float> Geometry::Run ( ) const
inline

Definition at line 152 of file PrepareDMRTrends.h.

References GetQuantity(), and Point::GetRun().

152 { return GetQuantity(&Point::GetRun); }
float GetRun() const
std::vector< float > GetQuantity(float(Point::*getter)() const) const

◆ SetTitle()

void Geometry::SetTitle ( TString  Title)
inline

Definition at line 150 of file PrepareDMRTrends.h.

References title.

150 { title = Title; }
TString title

◆ Sigma()

std::vector<float> Geometry::Sigma ( ) const
inline

Definition at line 156 of file PrepareDMRTrends.h.

References GetQuantity(), and Point::GetSigma().

Referenced by PrepareDMRTrends::compileDMRTrends().

156 { return GetQuantity(&Point::GetSigma); }
std::vector< float > GetQuantity(float(Point::*getter)() const) const
float GetSigma() const

◆ SigmaDeltaMu()

std::vector<float> Geometry::SigmaDeltaMu ( ) const
inline

Definition at line 160 of file PrepareDMRTrends.h.

References GetQuantity(), and Point::GetSigmaDeltaMu().

Referenced by PrepareDMRTrends::compileDMRTrends().

std::vector< float > GetQuantity(float(Point::*getter)() const) const
float GetSigmaDeltaMu() const

◆ SigmaMinus()

std::vector<float> Geometry::SigmaMinus ( ) const
inline

Definition at line 158 of file PrepareDMRTrends.h.

References GetQuantity(), and Point::GetSigmaMinus().

Referenced by PrepareDMRTrends::compileDMRTrends().

158 { return GetQuantity(&Point::GetSigmaMinus); }
float GetSigmaMinus() const
std::vector< float > GetQuantity(float(Point::*getter)() const) const

◆ SigmaPlus()

std::vector<float> Geometry::SigmaPlus ( ) const
inline

Definition at line 157 of file PrepareDMRTrends.h.

References GetQuantity(), and Point::GetSigmaPlus().

Referenced by PrepareDMRTrends::compileDMRTrends().

157 { return GetQuantity(&Point::GetSigmaPlus); }
std::vector< float > GetQuantity(float(Point::*getter)() const) const
float GetSigmaPlus() const

Member Data Documentation

◆ points

std::vector<Point> Geometry::points

Definition at line 128 of file PrepareDMRTrends.h.

Referenced by GetQuantity(), and operator=().

◆ title

TString Geometry::title