CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EfficiencyPayloads.h
Go to the documentation of this file.
3 
4 namespace cond {
5  // payload factory specializations
6  template <> condex::Efficiency* createPayload<condex::Efficiency>( const std::string& payloadTypeName ){
7  if( payloadTypeName == "condex::ParametricEfficiencyInPt" ) return new condex::ParametricEfficiencyInPt;
8  if( payloadTypeName == "condex::ParametricEfficiencyInEta" ) return new condex::ParametricEfficiencyInEta;
9  throwException(std::string("Type mismatch, target object is type \"")+payloadTypeName+"\"",
10  "createPayload" );
11  }
12 }
13 
void throwException(std::string const &message, std::string const &methodName)
Definition: Exception.cc:17