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::EcalPulseShapesHelper Class Reference
Inheritance diagram for cond::EcalPulseShapesHelper:
EcalPyWrapperHelper< EcalPulseShape >

Public Member Functions

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

Protected Types

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

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

Definition at line 136 of file EcalPulseShapesPyWrapper.cc.

Member Typedef Documentation

Definition at line 140 of file EcalPulseShapesPyWrapper.cc.

Constructor & Destructor Documentation

cond::EcalPulseShapesHelper::EcalPulseShapesHelper ( )
inline

Member Function Documentation

type_vValues cond::EcalPulseShapesHelper::getValues ( const std::vector< EcalPulseShape > &  vItems)
inlineoverrideprotectedvirtual

Implements EcalPyWrapperHelper< EcalPulseShape >.

Definition at line 141 of file EcalPulseShapesPyWrapper.cc.

References plotBeamSpotDB::first, alignCSCRings::s, edm::second(), EcalPulseShape::TEMPLATESAMPLES, and EcalPyWrapperHelper< EcalPulseShape >::total_values.

142  {
143  type_vValues vValues(total_values);
144 
145  for(int s = 0; s<EcalPulseShape::TEMPLATESAMPLES; ++s) vValues[s].first = Form("sample_%d",s);
146 
147  //get info:
148  for(std::vector<EcalPulseShape>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems) {
149  for(int s = 0; s<EcalPulseShape::TEMPLATESAMPLES; ++s) vValues[s].second = iItems->val(s);
150  }
151  return vValues;
152  }
std::vector< std::pair< std::string, float > > type_vValues
static const int TEMPLATESAMPLES
U second(std::pair< T, U > const &p)