CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
EcalPhiSymRecHitProducerLumi Class Reference
Inheritance diagram for EcalPhiSymRecHitProducerLumi:
edm::global::EDProducer< edm::StreamCache< PhiSymCache >, edm::LuminosityBlockCache< ConfigCache >, edm::LuminosityBlockSummaryCache< PhiSymCache >, edm::EndLuminosityBlockProducer, edm::Accumulator > EcalPhiSymRecHitProducerBase edm::global::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 EcalPhiSymRecHitProducerLumi (const edm::ParameterSet &pSet)
 
 ~EcalPhiSymRecHitProducerLumi () override
 
- Public Member Functions inherited from edm::global::EDProducer< edm::StreamCache< PhiSymCache >, edm::LuminosityBlockCache< ConfigCache >, edm::LuminosityBlockSummaryCache< PhiSymCache >, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const noexcept final
 
bool wantsGlobalRuns () const noexcept final
 
bool wantsInputProcessBlocks () const noexcept final
 
bool wantsProcessBlocks () const noexcept final
 
bool wantsStreamLuminosityBlocks () const noexcept final
 
bool wantsStreamRuns () const noexcept final
 
- Public Member Functions inherited from edm::global::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) 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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > 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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, 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::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 
- Public Member Functions inherited from EcalPhiSymRecHitProducerBase
 EcalPhiSymRecHitProducerBase (const edm::ParameterSet &pSet, edm::ConsumesCollector &&cc)
 
void initializeConfigCache (edm::EventSetup const &setup, edm::ESGetToken< CaloGeometry, CaloGeometryRecord > const &geoToken, std::shared_ptr< ConfigCache > &cache) const
 
void initializeJob ()
 
void initializePhiSymCache (edm::EventSetup const &setup, edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > const &chStatusToken, ConfigCache const *config, std::shared_ptr< PhiSymCache > &cache) const
 
void initializeStreamCache (ConfigCache const *config, PhiSymCache *cache) const
 
void processEvent (edm::Event const &event, edm::EventSetup const &setup, ConfigCache const *config, PhiSymCache *cache) const
 
void sumCache (PhiSymCache *summaryc, PhiSymCache *streamc) const
 
 ~EcalPhiSymRecHitProducerBase ()
 

Private Member Functions

void accumulate (edm::StreamID stream, edm::Event const &event, edm::EventSetup const &setup) const override
 
void beginJob () override
 
std::unique_ptr< PhiSymCachebeginStream (edm::StreamID stream) const override
 
std::shared_ptr< ConfigCacheglobalBeginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) const override
 
std::shared_ptr< PhiSymCacheglobalBeginLuminosityBlockSummary (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) const override
 
void globalEndLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) const override
 
void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, PhiSymCache const *cache) const override
 
void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup, PhiSymCache *cache) const override
 
void streamBeginLuminosityBlock (edm::StreamID stream, edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) const override
 
void streamEndLuminosityBlockSummary (edm::StreamID stream, edm::LuminosityBlock const &lumi, edm::EventSetup const &setup, PhiSymCache *cache) const override
 

Private Attributes

edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcdchStatusTokenLumi_
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordgeoTokenLumi_
 
edm::ESGetToken< LHCInfo, LHCInfoRcdlhcInfoTokenLumi_
 

Additional Inherited Members

- Public Types inherited from edm::global::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
template<typename T >
using BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T >
 
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::global::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 
- Protected Attributes inherited from EcalPhiSymRecHitProducerBase
std::vector< double > A_
 
std::vector< double > B_
 
EcalRingCalibrationTools calibRing_
 
edm::EDGetTokenT< EBRecHitCollectionebToken_
 
edm::EDGetTokenT< EBRecHitCollectioneeToken_
 
float etCutEB_
 
float etCutEE_
 
std::vector< double > eThresholdsEB_
 
float eThresholdsEE_ [kNRingsEE]
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordgeoToken_
 
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecordlaserDbToken_
 
std::vector< double > misCalibRangeEB_
 
std::vector< double > misCalibRangeEE_
 
std::vector< float > misCalibStepsEB_
 
std::vector< float > misCalibStepsEE_
 
int nMisCalib_
 
int nSumEtValues_
 
float thrEEmod_
 
- Static Protected Attributes inherited from EcalPhiSymRecHitProducerBase
static const short kNRingsEB = EcalRingCalibrationTools::N_RING_BARREL
 
static const short kNRingsEE = EcalRingCalibrationTools::N_RING_ENDCAP
 
static const short ringsInOneEE = kNRingsEE / 2
 

Detailed Description

Definition at line 367 of file EcalPhiSymRecHitProducers.cc.

Constructor & Destructor Documentation

◆ EcalPhiSymRecHitProducerLumi()

