CMS 3D CMS Logo

Functions
fetchHcalAlgoData.cc File Reference
#include "RecoLocalCalo/HcalRecAlgos/interface/fetchHcalAlgoData.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "CondFormats/HcalObjects/interface/HFPhase1PMTParams.h"
#include "CondFormats/DataRecord/interface/HFPhase1PMTParamsRcd.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 21 of file fetchHcalAlgoData.cc.

References data.

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

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