CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
Data Struct Reference

#include <RegressionTestPayload.h>

Public Member Functions

 Data ()
 
 Data (int seed)
 
bool operator!= (const Data &rhs) const
 
bool operator== (const Data &rhs) const
 

Public Attributes

std::vector< int > m_a
 
int m_i
 
std::string m_s
 

Detailed Description

Definition at line 4 of file RegressionTestPayload.h.

Constructor & Destructor Documentation

Data::Data ( )

Definition at line 4 of file RegressionTestPayload.cc.

Referenced by TagProbeFitter::makeEfficiencyPlot2D().

4  :
5  m_i(-1),
6  m_s(""),
7  m_a(){
8 }
std::string m_s
std::vector< int > m_a
Data::Data ( int  seed)

Definition at line 10 of file RegressionTestPayload.cc.

References i, m_a, and m_s.

10  :
11  m_i(seed),
12  m_s(""),
13  m_a(){
14  std::stringstream ss;
15  ss << "Data_"<<seed;
16  m_s = ss.str();
17  for( int i=0;i<seed;i++){
18  m_a.push_back(i);
19  }
20 }
int i
Definition: DBlmapReader.cc:9
std::string m_s
std::vector< int > m_a

Member Function Documentation

bool Data::operator!= ( const Data rhs) const

Definition at line 28 of file RegressionTestPayload.cc.

References operator==().

28  {
29  return !operator==( rhs );
30 }
bool operator==(const Data &rhs) const
bool Data::operator== ( const Data rhs) const

Definition at line 22 of file RegressionTestPayload.cc.

References m_a, m_i, and m_s.

Referenced by operator!=().

22  {
23  if( m_i != rhs.m_i ) return false;
24  if( m_s != rhs.m_s ) return false;
25  if( m_a != rhs.m_a ) return false;
26  return true;
27 }
std::string m_s
std::vector< int > m_a

Member Data Documentation

std::vector<int> Data::m_a

Definition at line 9 of file RegressionTestPayload.h.

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

int Data::m_i

Definition at line 7 of file RegressionTestPayload.h.

Referenced by operator==().

std::string Data::m_s

Definition at line 8 of file RegressionTestPayload.h.

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