#include <MEtXYcorrectParameters.h>
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
Definition at line 105 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 |
Definition at line 308 of file MEtXYcorrectParameters.cc.
References isShiftData(), isShiftDY(), isShiftTTJets(), isShiftWJets(), and relval_2017::k.
static bool isShiftDY(key_type k)
static std::string findShiftWJetsFlavor(key_type k)
static std::string findShiftDataFlavor(key_type k)
static std::string findShiftMCflavor(key_type k)
static bool isShiftData(key_type k)
static bool isShiftTTJets(key_type k)
static std::string findShiftDYflavor(key_type k)
static bool isShiftWJets(key_type k)
static bool isShiftMC(key_type k)
static std::string findShiftTTJetsFlavor(key_type k)
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 509 of file MEtXYcorrectParameters.cc.
References Exception, spr::find(), and newFWLiteAna::found.
510 std::vector<std::string>::const_iterator
found =
511 find( shiftFlavors_.begin(), shiftFlavors_.end(), flav );
512 if ( found != shiftFlavors_.end() ) {
513 return (found - shiftFlavors_.begin() + 1)+ (
shiftData+1) * 100;
517 "************** 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 470 of file MEtXYcorrectParameters.cc.
References Exception, spr::find(), and newFWLiteAna::found.
471 std::vector<std::string>::const_iterator
found =
472 find( shiftFlavors_.begin(), shiftFlavors_.end(), flav );
473 if ( found != shiftFlavors_.end() ) {
474 return (found - shiftFlavors_.begin() + 1)+ (
shiftDY+1) * 100;
478 "************** 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 456 of file MEtXYcorrectParameters.cc.
References Exception, spr::find(), and newFWLiteAna::found.
457 std::vector<std::string>::const_iterator
found =
458 find( shiftFlavors_.begin(), shiftFlavors_.end(), flav );
459 if ( found != shiftFlavors_.end() ) {
460 return (found - shiftFlavors_.begin() + 1)+ (
shiftMC+1) * 100;
464 "************** 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 483 of file MEtXYcorrectParameters.cc.
References Exception, spr::find(), and newFWLiteAna::found.
484 std::vector<std::string>::const_iterator
found =
485 find( shiftFlavors_.begin(), shiftFlavors_.end(), flav );
486 if ( found != shiftFlavors_.end() ) {
487 return (found - shiftFlavors_.begin() + 1)+ (
shiftTTJets+1) * 100;
491 "************** 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 496 of file MEtXYcorrectParameters.cc.
References Exception, spr::find(), and newFWLiteAna::found.
497 std::vector<std::string>::const_iterator
found =
498 find( shiftFlavors_.begin(), shiftFlavors_.end(), flav );
499 if ( found != shiftFlavors_.end() ) {
500 return (found - shiftFlavors_.begin() + 1)+ (
shiftWJets+1) * 100;
504 "************** 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 324 of file MEtXYcorrectParameters.cc.
335 }
else{
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 429 of file MEtXYcorrectParameters.cc.
References Exception, i, and relval_2017::k.
Referenced by operator[]().
430 collection_type::const_iterator ibegin, iend,
i;
436 for ( ; i != iend; ++
i ) {
437 if (
k == i->first )
return i->second;
439 throw cms::Exception(
"InvalidInput") <<
" cannot find key " <<
static_cast<int>(
k)
440 <<
" in the METC payload, this usually means you have to change the global tag" << std::endl;
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 402 of file MEtXYcorrectParameters.cc.
References pair_type.
420 std::stringstream sserr;
421 sserr<<
"The level type: "<<
i<<
" is not in the level list";
422 handleError(
"MEtXYcorrectParameters::Definitions",sserr.str());
static bool isShiftDY(key_type k)
key_type getShiftDataFlavBin(std::string const &Flav)
std::pair< key_type, value_type > pair_type
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)
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 >