test
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::EcalPedestalsHelper Class Reference
Inheritance diagram for cond::EcalPedestalsHelper:
EcalPyWrapperHelper< EcalPedestal >

Public Member Functions

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

Protected Types

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

Protected Member Functions

type_vValues getValues (const std::vector< EcalPedestal > &vItems) override
 

Additional Inherited Members

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

Detailed Description

Definition at line 136 of file EcalPedestalsPyWrapper.cc.

Member Typedef Documentation

Definition at line 140 of file EcalPedestalsPyWrapper.cc.

Constructor & Destructor Documentation

cond::EcalPedestalsHelper::EcalPedestalsHelper ( )
inline

Member Function Documentation

type_vValues cond::EcalPedestalsHelper::getValues ( const std::vector< EcalPedestal > &  vItems)
inlineoverrideprotectedvirtual

Implements EcalPyWrapperHelper< EcalPedestal >.

Definition at line 141 of file EcalPedestalsPyWrapper.cc.

References EcalPyWrapperHelper< EcalPedestal >::total_values.

142  {
143  //unsigned int totalValues = 6;
144  type_vValues vValues(total_values);
145 
146  vValues[0].first = "mean_x12";
147  vValues[1].first = "rms_x12";
148  vValues[2].first = "mean_x6";
149  vValues[3].first = "rms_x6";
150  vValues[4].first = "mean_x1";
151  vValues[5].first = "rms_x1";
152 
153  vValues[0].second = .0;
154  vValues[1].second = .0;
155  vValues[2].second = .0;
156  vValues[3].second = .0;
157  vValues[4].second = .0;
158  vValues[5].second = .0;
159 
160  //get info:
161  for(std::vector<EcalPedestal>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems){
162  vValues[0].second += iItems->mean(1);
163  vValues[1].second += iItems->rms(1);
164  vValues[2].second += iItems->mean(2);
165  vValues[3].second += iItems->rms(2);
166  vValues[4].second += iItems->mean(3);
167  vValues[5].second += iItems->rms(3);
168  }
169  return vValues;
170  }
std::vector< std::pair< std::string, float > > type_vValues