CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes
HBHEHitMap Class Reference

#include <HBHEIsolatedNoiseAlgos.h>

Classes

struct  twrinfo
 

Public Types

typedef std::map< const HBHERecHit *, const PhysicsTower * >::const_iterator hitmap_const_iterator
 
typedef std::set< const PhysicsTower * >::const_iterator neighbor_const_iterator
 

Public Member Functions

hitmap_const_iterator beginHits (void) const
 
neighbor_const_iterator beginNeighbors (void) const
 
void byTowers (std::vector< twrinfo > &v) const
 
double ecalEnergyNeighborTowers (void) const
 
double ecalEnergySameTowers (void) const
 
void ecalHitsNeighborTowers (std::set< const EcalRecHit *> &v) const
 
void ecalHitsSameTowers (std::set< const EcalRecHit *> &v) const
 
hitmap_const_iterator endHits (void) const
 
neighbor_const_iterator endNeighbors (void) const
 
hitmap_const_iterator findHit (const HBHERecHit *hit) const
 
neighbor_const_iterator findNeighbor (const PhysicsTower *twr) const
 
 HBHEHitMap ()
 
double hcalEnergyNeighborTowers (void) const
 
double hcalEnergySameTowers (void) const
 
void hcalHitsNeighborTowers (std::set< const HBHERecHit *> &v) const
 
void hcalHitsSameTowers (std::set< const HBHERecHit *> &v) const
 
double hitEnergy (void) const
 
double hitEnergyTrackFiducial (void) const
 
void insert (const HBHERecHit *hit, const PhysicsTower *twr, std::set< const PhysicsTower *> &neighbors)
 
int nEcalHitsNeighborTowers (void) const
 
int nEcalHitsSameTowers (void) const
 
int nHcalHitsNeighborTowers (void) const
 
int nHcalHitsSameTowers (void) const
 
int nHits (void) const
 
int nTracksNeighborTowers (void) const
 
int nTracksSameTowers (void) const
 
double trackEnergyNeighborTowers (void) const
 
double trackEnergySameTowers (void) const
 
void tracksNeighborTowers (std::set< const reco::Track *> &v) const
 
void tracksSameTowers (std::set< const reco::Track *> &v) const
 
virtual ~HBHEHitMap ()
 

Private Member Functions

void calcEcalNeighborTowers_ (void) const
 
void calcEcalSameTowers_ (void) const
 
void calcHcalNeighborTowers_ (void) const
 
void calcHcalSameTowers_ (void) const
 
void calcHits_ (void) const
 
void calcTracksNeighborTowers_ (void) const
 
void calcTracksSameTowers_ (void) const
 

Private Attributes

double ecalEnergyNeighborTowers_
 
double ecalEnergySameTowers_
 
double hcalEnergyNeighborTowers_
 
double hcalEnergySameTowers_
 
double hitEnergy_
 
double hitEnergyTrkFid_
 
std::map< const HBHERecHit *, const PhysicsTower * > hits_
 
int nEcalHitsNeighborTowers_
 
int nEcalHitsSameTowers_
 
std::set< const PhysicsTower * > neighbors_
 
int nHcalHitsNeighborTowers_
 
int nHcalHitsSameTowers_
 
int nHits_
 
int nTracksNeighborTowers_
 
int nTracksSameTowers_
 
double trackEnergyNeighborTowers_
 
double trackEnergySameTowers_
 

Detailed Description

Definition at line 222 of file HBHEIsolatedNoiseAlgos.h.

Member Typedef Documentation

◆ hitmap_const_iterator

typedef std::map<const HBHERecHit*, const PhysicsTower*>::const_iterator HBHEHitMap::hitmap_const_iterator

Definition at line 224 of file HBHEIsolatedNoiseAlgos.h.

◆ neighbor_const_iterator

typedef std::set<const PhysicsTower*>::const_iterator HBHEHitMap::neighbor_const_iterator

