CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
FFTJetImageRecorder Class Reference

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

Inheritance diagram for FFTJetImageRecorder:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 FFTJetImageRecorder (const edm::ParameterSet &)
 
 ~FFTJetImageRecorder ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
virtual void endJob ()
 
 FFTJetImageRecorder ()
 
 FFTJetImageRecorder (const FFTJetImageRecorder &)
 
FFTJetImageRecorderoperator= (const FFTJetImageRecorder &)
 

Private Attributes

unsigned long counter
 
edm::InputTag histoLabel
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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.

70  counter(0)
71 {
72 }
#define init_param(type, varname)
FFTJetImageRecorder::~FFTJetImageRecorder ( )

Definition at line 75 of file FFTJetImageRecorder.cc.

76 {
77 }
FFTJetImageRecorder::FFTJetImageRecorder ( )
private
FFTJetImageRecorder::FFTJetImageRecorder ( const FFTJetImageRecorder )
private

Member Function Documentation

void FFTJetImageRecorder::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDAnalyzer.

Definition at line 93 of file FFTJetImageRecorder.cc.

References filterCSVwithJSON::copy, counter, edm::EventID::event(), TFileDirectory::getBareDirectory(), edm::Event::getByLabel(), histoLabel, edm::EventBase::id(), LaserDQM_cfg::input, edm::EventID::run(), cond::runnumber, and AlCaHLTBitMon_QueryRunRegistry::string.

95 {
96  const long runnumber = iEvent.id().run();
97  const long eventnumber = iEvent.id().event();
98 
100  iEvent.getByLabel(histoLabel, input);
101 
103  TH3F* copy = new TH3F(*input);
104 
105  std::ostringstream os;
106  os << copy->GetName() << '_' << counter << '_'
107  << runnumber << '_' << eventnumber;
108  const std::string& newname(os.str());
109  copy->SetNameTitle(newname.c_str(), newname.c_str());
110 
111  copy->SetDirectory(fs->getBareDirectory());
112 
113  ++counter;
114 }
RunNumber_t run() const
Definition: EventID.h:42
EventNumber_t event() const
Definition: EventID.h:44
TDirectory * getBareDirectory(const std::string &subdir="") const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
edm::EventID id() const
Definition: EventBase.h:56
void FFTJetImageRecorder::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 85 of file FFTJetImageRecorder.cc.

References TFileDirectory::make().

86 {
88  fs->make<TNtuple>("dummy", "dummy", "var");
89 }
T * make() const
make new ROOT object
void FFTJetImageRecorder::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 118 of file FFTJetImageRecorder.cc.

119 {
120 }
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().

edm::InputTag FFTJetImageRecorder::histoLabel
private

Definition at line 61 of file FFTJetImageRecorder.cc.

Referenced by analyze().