#include <METCorrectorParameters.h>
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
| is this a valid set? More...
|
|
Definition at line 14 of file METCorrectorParameters.h.
METCorrectorParameters::METCorrectorParameters |
( |
| ) |
|
|
inline |
METCorrectorParameters::METCorrectorParameters |
( |
const std::string & |
fFile, |
|
|
const std::string & |
fSection = "" |
|
) |
| |
Definition at line 103 of file METCorrectorParameters.cc.
References trackerTree::check(), definitions(), METCorrectorParameters::Definitions::formula(), mps_fire::i, input, geometryCSVtoXML::line, mDefinitions, mRecords, METCorrectorParameters::Definitions::nBinVar(), METCorrectorParameters::Record::nParameters(), record(), vertexPlots::section, AlCaHLTBitMon_QueryRunRegistry::string, createJobs::tmp, valid_, METCorrectorParameters::Record::xMax(), and METCorrectorParameters::Record::xMin().
104 std::ifstream
input(fFile.c_str());
108 while (std::getline(
input, line)) {
112 if (!section.empty() && tmp.empty()) {
116 if (currentSection == fSection) {
118 currentDefinitions =
tmp;
135 if (currentDefinitions.empty())
136 handleError(
"METCorrectorParameters",
"No definitions found!!!");
137 if (
mRecords.empty() && currentSection.empty())
139 if (
mRecords.empty() && !currentSection.empty()) {
140 std::stringstream sserr;
141 sserr <<
"the requested section " << fSection <<
" doesn't exist!";
142 handleError(
"METCorrectorParameters", sserr.str());
unsigned nParameters() const
const Record & record(unsigned fBin) const
std::vector< METCorrectorParameters::Record > mRecords
static std::string const input
const Definitions & definitions() const
float xMax(unsigned fVar) const
METCorrectorParameters::Definitions mDefinitions
float xMin(unsigned fVar) const
std::string formula() const
Definition at line 80 of file METCorrectorParameters.h.
References valid_.
std::vector< METCorrectorParameters::Record > mRecords
METCorrectorParameters::Definitions mDefinitions
std::vector<float> METCorrectorParameters::binCenters |
( |
unsigned |
fVar | ) |
const |
int METCorrectorParameters::binIndex |
( |
const std::vector< float > & |
fX | ) |
const |
const Definitions& METCorrectorParameters::definitions |
( |
| ) |
const |
|
inline |
bool METCorrectorParameters::isValid |
( |
void |
| ) |
const |
|
inline |
int METCorrectorParameters::neighbourBin |
( |
unsigned |
fIndex, |
|
|
unsigned |
fVar, |
|
|
bool |
fNext |
|
) |
| const |
void METCorrectorParameters::printFile |
( |
const std::string & |
fFileName | ) |
const |
Definition at line 291 of file METCorrectorParameters.cc.
References METCorrectorParameters::Definitions::binVar(), definitions(), EcalElecEmulTccOnlyExample_cfg::formula, METCorrectorParameters::Definitions::formula(), mps_fire::i, dqmiolumiharvest::j, METCorrectorParameters::Definitions::nBinVar(), METCorrectorParameters::Record::nParameters(), METCorrectorParameters::Definitions::nParVar(), METCorrectorParameters::Record::parameter(), METCorrectorParameters::Definitions::parVar(), record(), size(), METCorrectorParameters::Record::xMax(), and METCorrectorParameters::Record::xMin().
292 std::ofstream txtFile;
293 txtFile.open(fFileName.c_str());
294 txtFile.setf(std::ios::right);
304 for (
unsigned i = 0;
i <
size();
i++) {
unsigned nParameters() const
std::vector< std::string > parVar() const
const Record & record(unsigned fBin) const
const Definitions & definitions() const
float xMax(unsigned fVar) const
std::vector< std::string > binVar() const
float xMin(unsigned fVar) const
std::string formula() const
float parameter(unsigned fIndex) const
void METCorrectorParameters::printScreen |
( |
| ) |
const |
Definition at line 260 of file METCorrectorParameters.cc.
References METCorrectorParameters::Definitions::binVar(), gather_cfg::cout, definitions(), METCorrectorParameters::Definitions::formula(), mps_fire::i, dqmiolumiharvest::j, METCorrectorParameters::Definitions::nBinVar(), METCorrectorParameters::Record::nParameters(), METCorrectorParameters::Definitions::nParVar(), METCorrectorParameters::Record::parameter(), METCorrectorParameters::Definitions::parVar(), record(), size(), METCorrectorParameters::Record::xMax(), and METCorrectorParameters::Record::xMin().
261 std::cout <<
"--------------------------------------------" << std::endl;
262 std::cout <<
"//////// PARAMETERS: //////////////////////" << std::endl;
263 std::cout <<
"--------------------------------------------" << std::endl;
265 std::cout <<
"Names of binning variables: ";
269 std::cout <<
"--------------------------------------------" << std::endl;
271 std::cout <<
"Names of parameter variables: ";
275 std::cout <<
"--------------------------------------------" << std::endl;
277 std::cout <<
"--------------------------------------------" << std::endl;
278 std::cout <<
"------- Bin contents -----------------------" << std::endl;
279 for (
unsigned i = 0;
i <
size();
i++) {
unsigned nParameters() const
std::vector< std::string > parVar() const
const Record & record(unsigned fBin) const
const Definitions & definitions() const
float xMax(unsigned fVar) const
std::vector< std::string > binVar() const
float xMin(unsigned fVar) const
std::string formula() const
float parameter(unsigned fIndex) const
const Record& METCorrectorParameters::record |
( |
unsigned |
fBin | ) |
const |
|
inline |
template<class Archive >
void METCorrectorParameters::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
private |
unsigned METCorrectorParameters::size |
( |
void |
| ) |
const |
|
inline |
unsigned METCorrectorParameters::size |
( |
unsigned |
fVar | ) |
const |
friend class boost::serialization::access |
|
friend |
template<typename CondSerializationT , typename Enabled >
bool METCorrectorParameters::valid_ |
|
private |