CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions
cond::EcalLaserAPDPNRatiosHelper Class Reference
Inheritance diagram for cond::EcalLaserAPDPNRatiosHelper:
EcalPyWrapperHelper< EcalLaserAPDPNRatios::EcalLaserAPDPNpair >

Public Member Functions

 EcalLaserAPDPNRatiosHelper ()
 
- Public Member Functions inherited from EcalPyWrapperHelper< EcalLaserAPDPNRatios::EcalLaserAPDPNpair >
 EcalPyWrapperHelper (unsigned int totalValues, unsigned int status=0, std::string names="-Means: ")
 
std::string printBarrelsEndcaps (const std::vector< EcalLaserAPDPNRatios::EcalLaserAPDPNpair > &barrelItems, const std::vector< EcalLaserAPDPNRatios::EcalLaserAPDPNpair > &endcapItems)
 

Protected Types

typedef
EcalLaserAPDPNRatios::EcalLaserAPDPNpair 
EcalObject
 
- Protected Types inherited from EcalPyWrapperHelper< EcalLaserAPDPNRatios::EcalLaserAPDPNpair >
typedef std::vector< std::pair
< std::string, float > > 
type_vValues
 

Protected Member Functions

type_vValues getValues (const std::vector< EcalLaserAPDPNRatios::EcalLaserAPDPNpair > &vItems)
 

Additional Inherited Members

- Static Public Attributes inherited from EcalPyWrapperHelper< EcalLaserAPDPNRatios::EcalLaserAPDPNpair >
static const unsigned int MEAN
 
static const unsigned int STATUS
 
- Protected Attributes inherited from EcalPyWrapperHelper< EcalLaserAPDPNRatios::EcalLaserAPDPNpair >
std::string names
 
unsigned int status
 
unsigned int total_values
 

Detailed Description

Definition at line 62 of file EcalLaserAPDPNRatiosPyWrapper.cc.

Member Typedef Documentation

Definition at line 66 of file EcalLaserAPDPNRatiosPyWrapper.cc.

Constructor & Destructor Documentation

cond::EcalLaserAPDPNRatiosHelper::EcalLaserAPDPNRatiosHelper ( )
inline

Member Function Documentation

type_vValues cond::EcalLaserAPDPNRatiosHelper::getValues ( const std::vector< EcalLaserAPDPNRatios::EcalLaserAPDPNpair > &  vItems)
inlineprotectedvirtual

Implements EcalPyWrapperHelper< EcalLaserAPDPNRatios::EcalLaserAPDPNpair >.

Definition at line 67 of file EcalLaserAPDPNRatiosPyWrapper.cc.

References EcalPyWrapperHelper< EcalLaserAPDPNRatios::EcalLaserAPDPNpair >::total_values.

68  {
69  //unsigned int totalValues = 6;
70  type_vValues vValues(total_values);
71 
72  vValues[0].first = "p1";
73  vValues[1].first = "p2";
74  vValues[2].first = "p3";
75 
76  vValues[0].second = .0;
77  vValues[1].second = .0;
78  vValues[2].second = .0;
79 
80 
81  //get info:
82  for(std::vector<EcalLaserAPDPNRatios::EcalLaserAPDPNpair>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems){
83  vValues[0].second += iItems->p1;
84  vValues[1].second += iItems->p2;
85  vValues[2].second += iItems->p3;
86 
87  }
88  return vValues;
89  }
std::vector< std::pair< std::string, float > > type_vValues