Description: Phase 1 HF reco with QIE 10 and split-anode readout
Implementation: [Notes on implementation]
Definition at line 53 of file HFPhase1Reconstructor.cc.
Definition at line 173 of file HFPhase1Reconstructor.cc.
References funct::abs(), b, edm::SortedCollection< T, SORT >::begin(), checkChannelQualityForDepth3and4_, egammaForCoreTracking_cff::depth, HcalSeverityLevelComputer::dropChannel(), edm::SortedCollection< T, SORT >::end(), edm::EventSetup::get(), edm::Event::getByToken(), HcalDbService::getHcalCalibrations(), HcalChannelStatus::getValue(), HcalCondObjectContainer< Item >::getValues(), hfPET_, hfS8S1_, hfS9S1_, mps_fire::i, HFRecHit::id(), eostools::move(), AlCaHLTBitMon_ParallelJobs::p, edm::ESHandle< T >::product(), edm::Event::put(), DetId::rawId(), reco_, HcalDetId::secondAnodeId(), setNoiseFlags_, edm::SortedCollection< T, SORT >::size(), tok_PreRecHit_, and useChannelQualityFromDB_.
194 std::unique_ptr<HFRecHitCollection> rec(std::make_unique<HFRecHitCollection>());
195 rec->reserve(preRecHits->
size());
199 it != preRecHits->
end(); ++it)
204 const bool thisIsSingleAnodePMT =
false;
207 bool taggedBadByDb[2] = {
false,
false};
213 anodeIds[0] = it->id();
215 for (
unsigned i=0;
i<2; ++
i)
225 taggedBadByDb[0] =
b;
226 taggedBadByDb[1] =
b;
233 taggedBadByDb, thisIsSingleAnodePMT);
252 int depth=
i->id().depth();
253 int ieta=
i->id().ieta();
255 if (depth==2 ||
abs(ieta)==29 )
256 hfPET_->HFSetFlagFromPET(*
i, *rec, myqual, mySeverity);
262 int depth=
i->id().depth();
263 int ieta=
i->id().ieta();
265 if (depth==2 ||
abs(ieta)==29 )
266 hfS8S1_->HFSetFlagFromS9S1(*
i, *rec, myqual, mySeverity);
272 int depth=
i->id().depth();
273 int ieta=
i->id().ieta();
275 if (depth==1 &&
abs(ieta)!=29 )
276 hfS9S1_->HFSetFlagFromS9S1(*
i, *rec, myqual, mySeverity);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< HFPreRecHit >::const_iterator const_iterator
const Item * getValues(DetId fId, bool throwOnFail=true) const
uint32_t rawId() const
get the raw id
std::unique_ptr< HcalHF_PETalgorithm > hfPET_
std::unique_ptr< AbsHFPhase1Algo > reco_
Abs< T >::type abs(const T &t)
bool dropChannel(const uint32_t &mystatus) const
std::unique_ptr< HcalHF_S9S1algorithm > hfS8S1_
std::vector< HFRecHit >::iterator iterator
const_iterator end() const
bool useChannelQualityFromDB_
bool checkChannelQualityForDepth3and4_
uint32_t getValue() const
const HcalCalibrations & getHcalCalibrations(const HcalGenericDetId &fId) const
edm::EDGetTokenT< HFPreRecHitCollection > tok_PreRecHit_
std::unique_ptr< HcalHF_S9S1algorithm > hfS9S1_
T const * product() const
HcalDetId secondAnodeId() const
second PMT anode detId for HF dual channels
const_iterator begin() const