|
| CaloCleaner (const edm::ParameterSet &) |
|
| ~CaloCleaner () override |
|
| EDProducer ()=default |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducerBase () override |
|
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 |
|
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) |
|
virtual | ~ProducerBase () noexcept(false) |
|
std::vector< ConsumesInfo > | consumesInfo () 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 |
|
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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
template<> |
void | fill_correction_map (TrackDetMatchInfo *info, std::map< uint32_t, float > *cor_map) |
|
template<> |
void | fill_correction_map (TrackDetMatchInfo *info, std::map< uint32_t, float > *cor_map) |
|
void | fill_correction_map (TrackDetMatchInfo *, std::map< uint32_t, float > *) |
|
template<> |
void | fill_correction_map (TrackDetMatchInfo *info, std::map< uint32_t, float > *cor_map) |
|
template<> |
void | fill_correction_map (TrackDetMatchInfo *info, std::map< uint32_t, float > *cor_map) |
|
template<> |
void | fill_correction_map (TrackDetMatchInfo *info, std::map< uint32_t, float > *cor_map) |
|
template<> |
void | fill_correction_map (TrackDetMatchInfo *info, std::map< uint32_t, float > *cor_map) |
|
void | produce (edm::Event &, const edm::EventSetup &) override |
|
|
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 |
|
typedef EDProducerAdaptorBase | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
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) |
|
template<typename T>
class CaloCleaner< T >
Clean collections of calorimeter recHits (detectors supported at the moment: EB/EE, HB/HE and HO)
- Author
- Tomasz Maciej Frueboes; Christian Veelken, LLR
Clean Up from STefan Wayand, KIT
Definition at line 37 of file CaloCleaner.h.
Definition at line 86 of file CaloCleaner.h.
References TrackDetectorAssociator::Any, TrackDetectorAssociator::associate(), edm::View< T >::begin(), edm::SortedCollection< T, SORT >::begin(), edm::View< T >::end(), edm::SortedCollection< T, SORT >::end(), Exception, CaloCleaner< T >::fill_correction_map(), edm::EventSetup::get(), edm::Event::getByToken(), info(), CaloCleaner< T >::inputs_, eostools::move(), CaloCleaner< T >::mu_input_, extraflags_cff::muons, CaloCleaner< T >::parameters_, edm::ESHandle< T >::product(), PhotonConversionTrajectorySeedProducerFromQuadruplets_cfi::propagator, edm::Event::put(), rpcPointValidation_cfi::recHit, TrackDetectorAssociator::setPropagator(), reco::TrackBase::standAloneMuon, HiIsolationCommonParameters_cff::track, and CaloCleaner< T >::trackAssociator_.
96 std::map<uint32_t, float> correction_map;
103 if ( iMuon->track().isNonnull() ) track = iMuon->track().get();
104 else if ( iMuon->standAloneMuon().isNonnull() ) track = iMuon->
standAloneMuon().get();
105 else throw cms::Exception(
"FatalError") <<
"Failed to fill muon id information for a muon with undefined references to tracks";
112 std::unique_ptr<RecHitCollection> recHitCollection_output(
new RecHitCollection());
115 iEvent.
getByToken(input_.second, recHitCollection);
117 if (correction_map[
recHit->detid().rawId()] > 0){
118 float new_energy =
recHit->energy() - correction_map[
recHit->detid().rawId()];
119 if (new_energy <= 0)
continue;
121 newRecHit.setEnergy(new_energy);
122 recHitCollection_output->push_back(newRecHit);
125 recHitCollection_output->push_back(*
recHit);
141 recHitCollection_output->sort();
142 iEvent.
put(
std::move(recHitCollection_output),input_.first);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void fill_correction_map(TrackDetMatchInfo *, std::map< uint32_t, float > *)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< T >::const_iterator const_iterator
const edm::EDGetTokenT< edm::View< pat::Muon > > mu_input_
std::map< std::string, edm::EDGetTokenT< RecHitCollection > > inputs_
edm::SortedCollection< T > RecHitCollection
const_iterator begin() const
void setPropagator(const Propagator *)
use a user configured propagator
const_iterator end() const
TrackDetectorAssociator trackAssociator_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
TrackAssociatorParameters parameters_
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
const_iterator end() const
T const * product() const
const_iterator begin() const