|
| ParticleTowerProducer (const edm::ParameterSet &) |
|
| ~ParticleTowerProducer () override |
|
| EDProducer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducer () 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) |
|
| ~ProducerBase () noexcept(false) override |
|
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 |
|
ESProxyIndex const * | esGetTokenIndices (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::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 |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducer | 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) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
ProducesCollector | producesCollector () |
|
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
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) |
|
Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 25 of file ParticleTowerProducer.h.
Definition at line 291 of file ParticleTowerProducer.cc.
References funct::abs(), reco::deltaR(), PbPb_ZMuSkimMuonDPG_cff::deltaR, HcalDetId::depth(), PVValHelper::eta, PV3DBase< T, PVType, FrameType >::eta(), reco::LeafCandidate::eta(), geo_, CaloGeometry::getGeometry(), CaloGeometry::getValidDetIds(), DetId::Hcal, LEDCalibrationChannels::ieta, HLT_2018_cff::minDeltaR, phi, PV3DBase< T, PVType, FrameType >::phi(), and reco::LeafCandidate::phi().
303 for (std::vector<DetId>::const_iterator did = alldid.begin(); did != alldid.end(); did++) {
309 if (hid.depth() != 1)
314 double hcalEta = pos.
eta();
315 double hcalPhi = pos.
phi();
324 double towersize = 0.087;
328 if (
abs(ieta) > 21) {
334 else if (
abs(ieta) == 23)
336 else if (
abs(ieta) == 24)
338 else if (
abs(ieta) == 25)
340 else if (
abs(ieta) == 26)
342 else if (
abs(ieta) == 27)
344 else if (
abs(ieta) == 28)
346 else if (
abs(ieta) == 29)
354 if (deltaR < minDeltaR) {
355 returnId =
DetId(*did);
double eta() const final
momentum pseudorapidity
Geom::Phi< T > phi() const
Abs< T >::type abs(const T &t)
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const
Get the cell geometry of a given detector id.
CaloGeometry const * geo_
double phi() const final
momentum azimuthal angle
DetId ParticleTowerProducer::getNearestTower |
( |
double |
eta, |
|
|
double |
phi |
|
) |
| const |
|
private |
Definition at line 366 of file ParticleTowerProducer.cc.
References funct::abs(), reco::deltaR(), PbPb_ZMuSkimMuonDPG_cff::deltaR, HcalDetId::depth(), PV3DBase< T, PVType, FrameType >::eta(), geo_, CaloGeometry::getGeometry(), CaloGeometry::getValidDetIds(), DetId::Hcal, LEDCalibrationChannels::ieta, HLT_2018_cff::minDeltaR, and PV3DBase< T, PVType, FrameType >::phi().
378 for (std::vector<DetId>::const_iterator did = alldid.begin(); did != alldid.end(); did++) {
384 if (hid.depth() != 1)
389 double hcalEta = pos.
eta();
390 double hcalPhi = pos.
phi();
399 double towersize = 0.087;
403 if (
abs(ieta) > 21) {
409 else if (
abs(ieta) == 23)
411 else if (
abs(ieta) == 24)
413 else if (
abs(ieta) == 25)
415 else if (
abs(ieta) == 26)
417 else if (
abs(ieta) == 27)
419 else if (
abs(ieta) == 28)
421 else if (
abs(ieta) == 29)
429 if (deltaR < minDeltaR) {
430 returnId =
DetId(*did);
Geom::Phi< T > phi() const
Abs< T >::type abs(const T &t)
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const
Get the cell geometry of a given detector id.
CaloGeometry const * geo_
Definition at line 82 of file ParticleTowerProducer.cc.
References funct::abs(), EgHLTOffHistBins_cfi::et, reco::LeafCandidate::et(), PVValHelper::eta, PV3DBase< T, PVType, FrameType >::eta(), reco::LeafCandidate::eta(), eta2ieta(), geo_, edm::EventSetup::get(), edm::Event::getByToken(), CaloGeometry::getGeometry(), HcalBarrel, HcalEndcap, HcalForward, LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, eostools::move(), p4, PV3DBase< T, PVType, FrameType >::phi(), reco::LeafCandidate::phi(), phi2iphi(), dumpMFGeometry_cfg::prod, edm::ESHandle< T >::product(), edm::Event::put(), resetTowers(), sd, src_, towers_, and useHF_.
96 for (reco::PFCandidateCollection::const_iterator ci = inputsHandle->begin(); ci != inputsHandle->end(); ++ci) {
102 double eta = particle.
eta();
104 if (!
useHF_ && fabs(eta) > 3.)
118 else if (fabs(eta) < 3.)
148 auto prod = std::make_unique<CaloTowerCollection>();
150 for (std::map<DetId, double>::const_iterator iter =
towers_.begin(); iter !=
towers_.end(); ++iter) {
153 double et = iter->second;
165 CaloTower newTower(newTowerId, et, 0, 0, 0, 0,
p4, pos, pos);
166 prod->push_back(newTower);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
double eta() const final
momentum pseudorapidity
int phi2iphi(double phi, int ieta) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Geom::Phi< T > phi() const
void resetTowers(edm::Event &iEvent, const edm::EventSetup &iSetup)
double et() const final
transverse energy
Abs< T >::type abs(const T &t)
int eta2ieta(double eta) const
edm::EDGetTokenT< reco::PFCandidateCollection > src_
std::map< DetId, double > towers_
Particle reconstructed by the particle flow algorithm.
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const
Get the cell geometry of a given detector id.
CaloGeometry const * geo_
double phi() const final
momentum azimuthal angle
T const * product() const