CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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, const double &jec, const int &jetFlavour)
 
virtual void analyzeTag (const std::vector< const reco::BaseTagInfo * > &tagInfos, const double &jec, const int &jetFlavour)
 
virtual void analyzeTag (const reco::BaseTagInfo *tagInfo, const double &jec, const int &jetFlavour, const float &w)
 
virtual void analyzeTag (const std::vector< const reco::BaseTagInfo * > &tagInfos, const double &jec, const int &jetFlavour, const float &w)
 
 BaseTagInfoPlotter (const std::string &tagName, const EtaPtBin &etaPtBin)
 
virtual void setEventSetup (const edm::EventSetup &setup)
 
virtual std::vector< std::string > tagInfoRequirements () const
 
virtual ~BaseTagInfoPlotter ()
 
- 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)
virtual BaseTagInfoPlotter::~BaseTagInfoPlotter ( )
inlinevirtual

Definition at line 18 of file BaseTagInfoPlotter.h.

18 {};

Member Function Documentation

void BaseTagInfoPlotter::analyzeTag ( const reco::BaseTagInfo tagInfo,
const double &  jec,
const int &  jetFlavour 
)
virtual

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

Definition at line 12 of file BaseTagInfoPlotter.cc.

References Exception.

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

Reimplemented in MVAJetTagPlotter.

Definition at line 35 of file BaseTagInfoPlotter.cc.

References patTestJEC_cfi::jec.

36 {
37  if (tagInfos.size() != 1)
38  throw cms::Exception("MismatchedTagInfos")
39  << tagInfos.size() << " BaseTagInfos passed, but only one expected." << endl;
40 
41  analyzeTag(tagInfos.front(), jec, jetFlavour);
42 }
virtual void analyzeTag(const reco::BaseTagInfo *tagInfo, const double &jec, const int &jetFlavour)
void BaseTagInfoPlotter::analyzeTag ( const reco::BaseTagInfo tagInfo,
const double &  jec,
const int &  jetFlavour,
const float &  w 
)
virtual

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

Definition at line 18 of file BaseTagInfoPlotter.cc.

References Exception.

19 {
20  throw cms::Exception("MissingVirtualMethod")
21  << "No analyzeTag method overloaded from BaseTagInfoPlotter." << endl;
22 }
void BaseTagInfoPlotter::analyzeTag ( const std::vector< const reco::BaseTagInfo * > &  tagInfos,
const double &  jec,
const int &  jetFlavour,
const float &  w 
)
virtual

Reimplemented in MVAJetTagPlotter.

Definition at line 24 of file BaseTagInfoPlotter.cc.

References patTestJEC_cfi::jec, and w.

25 {
26 
27  if (tagInfos.size() != 1)
28  throw cms::Exception("MismatchedTagInfos")
29  << tagInfos.size() << " BaseTagInfos passed, but only one expected." << endl;
30 
31  analyzeTag(tagInfos.front(), jec, jetFlavour, w);
32 
33 }
const double w
Definition: UKUtility.cc:23
virtual void analyzeTag(const reco::BaseTagInfo *tagInfo, const double &jec, const int &jetFlavour)
void BaseTagInfoPlotter::setEventSetup ( const edm::EventSetup setup)
virtual

Reimplemented in MVAJetTagPlotter.

Definition at line 44 of file BaseTagInfoPlotter.cc.

45 {
46 }
vector< string > BaseTagInfoPlotter::tagInfoRequirements ( ) const
virtual

Reimplemented in MVAJetTagPlotter.

Definition at line 48 of file BaseTagInfoPlotter.cc.

Referenced by BTagPerformanceAnalyzerOnData::analyze(), and BTagPerformanceAnalyzerMC::analyze().

49 {
50  return vector<string>();
51 }