Definition at line 225 of file HBHEIsolatedNoiseAlgos.h.

Constructor & Destructor Documentation

◆ HBHEHitMap()

HBHEHitMap::HBHEHitMap ( )

Definition at line 469 of file HBHEIsolatedNoiseAlgos.cc.

References ecalEnergyNeighborTowers_, ecalEnergySameTowers_, hcalEnergyNeighborTowers_, hcalEnergySameTowers_, hitEnergy_, hitEnergyTrkFid_, nEcalHitsNeighborTowers_, nEcalHitsSameTowers_, nHcalHitsNeighborTowers_, nHcalHitsSameTowers_, nHits_, nTracksNeighborTowers_, nTracksSameTowers_, trackEnergyNeighborTowers_, and trackEnergySameTowers_.

469  {
470  hitEnergy_ = hitEnergyTrkFid_ = -999.;
471  nHits_ = -999;
476 }
double hcalEnergyNeighborTowers_
double trackEnergyNeighborTowers_
double ecalEnergyNeighborTowers_

◆ ~HBHEHitMap()

virtual HBHEHitMap::~HBHEHitMap ( )
inlinevirtual

Definition at line 235 of file HBHEIsolatedNoiseAlgos.h.

235 {}

Member Function Documentation

◆ beginHits()

hitmap_const_iterator HBHEHitMap::beginHits ( void  ) const
inline

Definition at line 283 of file HBHEIsolatedNoiseAlgos.h.

References hits_.

Referenced by ecalHitsSameTowers(), hcalHitsSameTowers(), insert(), and tracksSameTowers().

283 { return hits_.begin(); }
std::map< const HBHERecHit *, const PhysicsTower * > hits_

◆ beginNeighbors()

neighbor_const_iterator HBHEHitMap::beginNeighbors ( void  ) const
inline

Definition at line 286 of file HBHEIsolatedNoiseAlgos.h.

References neighbors_.

Referenced by ecalHitsNeighborTowers(), hcalHitsNeighborTowers(), and tracksNeighborTowers().

286 { return neighbors_.begin(); }
std::set< const PhysicsTower * > neighbors_

◆ byTowers()

void HBHEHitMap::byTowers ( std::vector< twrinfo > &  v) const

Definition at line 627 of file HBHEIsolatedNoiseAlgos.cc.

References cms::cuda::assert().

627 { assert(false); }
assert(be >=bs)

◆ calcEcalNeighborTowers_()

void HBHEHitMap::calcEcalNeighborTowers_ ( void  ) const
private

Definition at line 711 of file HBHEIsolatedNoiseAlgos.cc.