EcalPhiSymRecHitProducerLumi::EcalPhiSymRecHitProducerLumi ( const edm::ParameterSet pSet)
explicit

Definition at line 413 of file EcalPhiSymRecHitProducers.cc.

415  lhcInfoTokenLumi_(esConsumes<edm::Transition::BeginLuminosityBlock>()),
416  chStatusTokenLumi_(esConsumes<edm::Transition::BeginLuminosityBlock>()),
417  geoTokenLumi_(esConsumes<edm::Transition::BeginLuminosityBlock>()) {
418  produces<EcalPhiSymInfo, edm::Transition::EndLuminosityBlock>();
419  produces<EcalPhiSymRecHitCollection, edm::Transition::EndLuminosityBlock>("EB");
420  produces<EcalPhiSymRecHitCollection, edm::Transition::EndLuminosityBlock>("EE");
421 }
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geoTokenLumi_
EcalPhiSymRecHitProducerBase(const edm::ParameterSet &pSet, edm::ConsumesCollector &&cc)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::ESGetToken< LHCInfo, LHCInfoRcd > lhcInfoTokenLumi_
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > chStatusTokenLumi_

◆ ~EcalPhiSymRecHitProducerLumi()

EcalPhiSymRecHitProducerLumi::~EcalPhiSymRecHitProducerLumi ( )
inlineoverride

Definition at line 375 of file EcalPhiSymRecHitProducers.cc.

375 {};

Member Function Documentation

◆ accumulate()

void EcalPhiSymRecHitProducerLumi::accumulate ( edm::StreamID  stream,
edm::Event const &  event,
edm::EventSetup const &  setup 
) const
overrideprivate

Definition at line 485 of file EcalPhiSymRecHitProducers.cc.

References EcalPhiSymRecHitProducerBase::processEvent(), singleTopDQM_cfi::setup, and cms::cuda::stream.

487  {
488  processEvent(event, setup, luminosityBlockCache(event.getLuminosityBlock().index()), streamCache(stream));
489 }
void processEvent(edm::Event const &event, edm::EventSetup const &setup, ConfigCache const *config, PhiSymCache *cache) const
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
Definition: event.py:1

◆ beginJob()

void EcalPhiSymRecHitProducerLumi::beginJob ( )
inlineoverrideprivatevirtual

◆ beginStream()

std::unique_ptr< PhiSymCache > EcalPhiSymRecHitProducerLumi::beginStream ( edm::StreamID  stream) const
overrideprivate

Definition at line 465 of file EcalPhiSymRecHitProducers.cc.

465  {
466  //---create stream cache
467  return std::make_unique<PhiSymCache>();
468 }

◆ globalBeginLuminosityBlock()

std::shared_ptr< ConfigCache > EcalPhiSymRecHitProducerLumi::globalBeginLuminosityBlock ( edm::LuminosityBlock const &  lumi,
edm::EventSetup const &  setup 
) const
overrideprivate

Definition at line 423 of file EcalPhiSymRecHitProducers.cc.

References utilities::cache(), geoTokenLumi_, EcalPhiSymRecHitProducerBase::initializeConfigCache(), and singleTopDQM_cfi::setup.

424  {
425  auto cache = std::make_shared<ConfigCache>();
426 
427  //---Reset cache with config values
429 
430  return cache;
431 }
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geoTokenLumi_
void initializeConfigCache(edm::EventSetup const &setup, edm::ESGetToken< CaloGeometry, CaloGeometryRecord > const &geoToken, std::shared_ptr< ConfigCache > &cache) const
def cache(function)
Definition: utilities.py:3

◆ globalBeginLuminosityBlockSummary()

std::shared_ptr< PhiSymCache > EcalPhiSymRecHitProducerLumi::globalBeginLuminosityBlockSummary ( edm::LuminosityBlock const &  lumi,
edm::EventSetup const &  setup 
) const
overrideprivate

Definition at line 433 of file EcalPhiSymRecHitProducers.cc.

References utilities::cache(), chStatusTokenLumi_, EcalPhiSymRecHitProducerBase::initializePhiSymCache(), lhcInfoTokenLumi_, and singleTopDQM_cfi::setup.

434  {
435  auto cache = std::make_shared<PhiSymCache>();
436 
437  //---Get LHC info
438  const auto& lhcinfo = setup.getData(lhcInfoTokenLumi_);
439  EcalPhiSymInfo thisLumi(0, 0, 0, 1, lhcinfo.fillNumber(), lhcinfo.delivLumi(), lhcinfo.recLumi());
440 
441  //---Reset global cache
442  initializePhiSymCache(setup, chStatusTokenLumi_, luminosityBlockCache(lumi.index()), cache);
443  cache->ecalLumiInfo = thisLumi;
444 
445  return cache;
446 }
void initializePhiSymCache(edm::EventSetup const &setup, edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > const &chStatusToken, ConfigCache const *config, std::shared_ptr< PhiSymCache > &cache) const
edm::ESGetToken< LHCInfo, LHCInfoRcd > lhcInfoTokenLumi_
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > chStatusTokenLumi_
def cache(function)
Definition: utilities.py:3

