#include <MEtXYcorrectParameters.h>
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
Definition at line 111 of file MEtXYcorrectParameters.h.
MEtXYcorrectParametersCollection::MEtXYcorrectParametersCollection |
( |
| ) |
|
|
inline |
key_type MEtXYcorrectParametersCollection::findKey |
( |
std::string const & |
label | ) |
const |
|
protected |
std::string MEtXYcorrectParametersCollection::findLabel |
( |
key_type |
k | ) |
|
|
static |
std::string MEtXYcorrectParametersCollection::findShiftDataFlavor |
( |
key_type |
k | ) |
|
|
static |
std::string MEtXYcorrectParametersCollection::findShiftDYflavor |
( |
key_type |
k | ) |
|
|
static |
std::string MEtXYcorrectParametersCollection::findShiftMCflavor |
( |
key_type |
k | ) |
|
|
static |
std::string MEtXYcorrectParametersCollection::findShiftTTJetsFlavor |
( |
key_type |
k | ) |
|
|
static |
std::string MEtXYcorrectParametersCollection::findShiftWJetsFlavor |
( |
key_type |
k | ) |
|
|
static |
void MEtXYcorrectParametersCollection::getSections |
( |
std::string |
inputFile, |
|
|
std::vector< std::string > & |
outputs |
|
) |
| |
Definition at line 459 of file MEtXYcorrectParameters.cc.
References Exception, spr::find(), and newFWLiteAna::found.
461 std::vector<std::string>::const_iterator
found =
find(shiftFlavors_.begin(), shiftFlavors_.end(), flav);
462 if (found != shiftFlavors_.end()) {
463 return (found - shiftFlavors_.begin() + 1) + (
shiftData + 1) * 100;
465 throw cms::Exception(
"InvalidInput") <<
"************** Can't find shiftSection: " << flav << std::endl;
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition at line 430 of file MEtXYcorrectParameters.cc.
References Exception, spr::find(), and newFWLiteAna::found.
431 std::vector<std::string>::const_iterator
found =
find(shiftFlavors_.begin(), shiftFlavors_.end(), flav);
432 if (found != shiftFlavors_.end()) {
433 return (found - shiftFlavors_.begin() + 1) + (
shiftDY + 1) * 100;
435 throw cms::Exception(
"InvalidInput") <<
"************** Can't find ShiftSection: " << flav << std::endl;
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition at line 420 of file MEtXYcorrectParameters.cc.
References Exception, spr::find(), and newFWLiteAna::found.
421 std::vector<std::string>::const_iterator
found =
find(shiftFlavors_.begin(), shiftFlavors_.end(), flav);
422 if (found != shiftFlavors_.end()) {
423 return (found - shiftFlavors_.begin() + 1) + (
shiftMC + 1) * 100;
425 throw cms::Exception(
"InvalidInput") <<
"************** Can't find ShiftSection: " << flav << std::endl;
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition at line 439 of file MEtXYcorrectParameters.cc.
References Exception, spr::find(), and newFWLiteAna::found.
441 std::vector<std::string>::const_iterator
found =
find(shiftFlavors_.begin(), shiftFlavors_.end(), flav);
442 if (found != shiftFlavors_.end()) {
443 return (found - shiftFlavors_.begin() + 1) + (
shiftTTJets + 1) * 100;
445 throw cms::Exception(
"InvalidInput") <<
"************** Can't find shiftSection: " << flav << std::endl;
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition at line 449 of file MEtXYcorrectParameters.cc.
References Exception, spr::find(), and newFWLiteAna::found.
451 std::vector<std::string>::const_iterator
found =
find(shiftFlavors_.begin(), shiftFlavors_.end(), flav);
452 if (found != shiftFlavors_.end()) {
453 return (found - shiftFlavors_.begin() + 1) + (
shiftWJets + 1) * 100;
455 throw cms::Exception(
"InvalidInput") <<
"************** Can't find shiftSection: " << flav << std::endl;
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool MEtXYcorrectParametersCollection::isShiftData |
( |
key_type |
k | ) |
|
|
static |
bool MEtXYcorrectParametersCollection::isShiftDY |
( |
key_type |
k | ) |
|
|
static |
bool MEtXYcorrectParametersCollection::isShiftMC |
( |
key_type |
k | ) |
|
|
static |
bool MEtXYcorrectParametersCollection::isShiftTTJets |
( |
key_type |
k | ) |
|
|
static |
bool MEtXYcorrectParametersCollection::isShiftWJets |
( |
key_type |
k | ) |
|
|
static |
std::string MEtXYcorrectParametersCollection::levelName |
( |
key_type |
k | ) |
|
|
static |
Definition at line 299 of file MEtXYcorrectParameters.cc.
311 return "Can't find the level name !!!!";
static bool isShiftDY(key_type k)
static bool isShiftData(key_type k)
static bool isShiftTTJets(key_type k)
static bool isShiftWJets(key_type k)
static bool isShiftMC(key_type k)
Definition at line 393 of file MEtXYcorrectParameters.cc.
References Exception, mps_fire::i, and dqmdumpme::k.
394 collection_type::const_iterator ibegin, iend,
i;
400 for (; i != iend; ++
i) {
404 throw cms::Exception(
"InvalidInput") <<
" cannot find key " <<
static_cast<int>(
k)
405 <<
" in the METC payload, this usually means you have to change the global tag" static bool isShiftDY(key_type k)
static bool isShiftData(key_type k)
static bool isShiftTTJets(key_type k)
static bool isShiftWJets(key_type k)
static bool isShiftMC(key_type k)
collection_type correctionsShift_
Definition at line 373 of file MEtXYcorrectParameters.cc.
References pair_type.
385 std::stringstream sserr;
386 sserr <<
"The level type: " <<
i <<
" is not in the level list";
387 handleError(
"MEtXYcorrectParameters::Definitions", sserr.str());
static bool isShiftDY(key_type k)
key_type getShiftDataFlavBin(std::string const &Flav)
key_type getShiftTTJetsFlavBin(std::string const &Flav)
static bool isShiftData(key_type k)
key_type getShiftMcFlavBin(std::string const &Flav)
static bool isShiftTTJets(key_type k)
static bool isShiftWJets(key_type k)
std::pair< key_type, value_type > pair_type
static bool isShiftMC(key_type k)
key_type getShiftDyFlavBin(std::string const &Flav)
key_type getShiftWJetsFlavBin(std::string const &Flav)
collection_type correctionsShift_
template<class Archive >
void MEtXYcorrectParametersCollection::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
private |
void MEtXYcorrectParametersCollection::validKeys |
( |
std::vector< key_type > & |
keys | ) |
const |
friend class boost::serialization::access |
|
friend |
template<typename CondSerializationT , typename Enabled >