CMS 3D CMS Logo

Functions
fetchHcalAlgoData.h File Reference
#include <memory>
#include <string>
#include "CondFormats/HcalObjects/interface/AbsHcalAlgoData.h"
#include "FWCore/Framework/interface/EventSetup.h"

Go to the source code of this file.

Functions

std::unique_ptr< AbsHcalAlgoDatafetchHcalAlgoData (const std::string &className, const edm::EventSetup &es)
 

Function Documentation

std::unique_ptr<AbsHcalAlgoData> fetchHcalAlgoData ( const std::string &  className,
const edm::EventSetup es 
)

Definition at line 23 of file fetchHcalAlgoData.cc.

References data.

Referenced by HFPhase1Reconstructor::beginRun(), and HBHEPhase1Reconstructor::beginRun().

24 {
25  AbsHcalAlgoData* data = 0;
26 
27  // Compare with possibe class names
28  //
29  if (className == "HFPhase1PMTParams")
30  data = fetchHcalAlgoDataHelper<HFPhase1PMTParams, HFPhase1PMTParamsRcd>(es);
31 
32  return std::unique_ptr<AbsHcalAlgoData>(data);
33 }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
std::string className(const T &t)
Definition: ClassName.h:30