Go to the source code of this file.
template<class CorrectorSequence >
static void buildCorrectorSequence |
( |
const FFTJetCorrectorParameters & |
tablePars, |
|
|
const std::vector< edm::ParameterSet > & |
sequence, |
|
|
const bool |
isArchiveCompressed, |
|
|
const bool |
verbose, |
|
|
CorrectorSequence * |
ptr |
|
) |
| |
|
static |
Definition at line 56 of file FFTJetCorrectionESProducer.h.
References Exception, hcalDigis_cfi::level, and FFTJetCorrectorParameters::str().
62 typedef typename CorrectorSequence::Corrector Corrector;
63 typedef typename CorrectorSequence::jet_type jet_type;
66 CPP11_auto_ptr<gs::StringArchive> ar;
68 std::istringstream is(tablePars.
str());
69 if (isArchiveCompressed)
70 ar = gs::read_compressed_item<gs::StringArchive>(is);
72 ar = gs::read_item<gs::StringArchive>(is);
80 const unsigned nLevels =
sequence.size();
81 for (
unsigned lev=0; lev<nLevels; ++lev)
82 ptr->addCorrector(parseFFTJetCorrector<Corrector>(
87 unsigned previousLevel = 0;
88 for (
unsigned lev=0; lev<nLevels; ++lev)
90 const unsigned level = (*ptr)[lev].level();
93 if (level <= previousLevel)
95 <<
"Error in buildCorrectorSequence: " 96 <<
"correction levels are out of order\n";
97 previousLevel =
level;
const std::string & str() const