CMS 3D CMS Logo

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 ()=delete
 
 FFTJetImageRecorder (const edm::ParameterSet &)
 
 FFTJetImageRecorder (const FFTJetImageRecorder &)=delete
 
FFTJetImageRecorderoperator= (const FFTJetImageRecorder &)=delete
 
 ~FFTJetImageRecorder () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void endJob () override
 

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 &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (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() [1/3]

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

Definition at line 69 of file FFTJetImageRecorder.cc.

71  histoToken = consumes<TH3F>(histoLabel);
72 }

References histoLabel, and histoToken.

◆ FFTJetImageRecorder() [2/3]

FFTJetImageRecorder::FFTJetImageRecorder ( )
delete

◆ FFTJetImageRecorder() [3/3]

FFTJetImageRecorder::FFTJetImageRecorder ( const FFTJetImageRecorder )
delete

◆ ~FFTJetImageRecorder()

FFTJetImageRecorder::~FFTJetImageRecorder ( )
override

Definition at line 74 of file FFTJetImageRecorder.cc.

74 {}

Member Function Documentation

◆ analyze()

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

Implements edm::EDAnalyzer.

Definition at line 87 of file FFTJetImageRecorder.cc.

87  {
88  edm::RunNumber_t const runnumber = iEvent.id().run();
89  edm::EventNumber_t const eventnumber = iEvent.id().event();
90 
92  iEvent.getByToken(histoToken, input);
93 
95  TH3F* copy = new TH3F(*input);
96 
97  std::ostringstream os;
98  os << copy->GetName() << '_' << counter << '_' << runnumber << '_' << eventnumber;
99  const std::string& newname(os.str());
100  copy->SetNameTitle(newname.c_str(), newname.c_str());
101 
102  copy->SetDirectory(fs->getBareDirectory());
103 
104  ++counter;
105 }

References filterCSVwithJSON::copy, counter, TFileService::getBareDirectory(), histoToken, iEvent, input, cond::runnumber, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ beginJob()

void FFTJetImageRecorder::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 81 of file FFTJetImageRecorder.cc.

81  {
83  fs->make<TNtuple>("dummy", "dummy", "var");
84 }

References TFileService::make().

◆ endJob()

void FFTJetImageRecorder::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 108 of file FFTJetImageRecorder.cc.

108 {}

◆ operator=()

FFTJetImageRecorder& FFTJetImageRecorder::operator= ( const FFTJetImageRecorder )
delete

Member Data Documentation

◆ counter

unsigned long FFTJetImageRecorder::counter
private

Definition at line 61 of file FFTJetImageRecorder.cc.

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

◆ histoLabel

edm::InputTag FFTJetImageRecorder::histoLabel
private

Definition at line 60 of file FFTJetImageRecorder.cc.

Referenced by FFTJetImageRecorder().

◆ histoToken

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

Definition at line 63 of file FFTJetImageRecorder.cc.

Referenced by analyze(), and FFTJetImageRecorder().

FFTJetImageRecorder::histoToken
edm::EDGetTokenT< TH3F > histoToken
Definition: FFTJetImageRecorder.cc:63
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
counter
Definition: counter.py:1
input
static const std::string input
Definition: EdmProvDump.cc:48
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
FFTJetImageRecorder::histoLabel
edm::InputTag histoLabel
Definition: FFTJetImageRecorder.cc:60
edm::Handle
Definition: AssociativeIterator.h:50
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
cond::runnumber
Definition: Time.h:19
init_param
#define init_param(type, varname)
Definition: FFTJetImageRecorder.cc:42
edm::Service< TFileService >
iEvent
int iEvent
Definition: GenABIO.cc:224
TFileService::make
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FFTJetImageRecorder::counter
unsigned long counter
Definition: FFTJetImageRecorder.cc:61
TFileService::getBareDirectory
TDirectory * getBareDirectory(const std::string &subdir="") const
Definition: TFileService.h:52
edm::InputTag
Definition: InputTag.h:15