CMS 3D CMS Logo

BaseTagInfoPlotter.cc
Go to the documentation of this file.
1 #include <vector>
2 #include <string>
3 
7 
8 using namespace std;
9 using namespace reco;
10 
11 void BaseTagInfoPlotter::analyzeTag(const BaseTagInfo * tagInfo, double jec, int jetFlavour, float w/*=1*/)
12 {
13  throw cms::Exception("MissingVirtualMethod")
14  << "No analyzeTag method overloaded from BaseTagInfoPlotter." << endl;
15 }
16 
17 void BaseTagInfoPlotter::analyzeTag(const vector<const BaseTagInfo *> &tagInfos, double jec, int jetFlavour, float w/*=1*/)
18 {
19 
20  if (tagInfos.size() != 1)
21  throw cms::Exception("MismatchedTagInfos")
22  << tagInfos.size() << " BaseTagInfos passed, but only one expected." << endl;
23 
24  analyzeTag(tagInfos.front(), jec, jetFlavour, w);
25 
26 }
27 
29 {
30 }
31 
33 {
34  return vector<string>();
35 }
const double w
Definition: UKUtility.cc:23
virtual void analyzeTag(const reco::BaseTagInfo *tagInfo, double jec, int jetFlavour, float w=1)
virtual void setEventSetup(const edm::EventSetup &setup)
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
virtual std::vector< std::string > tagInfoRequirements() const
fixed size matrix