CMS 3D CMS Logo

Public Member Functions | Protected Types | Protected Member Functions

cond::EcalPedestalsHelper Class Reference

Inheritance diagram for cond::EcalPedestalsHelper:
EcalPyWrapperHelper< EcalPedestal >

List of all members.

Public Member Functions

 EcalPedestalsHelper ()

Protected Types

typedef EcalPedestal EcalObject

Protected Member Functions

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

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) [inline, protected, virtual]

Implements EcalPyWrapperHelper< EcalPedestal >.

Definition at line 141 of file EcalPedestalsPyWrapper.cc.

References EcalPyWrapperHelper< EcalPedestal >::total_values.

                {
                        //unsigned int totalValues = 6; 
                        type_vValues vValues(total_values);

                        vValues[0].first = "mean_x12";
                        vValues[1].first = "rms_x12";
                        vValues[2].first = "mean_x6";
                        vValues[3].first = "rms_x6";
                        vValues[4].first = "mean_x1";
                        vValues[5].first = "rms_x1";
                        
                        vValues[0].second = .0;
                        vValues[1].second = .0;
                        vValues[2].second = .0;
                        vValues[3].second = .0;
                        vValues[4].second = .0;
                        vValues[5].second = .0;
                        
                        //get info:
                        for(std::vector<EcalPedestal>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems){
                                vValues[0].second += iItems->mean(1);
                                vValues[1].second += iItems->rms(1);
                                vValues[2].second += iItems->mean(2);
                                vValues[3].second += iItems->rms(2);
                                vValues[4].second += iItems->mean(3);
                                vValues[5].second += iItems->rms(3);
                        }
                        return vValues;
                }