CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

FFTJetImageRecorder Class Reference

#include <RecoJets/JetAnalyzers/src/FFTJetImageRecorder.cc>

Inheritance diagram for FFTJetImageRecorder:
edm::EDAnalyzer

List of all members.

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 ()
FFTJetImageRecorderoperator= (const FFTJetImageRecorder &)

Private Attributes

unsigned long counter
edm::InputTag histoLabel

Detailed Description

Description: collects the info produced by FFTJetEFlowSmoother

Implementation: [Notes on implementation]

Definition at line 46 of file FFTJetImageRecorder.cc.


Constructor & Destructor Documentation

FFTJetImageRecorder::FFTJetImageRecorder ( const edm::ParameterSet ps) [explicit]

Definition at line 68 of file FFTJetImageRecorder.cc.

FFTJetImageRecorder::~FFTJetImageRecorder ( )

Definition at line 75 of file FFTJetImageRecorder.cc.

{
}
FFTJetImageRecorder::FFTJetImageRecorder ( ) [private]
FFTJetImageRecorder::FFTJetImageRecorder ( const FFTJetImageRecorder ) [private]

Member Function Documentation

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]

Reimplemented from edm::EDAnalyzer.

Definition at line 118 of file FFTJetImageRecorder.cc.

{
}
FFTJetImageRecorder& FFTJetImageRecorder::operator= ( const FFTJetImageRecorder ) [private]

Member Data Documentation

unsigned long FFTJetImageRecorder::counter [private]

Definition at line 62 of file FFTJetImageRecorder.cc.

Referenced by analyze().

Definition at line 61 of file FFTJetImageRecorder.cc.

Referenced by analyze().