![]() |
![]() |
#include <TagInfoPlotterFactory.h>
Public Member Functions | |
BaseTagInfoPlotter * | buildPlotter (const std::string &dataFormatType, const std::string &tagName, const EtaPtBin &etaPtBin, const edm::ParameterSet &pSet, const std::string &folderName, const bool &update, const bool &mc, const bool &wf) |
Definition at line 9 of file TagInfoPlotterFactory.h.
BaseTagInfoPlotter * TagInfoPlotterFactory::buildPlotter | ( | const std::string & | dataFormatType, |
const std::string & | tagName, | ||
const EtaPtBin & | etaPtBin, | ||
const edm::ParameterSet & | pSet, | ||
const std::string & | folderName, | ||
const bool & | update, | ||
const bool & | mc, | ||
const bool & | wf | ||
) |
Definition at line 12 of file TagInfoPlotterFactory.cc.
References Exception.
Referenced by BTagPerformanceAnalyzerOnData::bookHistos().
{ if (dataFormatType == "TrackCounting") { return new TrackCountingTagPlotter(folderName, etaPtBin, pSet, update, mc, wf); } else if (dataFormatType == "TrackProbability") { return new TrackProbabilityTagPlotter(folderName, etaPtBin, pSet, update, mc, wf); } else if (dataFormatType == "SoftLepton") { return new SoftLeptonTagPlotter(folderName, etaPtBin, pSet, mc, update); } else if (dataFormatType == "TrackIP") { return new TrackIPTagPlotter(folderName, etaPtBin, pSet, update, mc,wf); } else if (dataFormatType == "TaggingVariable") { return new TaggingVariablePlotter(folderName, etaPtBin, pSet, update, mc); } else if (dataFormatType == "GenericMVA") { return new MVAJetTagPlotter(tagName, etaPtBin, pSet, folderName, update, mc); } throw cms::Exception("Configuration") << "BTagPerformanceAnalysis: Unknown ExtendedTagInfo " << dataFormatType << endl << "Choose between TrackCounting, TrackProbability, SoftLepton, TrackIP, TaggingVariable, GenericMVA\n"; }