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
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

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

Private Attributes

unsigned long counter
 
edm::InputTag histoLabel
 
edm::EDGetTokenT< TH3F > histoToken
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- 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::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 47 of file FFTJetImageRecorder.cc.

Constructor & Destructor Documentation

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

Definition at line 71 of file FFTJetImageRecorder.cc.

References histoLabel, and histoToken.

73  counter(0)
74 {
75  histoToken = consumes<TH3F>(histoLabel);
76 }
#define init_param(type, varname)
edm::EDGetTokenT< TH3F > histoToken
FFTJetImageRecorder::~FFTJetImageRecorder ( )

Definition at line 79 of file FFTJetImageRecorder.cc.

80 {
81 }
FFTJetImageRecorder::FFTJetImageRecorder ( )
private
FFTJetImageRecorder::FFTJetImageRecorder ( const FFTJetImageRecorder )
private

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 97 of file FFTJetImageRecorder.cc.

References filterCSVwithJSON::copy, counter, edm::EventID::event(), TFileService::getBareDirectory(), edm::Event::getByToken(), histoToken, edm::EventBase::id(), input, edm::EventID::run(), cond::runnumber, and AlCaHLTBitMon_QueryRunRegistry::string.

99 {
100  edm::RunNumber_t const runnumber = iEvent.id().run();
101  edm::EventNumber_t const eventnumber = iEvent.id().event();
102 
104  iEvent.getByToken(histoToken, input);
105 
107  TH3F* copy = new TH3F(*input);
108 
109  std::ostringstream os;
110  os << copy->GetName() << '_' << counter << '_'
111  << runnumber << '_' << eventnumber;
112  const std::string& newname(os.str());
113  copy->SetNameTitle(newname.c_str(), newname.c_str());
114 
115  copy->SetDirectory(fs->getBareDirectory());
116 
117  ++counter;
118 }
RunNumber_t run() const
Definition: EventID.h:39
EventNumber_t event() const
Definition: EventID.h:41
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:462
unsigned long long EventNumber_t
static std::string const input
Definition: EdmProvDump.cc:44
edm::EDGetTokenT< TH3F > histoToken
TDirectory * getBareDirectory(const std::string &subdir="") const
Definition: TFileService.h:52
edm::EventID id() const
Definition: EventBase.h:59
unsigned int RunNumber_t
void FFTJetImageRecorder::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 89 of file FFTJetImageRecorder.cc.

References TFileService::make().

90 {
92  fs->make<TNtuple>("dummy", "dummy", "var");
93 }
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
void FFTJetImageRecorder::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 122 of file FFTJetImageRecorder.cc.

123 {
124 }
FFTJetImageRecorder& FFTJetImageRecorder::operator= ( const FFTJetImageRecorder )
private

Member Data Documentation

unsigned long FFTJetImageRecorder::counter
private

Definition at line 63 of file FFTJetImageRecorder.cc.

Referenced by counter.Counters::__getitem__(), and analyze().

edm::InputTag FFTJetImageRecorder::histoLabel
private

Definition at line 62 of file FFTJetImageRecorder.cc.

Referenced by FFTJetImageRecorder().

edm::EDGetTokenT<TH3F> FFTJetImageRecorder::histoToken
private

Definition at line 65 of file FFTJetImageRecorder.cc.

Referenced by analyze(), and FFTJetImageRecorder().