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
 
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 115 of file PrepareDMRTrends.h.

Constructor & Destructor Documentation

◆ Geometry() [1/2]

Geometry::Geometry ( )
inline

Definition at line 132 of file PrepareDMRTrends.h.

132 : title("") {}
TString title

◆ Geometry() [2/2]

Geometry::Geometry ( TString  Title)
inline

Definition at line 133 of file PrepareDMRTrends.h.

133 : title(Title) {}
TString title

Member Function Documentation

◆ DeltaMu()

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

Definition at line 144 of file PrepareDMRTrends.h.

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

Referenced by PrepareDMRTrends::compileDMRTrends().

144 { 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 121 of file PrepareDMRTrends.h.

References point, points, and findQualityFiles::v.

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

121  {
122  std::vector<float> v;
123  for (Point point : points) {
124  float value = (point.*getter)();
125  v.push_back(value);
126  }
127  return v;
128  }
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 136 of file PrepareDMRTrends.h.

References title.

136 { return title; }
TString title

◆ Mu()

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

Definition at line 138 of file PrepareDMRTrends.h.

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

Referenced by PrepareDMRTrends::compileDMRTrends().

138 { 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 140 of file PrepareDMRTrends.h.

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

Referenced by PrepareDMRTrends::compileDMRTrends().

140 { 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 139 of file PrepareDMRTrends.h.

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

Referenced by PrepareDMRTrends::compileDMRTrends().

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

◆ Run()

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

Definition at line 137 of file PrepareDMRTrends.h.

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

137 { 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 135 of file PrepareDMRTrends.h.

References title.

135 { title = Title; }
TString title

◆ Sigma()

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

Definition at line 141 of file PrepareDMRTrends.h.

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

Referenced by PrepareDMRTrends::compileDMRTrends().

141 { 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 145 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 143 of file PrepareDMRTrends.h.

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

Referenced by PrepareDMRTrends::compileDMRTrends().

143 { 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 142 of file PrepareDMRTrends.h.

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

Referenced by PrepareDMRTrends::compileDMRTrends().

142 { 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 117 of file PrepareDMRTrends.h.

Referenced by GetQuantity().

◆ title

TString Geometry::title