CMS 3D CMS Logo

Public Member Functions | Protected Types | Protected Member Functions

cond::EcalGainRatiosHelper Class Reference

Inheritance diagram for cond::EcalGainRatiosHelper:
EcalPyWrapperHelper< EcalMGPAGainRatio >

List of all members.

Public Member Functions

 EcalGainRatiosHelper ()

Protected Types

typedef EcalMGPAGainRatio EcalObject

Protected Member Functions

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

Detailed Description

Definition at line 55 of file EcalGainRatiosPyWrapper.cc.


Member Typedef Documentation

Definition at line 61 of file EcalGainRatiosPyWrapper.cc.


Constructor & Destructor Documentation

cond::EcalGainRatiosHelper::EcalGainRatiosHelper ( ) [inline]

Member Function Documentation

type_vValues cond::EcalGainRatiosHelper::getValues ( const std::vector< EcalObject > &  vItems) [inline, protected, virtual]

Implements EcalPyWrapperHelper< EcalMGPAGainRatio >.

Definition at line 63 of file EcalGainRatiosPyWrapper.cc.

References EcalPyWrapperHelper< EcalMGPAGainRatio >::total_values.

                {
                        //change me
                        //unsigned int totalValues = 2; 

                        type_vValues vValues(total_values);
                        
                        //change us
                        vValues[0].first = "gain12Over6";
                        vValues[1].first = "gain6Over1";
                        
                        vValues[0].second = .0;
                        vValues[1].second = .0;
                        
                        //get info:
                        for(std::vector<EcalObject>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems){
                                //change us
                                vValues[0].second += iItems->gain12Over6();
                                vValues[1].second += iItems->gain6Over1();
                        }
                        return vValues;
                }