CMS 3D CMS Logo

List of all members | Public Member Functions
BaseTagInfoPlotter Class Reference

#include <BaseTagInfoPlotter.h>

Inheritance diagram for BaseTagInfoPlotter:
BaseBTagPlotter IPTagPlotter< Container, Base > MVAJetTagPlotter SoftLeptonTagPlotter TaggingVariablePlotter TrackCountingTagPlotter TrackProbabilityTagPlotter

Public Member Functions

virtual void analyzeTag (const reco::BaseTagInfo *tagInfo, double jec, int jetFlavour, float w=1)
 
virtual void analyzeTag (const std::vector< const reco::BaseTagInfo * > &tagInfos, double jec, int jetFlavour, float w=1)
 
 BaseTagInfoPlotter (const std::string &tagName, const EtaPtBin &etaPtBin)
 
virtual void setEventSetup (const edm::EventSetup &setup)
 
virtual std::vector< std::string > tagInfoRequirements () const
 
 ~BaseTagInfoPlotter () override
 
- Public Member Functions inherited from BaseBTagPlotter
 BaseBTagPlotter (const std::string &tagName, const EtaPtBin &etaPtBin)
 
virtual void epsPlot (const std::string &name)=0
 
const EtaPtBinetaPtBin ()
 
virtual void finalize (DQMStore::IBooker &ibook_, DQMStore::IGetter &igetter_)=0
 
virtual void psPlot (const std::string &name)=0
 
virtual ~BaseBTagPlotter ()
 

Additional Inherited Members

- Protected Attributes inherited from BaseBTagPlotter
const EtaPtBin etaPtBin_
 
const std::string tagName_
 
const std::string theExtensionString
 

Detailed Description

Definition at line 11 of file BaseTagInfoPlotter.h.

Constructor & Destructor Documentation

BaseTagInfoPlotter::BaseTagInfoPlotter ( const std::string &  tagName,
const EtaPtBin etaPtBin 
)
inline

Definition at line 15 of file BaseTagInfoPlotter.h.

15  :
16  BaseBTagPlotter(tagName, etaPtBin) {};
BaseBTagPlotter(const std::string &tagName, const EtaPtBin &etaPtBin)
BaseTagInfoPlotter::~BaseTagInfoPlotter ( )
inlineoverride

Member Function Documentation

void BaseTagInfoPlotter::analyzeTag ( const reco::BaseTagInfo tagInfo,
double  jec,
int  jetFlavour,
float  w = 1 
)
virtual

Reimplemented in TaggingVariablePlotter, TrackProbabilityTagPlotter, TrackCountingTagPlotter, IPTagPlotter< Container, Base >, and SoftLeptonTagPlotter.

Definition at line 11 of file BaseTagInfoPlotter.cc.

References Exception.

Referenced by ~BaseTagInfoPlotter().

12 {
13  throw cms::Exception("MissingVirtualMethod")
14  << "No analyzeTag method overloaded from BaseTagInfoPlotter." << endl;
15 }
void BaseTagInfoPlotter::analyzeTag ( const std::vector< const reco::BaseTagInfo * > &  tagInfos,
double  jec,
int  jetFlavour,
float  w = 1 
)
virtual

Reimplemented in MVAJetTagPlotter.

Definition at line 17 of file BaseTagInfoPlotter.cc.

References patTestJEC_cfi::jec, and w.

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 }
const double w
Definition: UKUtility.cc:23
virtual void analyzeTag(const reco::BaseTagInfo *tagInfo, double jec, int jetFlavour, float w=1)
void BaseTagInfoPlotter::setEventSetup ( const edm::EventSetup setup)
virtual

Reimplemented in MVAJetTagPlotter.

Definition at line 28 of file BaseTagInfoPlotter.cc.

Referenced by ~BaseTagInfoPlotter().

29 {
30 }
vector< string > BaseTagInfoPlotter::tagInfoRequirements ( ) const
virtual

Reimplemented in MVAJetTagPlotter.

Definition at line 32 of file BaseTagInfoPlotter.cc.

Referenced by ~BaseTagInfoPlotter().

33 {
34  return vector<string>();
35 }