References ecalEnergyNeighborTowers_, ecalHitsNeighborTowers(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, nEcalHitsNeighborTowers_, and findQualityFiles::v.

Referenced by ecalEnergyNeighborTowers(), and nEcalHitsNeighborTowers().

711  {
714  std::set<const EcalRecHit*> v;
716  for (std::set<const EcalRecHit*>::const_iterator it = v.begin(); it != v.end(); ++it) {
717  const EcalRecHit* hit = (*it);
718  ecalEnergyNeighborTowers_ += hit->energy();
720  }
721  return;
722 }
void ecalHitsNeighborTowers(std::set< const EcalRecHit *> &v) const
double ecalEnergyNeighborTowers_

◆ calcEcalSameTowers_()

void HBHEHitMap::calcEcalSameTowers_ ( void  ) const
private

Definition at line 672 of file HBHEIsolatedNoiseAlgos.cc.

References ecalEnergySameTowers_, ecalHitsSameTowers(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, nEcalHitsSameTowers_, and findQualityFiles::v.

Referenced by ecalEnergySameTowers(), and nEcalHitsSameTowers().

672  {
675  std::set<const EcalRecHit*> v;
677  for (std::set<const EcalRecHit*>::const_iterator it = v.begin(); it != v.end(); ++it) {
678  const EcalRecHit* hit = (*it);
679  ecalEnergySameTowers_ += hit->energy();
681  }
682  return;
683 }
void ecalHitsSameTowers(std::set< const EcalRecHit *> &v) const

◆ calcHcalNeighborTowers_()

void HBHEHitMap::calcHcalNeighborTowers_ ( void  ) const
private

Definition at line 698 of file HBHEIsolatedNoiseAlgos.cc.

References hcalEnergyNeighborTowers_, hcalHitsNeighborTowers(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, nHcalHitsNeighborTowers_, and findQualityFiles::v.

Referenced by hcalEnergyNeighborTowers(), and nHcalHitsNeighborTowers().

698  {
701  std::set<const HBHERecHit*> v;
703  for (std::set<const HBHERecHit*>::const_iterator it = v.begin(); it != v.end(); ++it) {
704  const HBHERecHit* hit = (*it);
705  hcalEnergyNeighborTowers_ += hit->energy();
707  }
708  return;
709 }
double hcalEnergyNeighborTowers_
void hcalHitsNeighborTowers(std::set< const HBHERecHit *> &v) const

◆ calcHcalSameTowers_()

void HBHEHitMap::calcHcalSameTowers_ ( void  ) const
private

Definition at line 659 of file HBHEIsolatedNoiseAlgos.cc.

References hcalEnergySameTowers_, hcalHitsSameTowers(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, nHcalHitsSameTowers_, and findQualityFiles::v.

Referenced by hcalEnergySameTowers(), and nHcalHitsSameTowers().

659  {
662  std::set<const HBHERecHit*> v;
664  for (std::set<const HBHERecHit*>::const_iterator it = v.begin(); it != v.end(); ++it) {
665  const HBHERecHit* hit = (*it);
666  hcalEnergySameTowers_ += hit->energy();
668  }
669  return;
670 }
void hcalHitsSameTowers(std::set< const HBHERecHit *> &v) const

◆ calcHits_()

void HBHEHitMap::calcHits_ ( void  ) const
private

Definition at line 645 of file HBHEIsolatedNoiseAlgos.cc.

References hitEnergy_, hitEnergyTrkFid_, hits_, hit::id, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and nHits_.

Referenced by hitEnergy(), hitEnergyTrackFiducial(), and nHits().

645  {
646  hitEnergy_ = 0;
647  nHits_ = 0;
648  hitEnergyTrkFid_ = 0;
649  for (hitmap_const_iterator it = hits_.begin(); it != hits_.end(); ++it) {
650  const HBHERecHit* hit = it->first;
651  if (hit->id().ietaAbs() <= 26)
652  hitEnergyTrkFid_ += hit->energy();
653  hitEnergy_ += hit->energy();
654  ++nHits_;
655  }
656  return;
657 }
std::map< const HBHERecHit *, const PhysicsTower * >::const_iterator hitmap_const_iterator
std::map< const HBHERecHit *, const PhysicsTower * > hits_
unsigned int id

◆ calcTracksNeighborTowers_()

void HBHEHitMap::calcTracksNeighborTowers_ ( void  ) const
private

Definition at line 724 of file HBHEIsolatedNoiseAlgos.cc.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, nTracksNeighborTowers_, reco::TrackBase::p(), trackEnergyNeighborTowers_, tracksNeighborTowers(), and findQualityFiles::v.

Referenced by nTracksNeighborTowers(), and trackEnergyNeighborTowers().

724  {
727  std::set<const reco::Track*> v;
729  for (std::set<const reco::Track*>::const_iterator it = v.begin(); it != v.end(); ++it) {
730  const reco::Track* trk = (*it);
731  trackEnergyNeighborTowers_ += trk->p();
733  }
734  return;
735 }
double p() const
momentum vector magnitude
Definition: TrackBase.h:631
double trackEnergyNeighborTowers_
void tracksNeighborTowers(std::set< const reco::Track *> &v) const

◆ calcTracksSameTowers_()

void HBHEHitMap::calcTracksSameTowers_ ( void  ) const
private

Definition at line 685 of file HBHEIsolatedNoiseAlgos.cc.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, nTracksSameTowers_, reco::TrackBase::p(), trackEnergySameTowers_, tracksSameTowers(), and findQualityFiles::v.

Referenced by nTracksSameTowers(), and trackEnergySameTowers().

685  {
687  nTracksSameTowers_ = 0;
688  std::set<const reco::Track*> v;
690  for (std::set<const reco::Track*>::const_iterator it = v.begin(); it != v.end(); ++it) {
691  const reco::Track* trk = (*it);
692  trackEnergySameTowers_ += trk->p();
694  }
695  return;
696 }
double p() const
momentum vector magnitude
Definition: TrackBase.h:631
void tracksSameTowers(std::set< const reco::Track *> &v) const

◆ ecalEnergyNeighborTowers()

double HBHEHitMap::ecalEnergyNeighborTowers ( void  ) const

Definition at line 575 of file HBHEIsolatedNoiseAlgos.cc.

References calcEcalNeighborTowers_(), and ecalEnergyNeighborTowers_.

575  {
576  if (ecalEnergyNeighborTowers_ < -900)
579 }
void calcEcalNeighborTowers_(void) const
double ecalEnergyNeighborTowers_

◆ ecalEnergySameTowers()

double HBHEHitMap::ecalEnergySameTowers ( void  ) const

Definition at line 508 of file HBHEIsolatedNoiseAlgos.cc.

References calcEcalSameTowers_(), and ecalEnergySameTowers_.

508  {
509  if (ecalEnergySameTowers_ < -900)
511  return ecalEnergySameTowers_;
512 }
void calcEcalSameTowers_(void) const

◆ ecalHitsNeighborTowers()

void HBHEHitMap::ecalHitsNeighborTowers ( std::set< const EcalRecHit *> &  v) const

Definition at line 608 of file HBHEIsolatedNoiseAlgos.cc.

References beginNeighbors(), PhysicsTower::ecalhits, endNeighbors(), and findQualityFiles::v.

Referenced by calcEcalNeighborTowers_().

608  {
609  v.clear();
610  for (neighbor_const_iterator it1 = beginNeighbors(); it1 != endNeighbors(); ++it1) {
611  const PhysicsTower* twr = (*it1);
612  v.insert(twr->ecalhits.begin(), twr->ecalhits.end());
613  }
614 
615  return;
616 }
neighbor_const_iterator endNeighbors(void) const
std::set< const PhysicsTower * >::const_iterator neighbor_const_iterator
neighbor_const_iterator beginNeighbors(void) const
std::set< const EcalRecHit * > ecalhits

◆ ecalHitsSameTowers()

void HBHEHitMap::ecalHitsSameTowers ( std::set< const EcalRecHit *> &  v) const

Definition at line 547 of file HBHEIsolatedNoiseAlgos.cc.

References beginHits(), endHits(), and findQualityFiles::v.

Referenced by calcEcalSameTowers_().

547  {
548  v.clear();
549  for (hitmap_const_iterator it1 = beginHits(); it1 != endHits(); ++it1) {
550  v.insert(it1->second->ecalhits.begin(), it1->second->ecalhits.end());
551  }
552  return;
553 }
hitmap_const_iterator endHits(void) const
std::map< const HBHERecHit *, const PhysicsTower * >::const_iterator hitmap_const_iterator
hitmap_const_iterator beginHits(void) const

◆ endHits()

hitmap_const_iterator HBHEHitMap::endHits ( void  ) const
inline

Definition at line 284 of file HBHEIsolatedNoiseAlgos.h.

References hits_.

Referenced by ecalHitsSameTowers(), hcalHitsSameTowers(), insert(), and tracksSameTowers().

284 { return hits_.end(); }
std::map< const HBHERecHit *, const PhysicsTower * > hits_

◆ endNeighbors()

neighbor_const_iterator HBHEHitMap::endNeighbors ( void  ) const
inline

Definition at line 287 of file HBHEIsolatedNoiseAlgos.h.

References neighbors_.

Referenced by ecalHitsNeighborTowers(), hcalHitsNeighborTowers(), insert(), and tracksNeighborTowers().

287 { return neighbors_.end(); }
std::set< const PhysicsTower * > neighbors_

◆ findHit()

hitmap_const_iterator HBHEHitMap::findHit ( const HBHERecHit hit) const
inline

Definition at line 274 of file HBHEIsolatedNoiseAlgos.h.

References hits_.

Referenced by hcalHitsSameTowers().

274 { return hits_.find(hit); }
std::map< const HBHERecHit *, const PhysicsTower * > hits_

◆ findNeighbor()

neighbor_const_iterator HBHEHitMap::findNeighbor ( const PhysicsTower twr) const
inline

Definition at line 277 of file HBHEIsolatedNoiseAlgos.h.

References neighbors_.

Referenced by insert().

277 { return neighbors_.find(twr); }
std::set< const PhysicsTower * > neighbors_

◆ hcalEnergyNeighborTowers()

double HBHEHitMap::hcalEnergyNeighborTowers ( void  ) const

Definition at line 563 of file HBHEIsolatedNoiseAlgos.cc.

References calcHcalNeighborTowers_(), and hcalEnergyNeighborTowers_.

563  {
564  if (hcalEnergyNeighborTowers_ < -900)
567 }
void calcHcalNeighborTowers_(void) const
double hcalEnergyNeighborTowers_

◆ hcalEnergySameTowers()

double HBHEHitMap::hcalEnergySameTowers ( void  ) const

Definition at line 496 of file HBHEIsolatedNoiseAlgos.cc.

References calcHcalSameTowers_(), and hcalEnergySameTowers_.

496  {
497  if (hcalEnergySameTowers_ < -900)
499  return hcalEnergySameTowers_;
500 }
void calcHcalSameTowers_(void) const

◆ hcalHitsNeighborTowers()

void HBHEHitMap::hcalHitsNeighborTowers ( std::set< const HBHERecHit *> &  v) const

Definition at line 599 of file HBHEIsolatedNoiseAlgos.cc.

References beginNeighbors(), endNeighbors(), PhysicsTower::hcalhits, and findQualityFiles::v.

Referenced by calcHcalNeighborTowers_().

599  {
600  v.clear();
601  for (neighbor_const_iterator it1 = beginNeighbors(); it1 != endNeighbors(); ++it1) {
602  const PhysicsTower* twr = (*it1);
603  v.insert(twr->hcalhits.begin(), twr->hcalhits.end());
604  }
605  return;
606 }
std::set< const HBHERecHit * > hcalhits
neighbor_const_iterator endNeighbors(void) const
std::set< const PhysicsTower * >::const_iterator neighbor_const_iterator
neighbor_const_iterator beginNeighbors(void) const

◆ hcalHitsSameTowers()

void HBHEHitMap::hcalHitsSameTowers ( std::set< const HBHERecHit *> &  v) const

Definition at line 532 of file HBHEIsolatedNoiseAlgos.cc.

References beginHits(), endHits(), findHit(), and findQualityFiles::v.

Referenced by calcHcalSameTowers_().

532  {
533  v.clear();
534  for (hitmap_const_iterator it1 = beginHits(); it1 != endHits(); ++it1) {
535  for (std::set<const HBHERecHit*>::const_iterator it2 = it1->second->hcalhits.begin();
536  it2 != it1->second->hcalhits.end();
537  ++it2) {
538  const HBHERecHit* hit = (*it2);
539  // if the hit in the tower is already in the hitmap, don't include it
540  if (findHit(hit) == endHits())
541  v.insert(hit);
542  }
543  }
544  return;
545 }
hitmap_const_iterator endHits(void) const
std::map< const HBHERecHit *, const PhysicsTower * >::const_iterator hitmap_const_iterator
hitmap_const_iterator findHit(const HBHERecHit *hit) const
hitmap_const_iterator beginHits(void) const

◆ hitEnergy()

double HBHEHitMap::hitEnergy ( void  ) const

Definition at line 478 of file HBHEIsolatedNoiseAlgos.cc.

References calcHits_(), and hitEnergy_.

478  {
479  if (hitEnergy_ < -900)
480  calcHits_();
481  return hitEnergy_;
482 }
void calcHits_(void) const

◆ hitEnergyTrackFiducial()

double HBHEHitMap::hitEnergyTrackFiducial ( void  ) const

Definition at line 490 of file HBHEIsolatedNoiseAlgos.cc.

References calcHits_(), and hitEnergyTrkFid_.

490  {
491  if (hitEnergyTrkFid_ < -900)
492  calcHits_();
493  return hitEnergyTrkFid_;
494 }
void calcHits_(void) const

◆ insert()

void HBHEHitMap::insert ( const HBHERecHit hit,
const PhysicsTower twr,
std::set< const PhysicsTower *> &  neighbors 
)

Definition at line 629 of file HBHEIsolatedNoiseAlgos.cc.

References beginHits(), endHits(), endNeighbors(), spr::find(), findNeighbor(), hits_, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, neighbors_, and submitPVValidationJobs::t.

Referenced by HBHEHitMapOrganizer::HBHEHitMapOrganizer().

629  {
630  hits_[hit] = twr;
631  neighbors_.insert(neighbors.begin(), neighbors.end());
632 
633  // make sure none of the neighbors are also are part of the hitmap
634  for (hitmap_const_iterator it = beginHits(); it != endHits(); ++it) {
635  const PhysicsTower* t = it->second;
637 
638  // if a hit is also a neighbor, remove the neighbor
639  if (find != endNeighbors())
640  neighbors_.erase(find);
641  }
642  return;
643 }
hitmap_const_iterator endHits(void) const
std::map< const HBHERecHit *, const PhysicsTower * >::const_iterator hitmap_const_iterator
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
std::map< const HBHERecHit *, const PhysicsTower * > hits_
std::set< const PhysicsTower * > neighbors_
neighbor_const_iterator findNeighbor(const PhysicsTower *twr) const
neighbor_const_iterator endNeighbors(void) const
std::set< const PhysicsTower * >::const_iterator neighbor_const_iterator
hitmap_const_iterator beginHits(void) const

◆ nEcalHitsNeighborTowers()

int HBHEHitMap::nEcalHitsNeighborTowers ( void  ) const

Definition at line 581 of file HBHEIsolatedNoiseAlgos.cc.

References calcEcalNeighborTowers_(), and nEcalHitsNeighborTowers_.

581  {
582  if (nEcalHitsNeighborTowers_ < -900)
585 }
void calcEcalNeighborTowers_(void) const

◆ nEcalHitsSameTowers()

int HBHEHitMap::nEcalHitsSameTowers ( void  ) const

Definition at line 514 of file HBHEIsolatedNoiseAlgos.cc.

References calcEcalSameTowers_(), and nEcalHitsSameTowers_.

514  {
515  if (nEcalHitsSameTowers_ < -900)
517  return nEcalHitsSameTowers_;
518 }
void calcEcalSameTowers_(void) const

◆ nHcalHitsNeighborTowers()

int HBHEHitMap::nHcalHitsNeighborTowers ( void  ) const

Definition at line 569 of file HBHEIsolatedNoiseAlgos.cc.

References calcHcalNeighborTowers_(), and nHcalHitsNeighborTowers_.

569  {
570  if (nHcalHitsNeighborTowers_ < -900)
573 }
void calcHcalNeighborTowers_(void) const

◆ nHcalHitsSameTowers()

int HBHEHitMap::nHcalHitsSameTowers ( void  ) const

Definition at line 502 of file HBHEIsolatedNoiseAlgos.cc.

References calcHcalSameTowers_(), and nHcalHitsSameTowers_.

502  {
503  if (nHcalHitsSameTowers_ < -900)
505  return nHcalHitsSameTowers_;
506 }
void calcHcalSameTowers_(void) const

◆ nHits()

int HBHEHitMap::nHits ( void  ) const

Definition at line 484 of file HBHEIsolatedNoiseAlgos.cc.

References calcHits_(), and nHits_.

484  {
485  if (nHits_ < -900)
486  calcHits_();
487  return nHits_;
488 }
void calcHits_(void) const

◆ nTracksNeighborTowers()

int HBHEHitMap::nTracksNeighborTowers ( void  ) const

Definition at line 593 of file HBHEIsolatedNoiseAlgos.cc.

References calcTracksNeighborTowers_(), and nTracksNeighborTowers_.

593  {
594  if (nTracksNeighborTowers_ < -900)
596  return nTracksNeighborTowers_;
597 }
void calcTracksNeighborTowers_(void) const

◆ nTracksSameTowers()

int HBHEHitMap::nTracksSameTowers ( void  ) const

Definition at line 526 of file HBHEIsolatedNoiseAlgos.cc.

References calcTracksSameTowers_(), and nTracksSameTowers_.

526  {
527  if (nTracksSameTowers_ < -900)
529  return nTracksSameTowers_;
530 }
void calcTracksSameTowers_(void) const

◆ trackEnergyNeighborTowers()

double HBHEHitMap::trackEnergyNeighborTowers ( void  ) const

Definition at line 587 of file HBHEIsolatedNoiseAlgos.cc.

References calcTracksNeighborTowers_(), and trackEnergyNeighborTowers_.

587  {
588  if (trackEnergyNeighborTowers_ < -900)
591 }
double trackEnergyNeighborTowers_
void calcTracksNeighborTowers_(void) const

◆ trackEnergySameTowers()

double HBHEHitMap::trackEnergySameTowers ( void  ) const

Definition at line 520 of file HBHEIsolatedNoiseAlgos.cc.

References calcTracksSameTowers_(), and trackEnergySameTowers_.

520  {
521  if (trackEnergySameTowers_ < -900)
523  return trackEnergySameTowers_;
524 }
void calcTracksSameTowers_(void) const

◆ tracksNeighborTowers()

void HBHEHitMap::tracksNeighborTowers ( std::set< const reco::Track *> &  v) const

Definition at line 618 of file HBHEIsolatedNoiseAlgos.cc.

References beginNeighbors(), endNeighbors(), PhysicsTower::tracks, and findQualityFiles::v.

Referenced by calcTracksNeighborTowers_().

618  {
619  v.clear();
620  for (neighbor_const_iterator it1 = beginNeighbors(); it1 != endNeighbors(); ++it1) {
621  const PhysicsTower* twr = (*it1);
622  v.insert(twr->tracks.begin(), twr->tracks.end());
623  }
624  return;
625 }
neighbor_const_iterator endNeighbors(void) const
std::set< const PhysicsTower * >::const_iterator neighbor_const_iterator
neighbor_const_iterator beginNeighbors(void) const
std::set< const reco::Track * > tracks

◆ tracksSameTowers()

void HBHEHitMap::tracksSameTowers ( std::set< const reco::Track *> &  v) const

Definition at line 555 of file HBHEIsolatedNoiseAlgos.cc.

References beginHits(), endHits(), and findQualityFiles::v.

Referenced by calcTracksSameTowers_().

555  {
556  v.clear();
557  for (hitmap_const_iterator it1 = beginHits(); it1 != endHits(); ++it1) {
558  v.insert(it1->second->tracks.begin(), it1->second->tracks.end());
559  }
560  return;
561 }
hitmap_const_iterator endHits(void) const
std::map< const HBHERecHit *, const PhysicsTower * >::const_iterator hitmap_const_iterator
hitmap_const_iterator beginHits(void) const

Member Data Documentation

◆ ecalEnergyNeighborTowers_

double HBHEHitMap::ecalEnergyNeighborTowers_
mutableprivate

◆ ecalEnergySameTowers_

double HBHEHitMap::ecalEnergySameTowers_
mutableprivate

Definition at line 303 of file HBHEIsolatedNoiseAlgos.h.

Referenced by calcEcalSameTowers_(), ecalEnergySameTowers(), and HBHEHitMap().

◆ hcalEnergyNeighborTowers_

double HBHEHitMap::hcalEnergyNeighborTowers_
mutableprivate

◆ hcalEnergySameTowers_

double HBHEHitMap::hcalEnergySameTowers_
mutableprivate

Definition at line 299 of file HBHEIsolatedNoiseAlgos.h.

Referenced by calcHcalSameTowers_(), HBHEHitMap(), and hcalEnergySameTowers().

◆ hitEnergy_

double HBHEHitMap::hitEnergy_
mutableprivate

Definition at line 294 of file HBHEIsolatedNoiseAlgos.h.

Referenced by calcHits_(), HBHEHitMap(), and hitEnergy().

◆ hitEnergyTrkFid_

double HBHEHitMap::hitEnergyTrkFid_
mutableprivate

Definition at line 295 of file HBHEIsolatedNoiseAlgos.h.

Referenced by calcHits_(), HBHEHitMap(), and hitEnergyTrackFiducial().

◆ hits_

std::map<const HBHERecHit*, const PhysicsTower*> HBHEHitMap::hits_
private

Definition at line 290 of file HBHEIsolatedNoiseAlgos.h.

Referenced by beginHits(), calcHits_(), endHits(), findHit(), and insert().

◆ nEcalHitsNeighborTowers_

int HBHEHitMap::nEcalHitsNeighborTowers_
mutableprivate

◆ nEcalHitsSameTowers_

int HBHEHitMap::nEcalHitsSameTowers_
mutableprivate

Definition at line 304 of file HBHEIsolatedNoiseAlgos.h.

Referenced by calcEcalSameTowers_(), HBHEHitMap(), and nEcalHitsSameTowers().

◆ neighbors_

std::set<const PhysicsTower*> HBHEHitMap::neighbors_
private

Definition at line 291 of file HBHEIsolatedNoiseAlgos.h.

Referenced by beginNeighbors(), endNeighbors(), findNeighbor(), and insert().

◆ nHcalHitsNeighborTowers_

int HBHEHitMap::nHcalHitsNeighborTowers_
mutableprivate

◆ nHcalHitsSameTowers_

int HBHEHitMap::nHcalHitsSameTowers_
mutableprivate

Definition at line 300 of file HBHEIsolatedNoiseAlgos.h.

Referenced by calcHcalSameTowers_(), HBHEHitMap(), and nHcalHitsSameTowers().

◆ nHits_

int HBHEHitMap::nHits_
mutableprivate

Definition at line 296 of file HBHEIsolatedNoiseAlgos.h.

Referenced by calcHits_(), HBHEHitMap(), and nHits().

◆ nTracksNeighborTowers_

int HBHEHitMap::nTracksNeighborTowers_
mutableprivate

◆ nTracksSameTowers_

int HBHEHitMap::nTracksSameTowers_
mutableprivate

Definition at line 308 of file HBHEIsolatedNoiseAlgos.h.

Referenced by calcTracksSameTowers_(), HBHEHitMap(), and nTracksSameTowers().

◆ trackEnergyNeighborTowers_

double HBHEHitMap::trackEnergyNeighborTowers_
mutableprivate

◆ trackEnergySameTowers_

double HBHEHitMap::trackEnergySameTowers_
mutableprivate