Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:52

0001 #include "RecoJets/FFTJetProducers/interface/JetType.h"
0002 #include "FWCore/Utilities/interface/Exception.h"
0003 
0004 namespace fftjetcms {
0005   JetType parseJetType(const std::string& name) {
0006     if (!name.compare("BasicJet"))
0007       return BASICJET;
0008     else if (!name.compare("GenJet"))
0009       return GENJET;
0010     else if (!name.compare("CaloJet"))
0011       return CALOJET;
0012     else if (!name.compare("PFJet"))
0013       return PFJET;
0014     else if (!name.compare("TrackJet"))
0015       return TRACKJET;
0016     else if (!name.compare("JPTJet"))
0017       return JPTJET;
0018     else
0019       throw cms::Exception("FFTJetBadConfig")
0020           << "In parseJetType: unsupported jet type specification \"" << name << "\"\n";
0021   }
0022 }  // namespace fftjetcms