30 if(passCleaning_(&(*hbheItr),hcalSevLvlAlgo,dbHcalChStatus)){
34 if(!(
id.ietaAbs()==28 &&
id.depth()==3)){
35 float energy = hbheItr->energy();
37 if(acceptHit_(
id,pos,energy,candEta,candPhi)){
43 float energy = hbheItr->energy()/2.;
46 if(acceptHit_(
id,tower28Pos,energy,candEta,candPhi)){
48 sumEt+=energy*
sin(tower28Pos.
theta());
52 if(acceptHit_(
id,tower29Pos,energy,candEta,candPhi)){
54 sumEt+=energy*
sin(tower29Pos.
theta());
59 return std::make_pair(sumE,sumEt);
71 float hitEta = pos.
eta();
72 float hitPhi = pos.
phi();
76 if(dR2>=innerConeSq && dR2<outerConeSq) {
77 float hitEt = hitEnergy*
sin(2*atan(
exp(-hitEta)));
102 if(
depth_==-1)
return true;
112 if(hcalSevLvlComp==
NULL || hcalChanStatus==
NULL)
return true;
116 const uint32_t recHitFlag = hit->
flags();
119 int severityLevel = hcalSevLvlComp->
getSeverityLevel(
id,recHitFlag,dbStatusFlag);
122 if(severityLevel == 0)
return true;
133 int iEtaAbs =
id.ietaAbs();
134 int depth =
id.depth();
136 (iEtaAbs<=29 && depth==1) ||
137 (iEtaAbs>=27 && iEtaAbs<=29 && depth==2)){
bool passDepth_(const HcalDetId id) const
std::pair< float, float > getSum(float candEta, float candPhi, const HBHERecHitCollection *hbhe, const CaloGeometry *geometry, const HcalSeverityLevelComputer *hcalSevLvlAlgo=NULL, const HcalChannelQuality *dbHcalChStatus=NULL) const
const DetId & detid() const
Sin< T >::type sin(const T &t)
bool passCleaning_(const CaloRecHit *hit, const HcalSeverityLevelComputer *hcalSevLvlComp, const HcalChannelQuality *hcalChanStatus) const
Geom::Phi< T > phi() const
std::vector< HBHERecHit >::const_iterator const_iterator
const Item * getValues(DetId fId, bool throwOnFail=true) const
bool passMinEt_(float et, const HcalDetId id) const
Geom::Theta< T > theta() const
bool recoveredRecHit(const DetId &myid, const uint32_t &myflag) const
double deltaR2(const T1 &t1, const T2 &t2)
int hcalAcceptSeverityLevel_
int getSeverityLevel(const DetId &myid, const uint32_t &myflag, const uint32_t &mystatus) const
static int getEffectiveDepth(const HcalDetId id)
ESHandle< TrackerGeometry > geometry
bool acceptHit_(const HcalDetId id, const GlobalPoint &pos, const float hitEnergy, const float candEta, const float candPhi) const
uint32_t getValue() const
bool passMinE_(float energy, const HcalDetId id) const
bool useRecoveredHcalHits_