◆ globalEndLuminosityBlock()

void EcalPhiSymRecHitProducerLumi::globalEndLuminosityBlock ( edm::LuminosityBlock const &  lumi,
edm::EventSetup const &  setup 
) const
inlineoverrideprivate

Definition at line 384 of file EcalPhiSymRecHitProducers.cc.

384 {};

◆ globalEndLuminosityBlockProduce()

void EcalPhiSymRecHitProducerLumi::globalEndLuminosityBlockProduce ( edm::LuminosityBlock lumi,
edm::EventSetup const &  setup,
PhiSymCache const *  cache 
) const
overrideprivate

Definition at line 448 of file EcalPhiSymRecHitProducers.cc.

References utilities::cache(), EcalPhiSymRecHitProducerBase::misCalibRangeEB_, EcalPhiSymRecHitProducerBase::misCalibRangeEE_, eostools::move(), and EcalPhiSymRecHitProducerBase::nMisCalib_.

450  {
451  //---put the collections in the LuminosityBlocks tree
452  auto ecalLumiInfo = std::make_unique<EcalPhiSymInfo>(cache->ecalLumiInfo);
453  ecalLumiInfo->setMiscalibInfo(
455  auto recHitCollEB =
456  std::make_unique<EcalPhiSymRecHitCollection>(cache->recHitCollEB.begin(), cache->recHitCollEB.end());
457  auto recHitCollEE =
458  std::make_unique<EcalPhiSymRecHitCollection>(cache->recHitCollEE.begin(), cache->recHitCollEE.end());
459 
460  lumi.put(std::move(ecalLumiInfo));
461  lumi.put(std::move(recHitCollEB), "EB");
462  lumi.put(std::move(recHitCollEE), "EE");
463 }
def cache(function)
Definition: utilities.py:3
def move(src, dest)
Definition: eostools.py:511

◆ globalEndLuminosityBlockSummary()

void EcalPhiSymRecHitProducerLumi::globalEndLuminosityBlockSummary ( edm::LuminosityBlock const &  lumi,
edm::EventSetup const &  setup,
PhiSymCache cache 
) const
inlineoverrideprivate

Definition at line 387 of file EcalPhiSymRecHitProducers.cc.

389  {};

◆ streamBeginLuminosityBlock()

void EcalPhiSymRecHitProducerLumi::streamBeginLuminosityBlock ( edm::StreamID  stream,
edm::LuminosityBlock const &  lumi,
edm::EventSetup const &  setup 
) const
overrideprivate

Definition at line 470 of file EcalPhiSymRecHitProducers.cc.

References EcalPhiSymRecHitProducerBase::initializeStreamCache(), and cms::cuda::stream.

472  {
473  //---Reset stream cache
474  initializeStreamCache(luminosityBlockCache(lumi.index()), streamCache(stream));
475 }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
void initializeStreamCache(ConfigCache const *config, PhiSymCache *cache) const

◆ streamEndLuminosityBlockSummary()

void EcalPhiSymRecHitProducerLumi::streamEndLuminosityBlockSummary ( edm::StreamID  stream,
edm::LuminosityBlock const &  lumi,
edm::EventSetup const &  setup,
PhiSymCache cache 
) const
overrideprivate

Definition at line 477 of file EcalPhiSymRecHitProducers.cc.

References cms::cuda::stream, and EcalPhiSymRecHitProducerBase::sumCache().

480  {
481  //---sum stream cache to summary cache
482  sumCache(scache, streamCache(stream));
483 }
void sumCache(PhiSymCache *summaryc, PhiSymCache *streamc) const
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream

Member Data Documentation

◆ chStatusTokenLumi_

edm::ESGetToken<EcalChannelStatus, EcalChannelStatusRcd> EcalPhiSymRecHitProducerLumi::chStatusTokenLumi_
private

Definition at line 408 of file EcalPhiSymRecHitProducers.cc.

Referenced by globalBeginLuminosityBlockSummary().

◆ geoTokenLumi_

edm::ESGetToken<CaloGeometry, CaloGeometryRecord> EcalPhiSymRecHitProducerLumi::geoTokenLumi_
private

Definition at line 409 of file EcalPhiSymRecHitProducers.cc.

Referenced by globalBeginLuminosityBlock().

◆ lhcInfoTokenLumi_

edm::ESGetToken<LHCInfo, LHCInfoRcd> EcalPhiSymRecHitProducerLumi::lhcInfoTokenLumi_
private

Definition at line 407 of file EcalPhiSymRecHitProducers.cc.

Referenced by globalBeginLuminosityBlockSummary().