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==
nullptr || hcalChanStatus==
nullptr)
return true;
116 const uint32_t recHitFlag = hit->
flags();
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
constexpr 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< T >::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
int hcalAcceptSeverityLevel_
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
int getSeverityLevel(const DetId &myid, const uint32_t &myflag, const uint32_t &mystatus) const
et
define resolution functions of each parameter
std::pair< float, float > getSum(float candEta, float candPhi, const HBHERecHitCollection *hbhe, const CaloGeometry *geometry, const HcalSeverityLevelComputer *hcalSevLvlAlgo=0, const HcalChannelQuality *dbHcalChStatus=0) const
static int getEffectiveDepth(const HcalDetId id)
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_
constexpr uint32_t flags() const