1 #ifndef __HBHE_ISOLATED_NOISE_ALGOS_H__ 2 #define __HBHE_ISOLATED_NOISE_ALGOS_H__ 78 HBThreshold_(HBThreshold),
79 HESThreshold_(HESThreshold),
80 HEDThreshold_(HEDThreshold),
81 EBThreshold_(EBThreshold),
82 EEThreshold_(EEThreshold),
83 HcalAcceptSeverityLevel_(HcalAcceptSeverityLevel),
84 EcalAcceptSeverityLevel_(EcalAcceptSeverityLevel),
85 UseHcalRecoveredHits_(UseHcalRecoveredHits),
86 UseEcalRecoveredHits_(UseEcalRecoveredHits),
87 MinValidTrackPt_(MinValidTrackPt),
88 MinValidTrackPtBarrel_(MinValidTrackPtBarrel),
89 MinValidTrackNHits_(MinValidTrackNHits),
92 theHcalSevLvlComputer_(
nullptr),
94 theEBRecHitCollection_(
nullptr),
95 theEERecHitCollection_(
nullptr) {}
171 return (lhs.
id < rhs.
id);
180 const edm::Handle<std::vector<reco::TrackExtrapolation> >& trackextrapcoll_h,
188 inline const PhysicsTower* findTower(
int ieta,
int iphi)
const;
192 void findNeighbors(
const CaloTowerDetId&
id, std::set<const PhysicsTower*>& neighbors)
const;
193 void findNeighbors(
const PhysicsTower* twr, std::set<const PhysicsTower*>& neighbors)
const;
194 void findNeighbors(
int ieta,
int iphi, std::set<const PhysicsTower*>& neighbors)
const;
241 double hitEnergy(
void)
const;
244 double hitEnergyTrackFiducial(
void)
const;
247 int nHits(
void)
const;
251 double hcalEnergySameTowers(
void)
const;
252 double ecalEnergySameTowers(
void)
const;
253 double trackEnergySameTowers(
void)
const;
254 int nHcalHitsSameTowers(
void)
const;
255 int nEcalHitsSameTowers(
void)
const;
256 int nTracksSameTowers(
void)
const;
257 void hcalHitsSameTowers(std::set<const HBHERecHit*>&
v)
const;
258 void ecalHitsSameTowers(std::set<const EcalRecHit*>& v)
const;
259 void tracksSameTowers(std::set<const reco::Track*>& v)
const;
262 double hcalEnergyNeighborTowers(
void)
const;
263 double ecalEnergyNeighborTowers(
void)
const;
264 double trackEnergyNeighborTowers(
void)
const;
265 int nHcalHitsNeighborTowers(
void)
const;
266 int nEcalHitsNeighborTowers(
void)
const;
267 int nTracksNeighborTowers(
void)
const;
268 void hcalHitsNeighborTowers(std::set<const HBHERecHit*>& v)
const;
269 void ecalHitsNeighborTowers(std::set<const EcalRecHit*>& v)
const;
270 void tracksNeighborTowers(std::set<const reco::Track*>& v)
const;
274 void byTowers(std::vector<twrinfo>& v)
const;
286 inline hitmap_const_iterator
beginHits(
void)
const {
return hits_.begin(); }
287 inline hitmap_const_iterator
endHits(
void)
const {
return hits_.end(); }
289 inline neighbor_const_iterator
beginNeighbors(
void)
const {
return neighbors_.begin(); }
290 inline neighbor_const_iterator
endNeighbors(
void)
const {
return neighbors_.end(); }
293 std::map<const HBHERecHit*, const PhysicsTower*>
hits_;
296 void calcHits_(
void)
const;
301 void calcHcalSameTowers_(
void)
const;
305 void calcEcalSameTowers_(
void)
const;
309 void calcTracksSameTowers_(
void)
const;
313 void calcHcalNeighborTowers_(
void)
const;
317 void calcEcalNeighborTowers_(
void)
const;
321 void calcTracksNeighborTowers_(
void)
const;
344 void getRBXs(std::vector<HBHEHitMap>&
v,
double energy)
const;
345 void getHPDs(std::vector<HBHEHitMap>& v,
double energy)
const;
346 void getDiHits(std::vector<HBHEHitMap>& v,
double energy)
const;
347 void getMonoHits(std::vector<HBHEHitMap>& v,
double energy)
const;
352 std::map<int, HBHEHitMap>
rbxs_, hpds_;
std::set< const HBHERecHit * > hcalhits
double ecalEnergySameTowers_
double MinValidTrackPtBarrel_
std::map< const HBHERecHit *, const PhysicsTower * >::const_iterator hitmap_const_iterator
hitmap_const_iterator findHit(const HBHERecHit *hit) const
void setHcalChannelQuality(const HcalChannelQuality *q)
neighbor_const_iterator findNeighbor(const PhysicsTower *twr) const
HEDThreshold
GeV, Oprimized on 10% occupancy.
virtual ~ObjectValidatorAbs()
virtual bool validTrack(const reco::Track &) const =0
virtual ~HBHEHitMapOrganizer()
neighbor_const_iterator beginNeighbors(void) const
double hcalEnergyNeighborTowers_
hitmap_const_iterator endHits(void) const
std::map< const HBHERecHit *, const PhysicsTower * > hits_
bool UseAllCombinedRechits_
void setHcalSeverityLevelComputer(const HcalSeverityLevelComputer *q)
double trackEnergyNeighborTowers_
double trackEnergySameTowers_
uint32_t HcalAcceptSeverityLevel_
std::set< const PhysicsTower * > neighbors_
std::map< int, HBHEHitMap > rbxs_
bool UseHcalRecoveredHits_
int nEcalHitsNeighborTowers_
const EcalChannelStatus * theEcalChStatus_
virtual bool validHit(const HBHERecHit &) const =0
const EcalRecHitCollection * theEERecHitCollection_
virtual ~PhysicsTowerOrganizer()
double hcalEnergySameTowers_
int nHcalHitsNeighborTowers_
EBThreshold
GeV, Scheme B.
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
const EcalRecHitCollection * theEBRecHitCollection_
ObjectValidator(double HBThreshold, double HESThreshold, double HEDThreshold, double EBThreshold, double EEThreshold, uint32_t HcalAcceptSeverityLevel, uint32_t EcalAcceptSeverityLevel, bool UseHcalRecoveredHits, bool UseEcalRecoveredHits, double MinValidTrackPt, double MinValidTrackPtBarrel, int MinValidTrackNHits)
std::set< const PhysicsTower * >::const_iterator neighbor_const_iterator
void setEcalSeverityLevelAlgo(const EcalSeverityLevelAlgo *q)
std::set< PhysicsTower, towercmp > towers_
void setEcalChannelStatus(const EcalChannelStatus *q)
double ecalEnergyNeighborTowers_
void setEERecHitCollection(const EcalRecHitCollection *q)
const EcalSeverityLevelAlgo * theEcalSevLvlAlgo_
std::set< const EcalRecHit * > ecalhits
uint32_t EcalAcceptSeverityLevel_
std::set< const reco::Track * > tracks
std::vector< HBHEHitMap > monohits_
int nTracksNeighborTowers_
const HcalChannelQuality * theHcalChStatus_
EEThreshold
GeV, Oprimized on 10% occupancy.
const HcalFrontEndMap * hfemap_
const HcalSeverityLevelComputer * theHcalSevLvlComputer_
void setEBRecHitCollection(const EcalRecHitCollection *q)
neighbor_const_iterator endNeighbors(void) const
HESThreshold
GeV, ORCA value w/o selective readout.
hitmap_const_iterator beginHits(void) const
bool UseEcalRecoveredHits_