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

Public Member Functions

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

Protected Types

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

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

Definition at line 140 of file EcalPulseCovariancesPyWrapper.cc.

Member Typedef Documentation

Definition at line 144 of file EcalPulseCovariancesPyWrapper.cc.

Constructor & Destructor Documentation

cond::EcalPulseCovariancesHelper::EcalPulseCovariancesHelper ( )
inline

Member Function Documentation

type_vValues cond::EcalPulseCovariancesHelper::getValues ( const std::vector< EcalPulseCovariance > &  vItems)
inlineoverrideprotectedvirtual

Implements EcalPyWrapperHelper< EcalPulseCovariance >.

Definition at line 145 of file EcalPulseCovariancesPyWrapper.cc.

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

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