#include <RecoJets/JetAnalyzers/src/FFTJetImageRecorder.cc>
Public Member Functions | |
FFTJetImageRecorder (const edm::ParameterSet &) | |
~FFTJetImageRecorder () | |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | endJob () |
FFTJetImageRecorder (const FFTJetImageRecorder &) | |
FFTJetImageRecorder () | |
FFTJetImageRecorder & | operator= (const FFTJetImageRecorder &) |
Private Attributes | |
unsigned long | counter |
edm::InputTag | histoLabel |
Description: collects the info produced by FFTJetEFlowSmoother
Implementation: [Notes on implementation]
Definition at line 46 of file FFTJetImageRecorder.cc.
FFTJetImageRecorder::FFTJetImageRecorder | ( | const edm::ParameterSet & | ps | ) | [explicit] |
Definition at line 68 of file FFTJetImageRecorder.cc.
: init_param(edm::InputTag, histoLabel), counter(0) { }
FFTJetImageRecorder::~FFTJetImageRecorder | ( | ) |
Definition at line 75 of file FFTJetImageRecorder.cc.
{ }
FFTJetImageRecorder::FFTJetImageRecorder | ( | ) | [private] |
FFTJetImageRecorder::FFTJetImageRecorder | ( | const FFTJetImageRecorder & | ) | [private] |
void FFTJetImageRecorder::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 93 of file FFTJetImageRecorder.cc.
References filterCSVwithJSON::copy, counter, edm::EventID::event(), edm::Event::getByLabel(), histoLabel, edm::EventBase::id(), LaserDQM_cfg::input, edm::EventID::run(), and cond::runnumber.
{ const long runnumber = iEvent.id().run(); const long eventnumber = iEvent.id().event(); edm::Handle<TH3F> input; iEvent.getByLabel(histoLabel, input); edm::Service<TFileService> fs; TH3F* copy = new TH3F(*input); std::ostringstream os; os << copy->GetName() << '_' << counter << '_' << runnumber << '_' << eventnumber; const std::string& newname(os.str()); copy->SetNameTitle(newname.c_str(), newname.c_str()); copy->SetDirectory(fs->getBareDirectory()); ++counter; }
void FFTJetImageRecorder::beginJob | ( | void | ) | [private, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 85 of file FFTJetImageRecorder.cc.
{ edm::Service<TFileService> fs; fs->make<TNtuple>("dummy", "dummy", "var"); }
void FFTJetImageRecorder::endJob | ( | void | ) | [private, virtual] |
FFTJetImageRecorder& FFTJetImageRecorder::operator= | ( | const FFTJetImageRecorder & | ) | [private] |
unsigned long FFTJetImageRecorder::counter [private] |
Definition at line 62 of file FFTJetImageRecorder.cc.
Referenced by analyze().
edm::InputTag FFTJetImageRecorder::histoLabel [private] |
Definition at line 61 of file FFTJetImageRecorder.cc.
Referenced by analyze().