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 Types | Private Member Functions | Private Attributes
GEDPhotonGSCrysFixer Class Reference

#include <GEDPhotonGSCrysFixer.h>

Inheritance diagram for GEDPhotonGSCrysFixer:
edm::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
 GEDPhotonGSCrysFixer (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~GEDPhotonGSCrysFixer ()
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
- Public Member Functions inherited from edm::stream::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- 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 Types

typedef edm::View< reco::PhotonPhotonView
 
typedef edm::ValueMap
< reco::SuperClusterRef
SCRefMap
 

Private Member Functions

template<typename T >
edm::Handle< TgetHandle (edm::Event const &iEvent, edm::EDGetTokenT< T > const &token, std::string const &name)
 
template<typename T >
void getToken (edm::EDGetTokenT< T > &token, edm::ParameterSet const &pset, std::string const &label, std::string const &instance="")
 

Private Attributes

edm::EDGetTokenT
< EcalRecHitCollection
ebHitsToken_
 
PhotonEnergyCorrector energyCorrector_
 
CaloGeometry const * geometry_ {0}
 
edm::EDGetTokenT< PhotonViewinputPhotonsToken_
 
edm::EDGetTokenT
< reco::PhotonCoreCollection
newCoresToken_
 
edm::EDGetTokenT< SCRefMapnewCoresToOldSCMapToken_
 
CaloTopology const * topology_ {0}
 
edm::EDGetTokenT
< reco::VertexCollection
verticesToken_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDProducerBase
typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- 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

Definition at line 20 of file GEDPhotonGSCrysFixer.h.

Member Typedef Documentation

Definition at line 53 of file GEDPhotonGSCrysFixer.h.

Definition at line 54 of file GEDPhotonGSCrysFixer.h.

Constructor & Destructor Documentation

GEDPhotonGSCrysFixer::GEDPhotonGSCrysFixer ( const edm::ParameterSet config)

Definition at line 36 of file GEDPhotonGSCrysFixer.cc.

GEDPhotonGSCrysFixer::~GEDPhotonGSCrysFixer ( )

Definition at line 56 of file GEDPhotonGSCrysFixer.cc.

Member Function Documentation

void GEDPhotonGSCrysFixer::beginLuminosityBlock ( edm::LuminosityBlock const &  _lb,
edm::EventSetup const &  _setup 
)
overridevirtual

Reimplemented from edm::stream::EDProducerBase.

Definition at line 61 of file GEDPhotonGSCrysFixer.cc.

template<typename T >
edm::Handle<T> GEDPhotonGSCrysFixer::getHandle ( edm::Event const &  iEvent,
edm::EDGetTokenT< T > const &  token,
std::string const &  name 
)
inlineprivate

Definition at line 44 of file GEDPhotonGSCrysFixer.h.

References edm::Event::getByToken(), patZpeak::handle, and mergeVDriftHistosByStation::name.

45  {
47  if (!iEvent.getByToken(token, handle))
48  throw cms::Exception("ProductNotFound") << name;
49 
50  return handle;
51  }
int iEvent
Definition: GenABIO.cc:230
tuple handle
Definition: patZpeak.py:22
template<typename T >
void GEDPhotonGSCrysFixer::getToken ( edm::EDGetTokenT< T > &  token,
edm::ParameterSet const &  pset,
std::string const &  label,
std::string const &  instance = "" 
)
inlineprivate

Definition at line 33 of file GEDPhotonGSCrysFixer.h.

References edm::ParameterSet::getParameter(), instance, and GlobalPosition_Frontier_DevDB_cff::tag.

34  {
35  auto tag(pset.getParameter<edm::InputTag>(label));
36  if (!instance.empty())
37  tag = edm::InputTag(tag.label(), instance, tag.process());
38 
39  token = consumes<T>(tag);
40  }
static PFTauRenderPlugin instance
void GEDPhotonGSCrysFixer::produce ( edm::Event _event,
const edm::EventSetup _setup 
)
overridevirtual

Implements edm::stream::EDProducerBase.

Definition at line 75 of file GEDPhotonGSCrysFixer.cc.

Member Data Documentation

edm::EDGetTokenT<EcalRecHitCollection> GEDPhotonGSCrysFixer::ebHitsToken_
private

Definition at line 59 of file GEDPhotonGSCrysFixer.h.

PhotonEnergyCorrector GEDPhotonGSCrysFixer::energyCorrector_
private

Definition at line 62 of file GEDPhotonGSCrysFixer.h.

CaloGeometry const* GEDPhotonGSCrysFixer::geometry_ {0}
private

Definition at line 65 of file GEDPhotonGSCrysFixer.h.

edm::EDGetTokenT<PhotonView> GEDPhotonGSCrysFixer::inputPhotonsToken_
private

Definition at line 56 of file GEDPhotonGSCrysFixer.h.

edm::EDGetTokenT<reco::PhotonCoreCollection> GEDPhotonGSCrysFixer::newCoresToken_
private

Definition at line 57 of file GEDPhotonGSCrysFixer.h.

edm::EDGetTokenT<SCRefMap> GEDPhotonGSCrysFixer::newCoresToOldSCMapToken_
private

Definition at line 58 of file GEDPhotonGSCrysFixer.h.

CaloTopology const* GEDPhotonGSCrysFixer::topology_ {0}
private

Definition at line 64 of file GEDPhotonGSCrysFixer.h.

edm::EDGetTokenT<reco::VertexCollection> GEDPhotonGSCrysFixer::verticesToken_
private

Definition at line 60 of file GEDPhotonGSCrysFixer.h.