![]() |
![]() |
Example class that can be used both within FWLite and within the full framework. More...
#include "PhysicsTools/UtilAlgos/interface/AnalysisTasksAnalyzerBTag.h"
Public Member Functions | |
AnalysisTasksAnalyzerBTag (const edm::ParameterSet &cfg, TFileDirectory &fs) | |
default constructor More... | |
AnalysisTasksAnalyzerBTag (const edm::ParameterSet &cfg, TFileDirectory &fs, edm::ConsumesCollector &&iC) | |
void | analyze (const edm::EventBase &event) override |
everything that needs to be done during the event loop More... | |
void | beginJob () override |
everything that needs to be done before the event loop More... | |
void | endJob () override |
everything that needs to be done after the event loop More... | |
~AnalysisTasksAnalyzerBTag () override | |
default destructor More... | |
![]() | |
BasicAnalyzer (const edm::ParameterSet &cfg, TFileDirectory &fileService) | |
default constructor More... | |
BasicAnalyzer (const edm::ParameterSet &cfg, TFileDirectory &fileService, edm::ConsumesCollector &&iC) | |
virtual | ~BasicAnalyzer () |
default destructor More... | |
Private Attributes | |
unsigned int | bins_ |
std::string | bTagAlgo_ |
std::map< std::string, TH1 * > | hists_ |
histograms More... | |
edm::InputTag | Jets_ |
input tag for mouns More... | |
edm::EDGetTokenT< std::vector< pat::Jet > > | JetsToken_ |
double | lowerbin_ |
double | upperbin_ |
Example class that can be used both within FWLite and within the full framework.
This is an example for keeping classes that can be used both within FWLite and within the full framework. The class is derived from the BasicAnalyzer base class, which is an interface for the two wrapper classes EDAnalyzerWrapper and FWLiteAnalyzerWrapper. The latter provides basic configuration file reading and event looping equivalent to the FWLiteHistograms executable of this package. You can see the FWLiteAnalyzerWrapper class at work in the FWLiteWithBasicAnalyzer executable of this package.
Definition at line 20 of file AnalysisTasksAnalyzerBTag.h.
AnalysisTasksAnalyzerBTag::AnalysisTasksAnalyzerBTag | ( | const edm::ParameterSet & | cfg, |
TFileDirectory & | fs | ||
) |
default constructor
Definition at line 7 of file AnalysisTasksAnalyzerBTag.cc.
References bins_, hists_, lowerbin_, TFileDirectory::make(), and upperbin_.
AnalysisTasksAnalyzerBTag::AnalysisTasksAnalyzerBTag | ( | const edm::ParameterSet & | cfg, |
TFileDirectory & | fs, | ||
edm::ConsumesCollector && | iC | ||
) |
Definition at line 26 of file AnalysisTasksAnalyzerBTag.cc.
References bins_, hists_, lowerbin_, TFileDirectory::make(), and upperbin_.
|
override |
default destructor
Definition at line 46 of file AnalysisTasksAnalyzerBTag.cc.
References bins_, hists_, and mps_fire::i.
|
overridevirtual |
everything that needs to be done during the event loop
Implements edm::BasicAnalyzer.
Definition at line 58 of file AnalysisTasksAnalyzerBTag.cc.
References funct::abs(), pat::Jet::bDiscriminator(), bTagAlgo_, hists_, nanoDQM_cff::Jet, Jets_, and pat::Jet::partonFlavour().
Referenced by endJob().
|
inlineoverridevirtual |
everything that needs to be done before the event loop
Implements edm::BasicAnalyzer.
Definition at line 29 of file AnalysisTasksAnalyzerBTag.h.
|
inlineoverridevirtual |
everything that needs to be done after the event loop
Implements edm::BasicAnalyzer.
Definition at line 31 of file AnalysisTasksAnalyzerBTag.h.
References analyze().
|
private |
Definition at line 40 of file AnalysisTasksAnalyzerBTag.h.
Referenced by AnalysisTasksAnalyzerBTag(), and ~AnalysisTasksAnalyzerBTag().
|
private |
Definition at line 39 of file AnalysisTasksAnalyzerBTag.h.
Referenced by analyze().
|
private |
histograms
Definition at line 44 of file AnalysisTasksAnalyzerBTag.h.
Referenced by AnalysisTasksAnalyzerBTag(), analyze(), and ~AnalysisTasksAnalyzerBTag().
|
private |
input tag for mouns
Definition at line 37 of file AnalysisTasksAnalyzerBTag.h.
Referenced by analyze().
|
private |
Definition at line 38 of file AnalysisTasksAnalyzerBTag.h.
|
private |
Definition at line 41 of file AnalysisTasksAnalyzerBTag.h.
Referenced by AnalysisTasksAnalyzerBTag().
|
private |
Definition at line 42 of file AnalysisTasksAnalyzerBTag.h.
Referenced by AnalysisTasksAnalyzerBTag().