#include <HBHEIsolatedNoiseAlgos.h>
Definition at line 221 of file HBHEIsolatedNoiseAlgos.h.
typedef std::map<const HBHERecHit*, const PhysicsTower*>::const_iterator HBHEHitMap::hitmap_const_iterator |
Definition at line 225 of file HBHEIsolatedNoiseAlgos.h.
typedef std::set<const PhysicsTower*>::const_iterator HBHEHitMap::neighbor_const_iterator |
Definition at line 226 of file HBHEIsolatedNoiseAlgos.h.
HBHEHitMap::HBHEHitMap | ( | ) |
Definition at line 421 of file HBHEIsolatedNoiseAlgos.cc.
References ecalEnergyNeighborTowers_, ecalEnergySameTowers_, hcalEnergyNeighborTowers_, hcalEnergySameTowers_, hitEnergy_, hitEnergyTrkFid_, nEcalHitsNeighborTowers_, nEcalHitsSameTowers_, nHcalHitsNeighborTowers_, nHcalHitsSameTowers_, nHits_, nTracksNeighborTowers_, nTracksSameTowers_, trackEnergyNeighborTowers_, and trackEnergySameTowers_.
{ hitEnergy_=hitEnergyTrkFid_=-999.; nHits_=-999; hcalEnergySameTowers_=ecalEnergySameTowers_=trackEnergySameTowers_=-999.; nHcalHitsSameTowers_=nEcalHitsSameTowers_=nTracksSameTowers_=-999; hcalEnergyNeighborTowers_=ecalEnergyNeighborTowers_=trackEnergyNeighborTowers_=-999.; nHcalHitsNeighborTowers_=nEcalHitsNeighborTowers_=nTracksNeighborTowers_=-999; }
virtual HBHEHitMap::~HBHEHitMap | ( | ) | [inline, virtual] |
Definition at line 236 of file HBHEIsolatedNoiseAlgos.h.
{}
hitmap_const_iterator HBHEHitMap::beginHits | ( | void | ) | const [inline] |
Definition at line 284 of file HBHEIsolatedNoiseAlgos.h.
References hits_.
Referenced by ecalHitsSameTowers(), hcalHitsSameTowers(), insert(), and tracksSameTowers().
{ return hits_.begin(); }
neighbor_const_iterator HBHEHitMap::beginNeighbors | ( | void | ) | const [inline] |
Definition at line 287 of file HBHEIsolatedNoiseAlgos.h.
References neighbors_.
Referenced by ecalHitsNeighborTowers(), hcalHitsNeighborTowers(), and tracksNeighborTowers().
{ return neighbors_.begin(); }
void HBHEHitMap::byTowers | ( | std::vector< twrinfo > & | v | ) | const |
Definition at line 585 of file HBHEIsolatedNoiseAlgos.cc.
{ assert(0); }
void HBHEHitMap::calcEcalNeighborTowers_ | ( | void | ) | const [private] |
Definition at line 677 of file HBHEIsolatedNoiseAlgos.cc.
References ecalEnergyNeighborTowers_, ecalHitsNeighborTowers(), CaloRecHit::energy(), nEcalHitsNeighborTowers_, and v.
Referenced by ecalEnergyNeighborTowers(), and nEcalHitsNeighborTowers().
{ ecalEnergyNeighborTowers_=0; nEcalHitsNeighborTowers_=0; std::set<const EcalRecHit*> v; ecalHitsNeighborTowers(v); for(std::set<const EcalRecHit*>::const_iterator it=v.begin(); it!=v.end(); ++it) { const EcalRecHit* hit=(*it); ecalEnergyNeighborTowers_+=hit->energy(); ++nEcalHitsNeighborTowers_; } return; }
void HBHEHitMap::calcEcalSameTowers_ | ( | void | ) | const [private] |
Definition at line 635 of file HBHEIsolatedNoiseAlgos.cc.
References ecalEnergySameTowers_, ecalHitsSameTowers(), CaloRecHit::energy(), nEcalHitsSameTowers_, and v.
Referenced by ecalEnergySameTowers(), and nEcalHitsSameTowers().
{ ecalEnergySameTowers_=0; nEcalHitsSameTowers_=0; std::set<const EcalRecHit*> v; ecalHitsSameTowers(v); for(std::set<const EcalRecHit*>::const_iterator it=v.begin(); it!=v.end(); ++it) { const EcalRecHit* hit=(*it); ecalEnergySameTowers_+=hit->energy(); ++nEcalHitsSameTowers_; } return; }
void HBHEHitMap::calcHcalNeighborTowers_ | ( | void | ) | const [private] |
Definition at line 663 of file HBHEIsolatedNoiseAlgos.cc.
References CaloRecHit::energy(), hcalEnergyNeighborTowers_, hcalHitsNeighborTowers(), nHcalHitsNeighborTowers_, and v.
Referenced by hcalEnergyNeighborTowers(), and nHcalHitsNeighborTowers().
{ hcalEnergyNeighborTowers_=0; nHcalHitsNeighborTowers_=0; std::set<const HBHERecHit*> v; hcalHitsNeighborTowers(v); for(std::set<const HBHERecHit*>::const_iterator it=v.begin(); it!=v.end(); ++it) { const HBHERecHit* hit=(*it); hcalEnergyNeighborTowers_+=hit->energy(); ++nHcalHitsNeighborTowers_; } return; }
void HBHEHitMap::calcHcalSameTowers_ | ( | void | ) | const [private] |
Definition at line 621 of file HBHEIsolatedNoiseAlgos.cc.
References CaloRecHit::energy(), hcalEnergySameTowers_, hcalHitsSameTowers(), nHcalHitsSameTowers_, and v.
Referenced by hcalEnergySameTowers(), and nHcalHitsSameTowers().
{ hcalEnergySameTowers_=0; nHcalHitsSameTowers_=0; std::set<const HBHERecHit*> v; hcalHitsSameTowers(v); for(std::set<const HBHERecHit*>::const_iterator it=v.begin(); it!=v.end(); ++it) { const HBHERecHit* hit=(*it); hcalEnergySameTowers_+=hit->energy(); ++nHcalHitsSameTowers_; } return; }
void HBHEHitMap::calcHits_ | ( | void | ) | const [private] |
Definition at line 607 of file HBHEIsolatedNoiseAlgos.cc.
References CaloRecHit::energy(), hitEnergy_, hitEnergyTrkFid_, hits_, HBHERecHit::id(), HcalDetId::ietaAbs(), and nHits_.
Referenced by hitEnergy(), hitEnergyTrackFiducial(), and nHits().
{ hitEnergy_=0; nHits_=0; hitEnergyTrkFid_=0; for(hitmap_const_iterator it=hits_.begin(); it!=hits_.end(); ++it) { const HBHERecHit* hit=it->first; if(hit->id().ietaAbs()<=26) hitEnergyTrkFid_+=hit->energy(); hitEnergy_+=hit->energy(); ++nHits_; } return; }
void HBHEHitMap::calcTracksNeighborTowers_ | ( | void | ) | const [private] |
Definition at line 691 of file HBHEIsolatedNoiseAlgos.cc.
References nTracksNeighborTowers_, reco::TrackBase::p(), trackEnergyNeighborTowers_, tracksNeighborTowers(), and v.
Referenced by nTracksNeighborTowers(), and trackEnergyNeighborTowers().
{ trackEnergyNeighborTowers_=0; nTracksNeighborTowers_=0; std::set<const reco::Track*> v; tracksNeighborTowers(v); for(std::set<const reco::Track*>::const_iterator it=v.begin(); it!=v.end(); ++it) { const reco::Track* trk=(*it); trackEnergyNeighborTowers_+=trk->p(); ++nTracksNeighborTowers_; } return; }
void HBHEHitMap::calcTracksSameTowers_ | ( | void | ) | const [private] |
Definition at line 649 of file HBHEIsolatedNoiseAlgos.cc.
References nTracksSameTowers_, reco::TrackBase::p(), trackEnergySameTowers_, tracksSameTowers(), and v.
Referenced by nTracksSameTowers(), and trackEnergySameTowers().
{ trackEnergySameTowers_=0; nTracksSameTowers_=0; std::set<const reco::Track*> v; tracksSameTowers(v); for(std::set<const reco::Track*>::const_iterator it=v.begin(); it!=v.end(); ++it) { const reco::Track* trk=(*it); trackEnergySameTowers_+=trk->p(); ++nTracksSameTowers_; } return; }
double HBHEHitMap::ecalEnergyNeighborTowers | ( | void | ) | const |
Definition at line 530 of file HBHEIsolatedNoiseAlgos.cc.
References calcEcalNeighborTowers_(), and ecalEnergyNeighborTowers_.
{ if(ecalEnergyNeighborTowers_<-900) calcEcalNeighborTowers_(); return ecalEnergyNeighborTowers_; }
double HBHEHitMap::ecalEnergySameTowers | ( | void | ) | const |
Definition at line 463 of file HBHEIsolatedNoiseAlgos.cc.
References calcEcalSameTowers_(), and ecalEnergySameTowers_.
{ if(ecalEnergySameTowers_<-900) calcEcalSameTowers_(); return ecalEnergySameTowers_; }
void HBHEHitMap::ecalHitsNeighborTowers | ( | std::set< const EcalRecHit * > & | v | ) | const |
Definition at line 564 of file HBHEIsolatedNoiseAlgos.cc.
References beginNeighbors(), PhysicsTower::ecalhits, and endNeighbors().
Referenced by calcEcalNeighborTowers_().
{ v.clear(); for(neighbor_const_iterator it1=beginNeighbors(); it1!=endNeighbors(); ++it1) { const PhysicsTower* twr=(*it1); v.insert(twr->ecalhits.begin(), twr->ecalhits.end()); } return; }
void HBHEHitMap::ecalHitsSameTowers | ( | std::set< const EcalRecHit * > & | v | ) | const |
Definition at line 500 of file HBHEIsolatedNoiseAlgos.cc.
References beginHits(), and endHits().
Referenced by calcEcalSameTowers_().
{ v.clear(); for(hitmap_const_iterator it1=beginHits(); it1!=endHits(); ++it1) { v.insert(it1->second->ecalhits.begin(), it1->second->ecalhits.end()); } return; }
hitmap_const_iterator HBHEHitMap::endHits | ( | void | ) | const [inline] |
Definition at line 285 of file HBHEIsolatedNoiseAlgos.h.
References hits_.
Referenced by ecalHitsSameTowers(), hcalHitsSameTowers(), insert(), and tracksSameTowers().
{ return hits_.end(); }
neighbor_const_iterator HBHEHitMap::endNeighbors | ( | void | ) | const [inline] |
Definition at line 288 of file HBHEIsolatedNoiseAlgos.h.
References neighbors_.
Referenced by ecalHitsNeighborTowers(), hcalHitsNeighborTowers(), insert(), and tracksNeighborTowers().
{ return neighbors_.end(); }
hitmap_const_iterator HBHEHitMap::findHit | ( | const HBHERecHit * | hit | ) | const [inline] |
Definition at line 275 of file HBHEIsolatedNoiseAlgos.h.
References hits_.
Referenced by hcalHitsSameTowers().
{ return hits_.find(hit); }
neighbor_const_iterator HBHEHitMap::findNeighbor | ( | const PhysicsTower * | twr | ) | const [inline] |
Definition at line 278 of file HBHEIsolatedNoiseAlgos.h.
References neighbors_.
Referenced by insert().
{ return neighbors_.find(twr); }
double HBHEHitMap::hcalEnergyNeighborTowers | ( | void | ) | const |
Definition at line 518 of file HBHEIsolatedNoiseAlgos.cc.
References calcHcalNeighborTowers_(), and hcalEnergyNeighborTowers_.
{ if(hcalEnergyNeighborTowers_<-900) calcHcalNeighborTowers_(); return hcalEnergyNeighborTowers_; }
double HBHEHitMap::hcalEnergySameTowers | ( | void | ) | const |
Definition at line 451 of file HBHEIsolatedNoiseAlgos.cc.
References calcHcalSameTowers_(), and hcalEnergySameTowers_.
{ if(hcalEnergySameTowers_<-900) calcHcalSameTowers_(); return hcalEnergySameTowers_; }
void HBHEHitMap::hcalHitsNeighborTowers | ( | std::set< const HBHERecHit * > & | v | ) | const |
Definition at line 554 of file HBHEIsolatedNoiseAlgos.cc.
References beginNeighbors(), endNeighbors(), and PhysicsTower::hcalhits.
Referenced by calcHcalNeighborTowers_().
{ v.clear(); for(neighbor_const_iterator it1=beginNeighbors(); it1!=endNeighbors(); ++it1) { const PhysicsTower* twr=(*it1); v.insert(twr->hcalhits.begin(), twr->hcalhits.end()); } return; }
void HBHEHitMap::hcalHitsSameTowers | ( | std::set< const HBHERecHit * > & | v | ) | const |
Definition at line 487 of file HBHEIsolatedNoiseAlgos.cc.
References beginHits(), endHits(), and findHit().
Referenced by calcHcalSameTowers_().
{ v.clear(); for(hitmap_const_iterator it1=beginHits(); it1!=endHits(); ++it1) { for(std::set<const HBHERecHit*>::const_iterator it2=it1->second->hcalhits.begin(); it2!=it1->second->hcalhits.end(); ++it2) { const HBHERecHit* hit=(*it2); // if the hit in the tower is already in the hitmap, don't include it if(findHit(hit)==endHits()) v.insert(hit); } } return; }
double HBHEHitMap::hitEnergy | ( | void | ) | const |
Definition at line 432 of file HBHEIsolatedNoiseAlgos.cc.
References calcHits_(), and hitEnergy_.
Referenced by HBHEHitMapOrganizer::getHPDs(), and HBHEHitMapOrganizer::getRBXs().
{ if(hitEnergy_<-900) calcHits_(); return hitEnergy_; }
double HBHEHitMap::hitEnergyTrackFiducial | ( | void | ) | const |
Definition at line 444 of file HBHEIsolatedNoiseAlgos.cc.
References calcHits_(), and hitEnergyTrkFid_.
{ if(hitEnergyTrkFid_<-900) calcHits_(); return hitEnergyTrkFid_; }
void HBHEHitMap::insert | ( | const HBHERecHit * | hit, |
const PhysicsTower * | twr, | ||
std::set< const PhysicsTower * > & | neighbors | ||
) |
Definition at line 590 of file HBHEIsolatedNoiseAlgos.cc.
References beginHits(), endHits(), endNeighbors(), spr::find(), findNeighbor(), hits_, neighbors_, and matplotRender::t.
Referenced by HBHEHitMapOrganizer::HBHEHitMapOrganizer().
{ hits_[hit]=twr; neighbors_.insert(neighbors.begin(), neighbors.end()); // make sure none of the neighbors are also are part of the hitmap for(hitmap_const_iterator it=beginHits(); it!=endHits(); ++it) { const PhysicsTower* t=it->second; neighbor_const_iterator find=findNeighbor(t); // if a hit is also a neighbor, remove the neighbor if(find!=endNeighbors()) neighbors_.erase(find); } return; }
int HBHEHitMap::nEcalHitsNeighborTowers | ( | void | ) | const |
Definition at line 536 of file HBHEIsolatedNoiseAlgos.cc.
References calcEcalNeighborTowers_(), and nEcalHitsNeighborTowers_.
{ if(nEcalHitsNeighborTowers_<-900) calcEcalNeighborTowers_(); return nEcalHitsNeighborTowers_; }
int HBHEHitMap::nEcalHitsSameTowers | ( | void | ) | const |
Definition at line 469 of file HBHEIsolatedNoiseAlgos.cc.
References calcEcalSameTowers_(), and nEcalHitsSameTowers_.
{ if(nEcalHitsSameTowers_<-900) calcEcalSameTowers_(); return nEcalHitsSameTowers_; }
int HBHEHitMap::nHcalHitsNeighborTowers | ( | void | ) | const |
Definition at line 524 of file HBHEIsolatedNoiseAlgos.cc.
References calcHcalNeighborTowers_(), and nHcalHitsNeighborTowers_.
{ if(nHcalHitsNeighborTowers_<-900) calcHcalNeighborTowers_(); return nHcalHitsNeighborTowers_; }
int HBHEHitMap::nHcalHitsSameTowers | ( | void | ) | const |
Definition at line 457 of file HBHEIsolatedNoiseAlgos.cc.
References calcHcalSameTowers_(), and nHcalHitsSameTowers_.
{ if(nHcalHitsSameTowers_<-900) calcHcalSameTowers_(); return nHcalHitsSameTowers_; }
int HBHEHitMap::nHits | ( | void | ) | const |
Definition at line 438 of file HBHEIsolatedNoiseAlgos.cc.
References calcHits_(), and nHits_.
int HBHEHitMap::nTracksNeighborTowers | ( | void | ) | const |
Definition at line 548 of file HBHEIsolatedNoiseAlgos.cc.
References calcTracksNeighborTowers_(), and nTracksNeighborTowers_.
{ if(nTracksNeighborTowers_<-900) calcTracksNeighborTowers_(); return nTracksNeighborTowers_; }
int HBHEHitMap::nTracksSameTowers | ( | void | ) | const |
Definition at line 481 of file HBHEIsolatedNoiseAlgos.cc.
References calcTracksSameTowers_(), and nTracksSameTowers_.
{ if(nTracksSameTowers_<-900) calcTracksSameTowers_(); return nTracksSameTowers_; }
double HBHEHitMap::trackEnergyNeighborTowers | ( | void | ) | const |
Definition at line 542 of file HBHEIsolatedNoiseAlgos.cc.
References calcTracksNeighborTowers_(), and trackEnergyNeighborTowers_.
{ if(trackEnergyNeighborTowers_<-900) calcTracksNeighborTowers_(); return trackEnergyNeighborTowers_; }
double HBHEHitMap::trackEnergySameTowers | ( | void | ) | const |
Definition at line 475 of file HBHEIsolatedNoiseAlgos.cc.
References calcTracksSameTowers_(), and trackEnergySameTowers_.
{ if(trackEnergySameTowers_<-900) calcTracksSameTowers_(); return trackEnergySameTowers_; }
void HBHEHitMap::tracksNeighborTowers | ( | std::set< const reco::Track * > & | v | ) | const |
Definition at line 575 of file HBHEIsolatedNoiseAlgos.cc.
References beginNeighbors(), endNeighbors(), and PhysicsTower::tracks.
Referenced by calcTracksNeighborTowers_().
{ v.clear(); for(neighbor_const_iterator it1=beginNeighbors(); it1!=endNeighbors(); ++it1) { const PhysicsTower* twr=(*it1); v.insert(twr->tracks.begin(), twr->tracks.end()); } return; }
void HBHEHitMap::tracksSameTowers | ( | std::set< const reco::Track * > & | v | ) | const |
Definition at line 509 of file HBHEIsolatedNoiseAlgos.cc.
References beginHits(), and endHits().
Referenced by calcTracksSameTowers_().
{ v.clear(); for(hitmap_const_iterator it1=beginHits(); it1!=endHits(); ++it1) { v.insert(it1->second->tracks.begin(), it1->second->tracks.end()); } return; }
double HBHEHitMap::ecalEnergyNeighborTowers_ [mutable, private] |
Definition at line 316 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcEcalNeighborTowers_(), ecalEnergyNeighborTowers(), and HBHEHitMap().
double HBHEHitMap::ecalEnergySameTowers_ [mutable, private] |
Definition at line 304 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcEcalSameTowers_(), ecalEnergySameTowers(), and HBHEHitMap().
double HBHEHitMap::hcalEnergyNeighborTowers_ [mutable, private] |
Definition at line 312 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcHcalNeighborTowers_(), HBHEHitMap(), and hcalEnergyNeighborTowers().
double HBHEHitMap::hcalEnergySameTowers_ [mutable, private] |
Definition at line 300 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcHcalSameTowers_(), HBHEHitMap(), and hcalEnergySameTowers().
double HBHEHitMap::hitEnergy_ [mutable, private] |
Definition at line 295 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcHits_(), HBHEHitMap(), and hitEnergy().
double HBHEHitMap::hitEnergyTrkFid_ [mutable, private] |
Definition at line 296 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcHits_(), HBHEHitMap(), and hitEnergyTrackFiducial().
std::map<const HBHERecHit*, const PhysicsTower*> HBHEHitMap::hits_ [private] |
Definition at line 291 of file HBHEIsolatedNoiseAlgos.h.
Referenced by beginHits(), calcHits_(), endHits(), findHit(), and insert().
int HBHEHitMap::nEcalHitsNeighborTowers_ [mutable, private] |
Definition at line 317 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcEcalNeighborTowers_(), HBHEHitMap(), and nEcalHitsNeighborTowers().
int HBHEHitMap::nEcalHitsSameTowers_ [mutable, private] |
Definition at line 305 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcEcalSameTowers_(), HBHEHitMap(), and nEcalHitsSameTowers().
std::set<const PhysicsTower*> HBHEHitMap::neighbors_ [private] |
Definition at line 292 of file HBHEIsolatedNoiseAlgos.h.
Referenced by beginNeighbors(), endNeighbors(), findNeighbor(), and insert().
int HBHEHitMap::nHcalHitsNeighborTowers_ [mutable, private] |
Definition at line 313 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcHcalNeighborTowers_(), HBHEHitMap(), and nHcalHitsNeighborTowers().
int HBHEHitMap::nHcalHitsSameTowers_ [mutable, private] |
Definition at line 301 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcHcalSameTowers_(), HBHEHitMap(), and nHcalHitsSameTowers().
int HBHEHitMap::nHits_ [mutable, private] |
Definition at line 297 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcHits_(), HBHEHitMap(), and nHits().
int HBHEHitMap::nTracksNeighborTowers_ [mutable, private] |
Definition at line 321 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcTracksNeighborTowers_(), HBHEHitMap(), and nTracksNeighborTowers().
int HBHEHitMap::nTracksSameTowers_ [mutable, private] |
Definition at line 309 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcTracksSameTowers_(), HBHEHitMap(), and nTracksSameTowers().
double HBHEHitMap::trackEnergyNeighborTowers_ [mutable, private] |
Definition at line 320 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcTracksNeighborTowers_(), HBHEHitMap(), and trackEnergyNeighborTowers().
double HBHEHitMap::trackEnergySameTowers_ [mutable, private] |
Definition at line 308 of file HBHEIsolatedNoiseAlgos.h.
Referenced by calcTracksSameTowers_(), HBHEHitMap(), and trackEnergySameTowers().