Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:47

0001 #include <vector>
0002 #include <string>
0003 
0004 #include "FWCore/Utilities/interface/Exception.h"
0005 #include "DataFormats/BTauReco/interface/BaseTagInfo.h"
0006 #include "DQMOffline/RecoB/interface/BaseTagInfoPlotter.h"
0007 
0008 using namespace std;
0009 using namespace reco;
0010 
0011 void BaseTagInfoPlotter::analyzeTag(const BaseTagInfo *tagInfo, double jec, int jetFlavour, float w /*=1*/) {
0012   throw cms::Exception("MissingVirtualMethod") << "No analyzeTag method overloaded from BaseTagInfoPlotter." << endl;
0013 }
0014 
0015 void BaseTagInfoPlotter::analyzeTag(const vector<const BaseTagInfo *> &tagInfos,
0016                                     double jec,
0017                                     int jetFlavour,
0018                                     float w /*=1*/) {
0019   if (tagInfos.size() != 1)
0020     throw cms::Exception("MismatchedTagInfos")
0021         << tagInfos.size() << " BaseTagInfos passed, but only one expected." << endl;
0022 
0023   analyzeTag(tagInfos.front(), jec, jetFlavour, w);
0024 }
0025 
0026 void BaseTagInfoPlotter::setEventSetup(const edm::EventSetup &setup) {}
0027 
0028 vector<string> BaseTagInfoPlotter::tagInfoRequirements() const { return vector<string>(); }